/* ══════════════════════════════════════════════════════
   TECHVIOCHATS | Agency Design System
   Dark-first · Brand blue · Montserrat (Luminary)
══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&family=Playfair+Display:ital@1&display=swap');

/* ── 1. TOKENS ──────────────────────────────────────── */
:root {
  --pri:          #2563EB;
  --pri-light:    #60A5FA;
  --pri-dark:     #1D4ED8;
  --pri-glow:     rgba(37,99,235,0.22);
  --grad:         linear-gradient(135deg,#1E88E5 0%,#0D47A1 100%);
  --grad-text:    linear-gradient(135deg,#60A5FA 0%,#2563EB 100%);

  --bg:           #0a0a0a;
  --bg-2:         #111111;
  --bg-3:         #191919;
  --bg-card:      #111111;
  --border:       rgba(255,255,255,0.07);
  --border-hi:    rgba(37,99,235,0.35);

  --txt-1:        #E5E7EB;
  --txt-2:        #9CA3AF;
  --txt-3:        #6B7280;

  --green:        #10B981;
  --orange:       #F59E0B;
  --red:          #EF4444;

  --font:         'Montserrat','DM Sans','Inter',system-ui,sans-serif;
  --font-serif:   'Playfair Display',Georgia,serif;

  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 999px;

  --sh-card:  0 4px 24px rgba(0,0,0,0.35),inset 0 1px 0 rgba(255,255,255,0.04);
  --sh-hover: 0 16px 48px rgba(0,0,0,0.5),0 0 0 1px var(--border-hi);
  --sh-btn:   0 4px 18px rgba(37,99,235,0.40);
}

/* ── 2. BASE ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

.tc-page {
  font-family: var(--font);
  background: var(--bg);
  color: var(--txt-1);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ── 3. LAYOUT ──────────────────────────────────────── */
.tc-wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px,5vw,60px);
}

.tc-section {
  padding-block: clamp(72px,9vw,120px);
}
.tc-section-alt { background: var(--bg-2); }
.tc-section-dark { background: var(--bg-3); }

/* ── 4. EYEBROW LABEL ───────────────────────────────── */
.tc-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--r-full);
  background: rgba(37,99,235,0.12);
  border: 1px solid rgba(37,99,235,0.25);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pri-light);
}

/* ── 5. TYPOGRAPHY ──────────────────────────────────── */
.tc-h1 {
  font-family: var(--font);
  font-size: clamp(2.4rem,5vw,3.8rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.03em;
  color: var(--txt-1);
}
.tc-h2 {
  font-family: var(--font);
  font-size: clamp(2rem,4vw,3rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.025em;
  color: var(--txt-1);
}
.tc-h3 {
  font-family: var(--font);
  font-size: clamp(1.25rem,2vw,1.75rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--txt-1);
}
.tc-h2 em, .tc-h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tc-section-hdr {
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: clamp(40px,5vw,72px);
}
.tc-section-hdr .tc-label { margin-bottom: 16px; }
.tc-lead {
  font-size: clamp(1rem,1.5vw,1.125rem);
  color: var(--txt-2);
  line-height: 1.75;
  margin-top: 14px;
}

/* ── 6. BUTTONS ─────────────────────────────────────── */
.tc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--r-full);
  font-family: var(--font);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: none;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, gap .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.tc-btn-sm { padding: 8px 18px; font-size: .8125rem; }

.tc-btn-primary {
  background: var(--pri);
  color: #fff;
  box-shadow: var(--sh-btn);
  border: 1.5px solid transparent;
}
.tc-btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: 0 8px 28px rgba(37,99,235,.55);
  color: #fff;
  text-decoration: none;
}

.tc-btn-outline {
  background: transparent;
  color: var(--txt-1);
  border: 1.5px solid var(--border);
}
.tc-btn-outline:hover {
  border-color: var(--pri-light);
  color: var(--pri-light);
  transform: translateY(-2px);
  text-decoration: none;
}

.tc-btn-ghost {
  background: transparent;
  color: var(--pri-light);
  border: none;
  padding-inline: 0;
}
.tc-btn-ghost:hover { gap: 12px; color: var(--pri-light); text-decoration: none; }
.tc-btn-ghost svg { transition: transform .2s ease; }
.tc-btn-ghost:hover svg { transform: translateX(4px); }

/* ── 7. CARD BASE ───────────────────────────────────── */
.tc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-card);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.tc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-hover);
  border-color: var(--border-hi);
}

/* ── 8. SERVICE CARDS ───────────────────────────────── */
.tc-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
  gap: 24px;
}
.tc-service-card {
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.tc-service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .3s ease;
}
.tc-service-card:hover::before { opacity: 1; }
.tc-service-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: rgba(37,99,235,.12);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  font-size: 22px;
  color: #B0B8C4;
  transition: background .3s ease;
}
.tc-service-card:hover .tc-service-icon { background: rgba(176,184,196,.12); color: #E5E7EB; }
.tc-service-title {
  font-size: 1.125rem; font-weight: 600; color: var(--txt-1); margin-bottom: 10px;
}
.tc-service-desc { font-size: .9375rem; color: var(--txt-2); line-height: 1.7; }

/* ── 9. PROJECT CARDS (Onix Digital style) ──────────── */
.tc-projects-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}
.tc-project-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: block;
  text-decoration: none;
  cursor: pointer;
}
.tc-project-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.tc-project-card:hover img { transform: scale(1.06); }

.tc-project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,rgba(8,13,26,.96) 0%,rgba(8,13,26,.65) 50%,rgba(8,13,26,.08) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}
.tc-project-card:hover .tc-project-overlay { opacity: 1; transform: translateY(0); }

.tc-project-always {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
  background: linear-gradient(to top,rgba(8,13,26,.95) 0%,transparent 100%);
  pointer-events: none;
}
.tc-project-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--pri);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.tc-project-title {
  font-size: 1.0625rem; font-weight: 600; color: var(--txt-1); line-height: 1.3; margin-bottom: 4px;
}
.tc-project-result { font-size: .8125rem; color: var(--txt-2); }
.tc-project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--pri-light);
  margin-top: 14px;
  transition: gap .2s ease;
  text-decoration: none;
}
.tc-project-link:hover { gap: 10px; }

/* ── 9b. PORT-ITEM CARDS (SEO Dream style, shared) ───── */
.tc-port-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-lg);
  aspect-ratio: 16/10;
  background: var(--bg-3);
  text-decoration: none;
  border: 1px solid var(--border);
}
.tc-port-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s cubic-bezier(.16,1,.3,1);
}
.tc-port-item-bg {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
}
.tc-port-item:hover img { transform: scale(1.07); }
.tc-port-hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.5) 45%, rgba(0,0,0,.04) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px 22px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}
.tc-port-item:hover .tc-port-hover { opacity: 1; transform: translateY(0); }
.tc-port-hover h4 {
  font-size: 1rem; font-weight: 600; color: #fff;
  margin: 0 0 5px; line-height: 1.3; letter-spacing: -.01em;
}
.tc-port-hover span {
  font-size: .7rem; font-weight: 600; color: #B0B8C4;
  letter-spacing: .12em; text-transform: uppercase;
}

/* ── 10. FILTER BUTTONS ─────────────────────────────── */
.tc-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}
.tc-filter-btn {
  padding: 8px 20px;
  border-radius: var(--r-full);
  font-family: var(--font);
  font-size: .875rem; font-weight: 500;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--txt-2);
  cursor: pointer;
  transition: all .2s ease;
}
.tc-filter-btn:hover, .tc-filter-btn.active {
  background: var(--pri); border-color: var(--pri); color: #fff;
}
.tc-filter-btn:focus-visible { outline: 2px solid var(--pri-light); outline-offset: 3px; }

/* ── 11. PROCESS ────────────────────────────────────── */
.tc-process-grid {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 0;
  position: relative;
}
.tc-process-grid::before {
  content: '';
  position: absolute;
  top: 35px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg,transparent,var(--border) 20%,var(--border) 80%,transparent);
}
.tc-process-step { text-align: center; padding: 0 12px; }
.tc-process-num {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.125rem; font-weight: 700;
  color: #B0B8C4;
  position: relative; z-index: 1;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.tc-process-step:hover .tc-process-num {
  background: var(--bg-3);
  border-color: var(--border-hi);
  box-shadow: 0 0 20px var(--pri-glow);
}
.tc-process-name { font-size: 1rem; font-weight: 600; color: var(--txt-1); margin-bottom: 8px; }
.tc-process-desc { font-size: .8125rem; color: var(--txt-2); line-height: 1.65; }

/* ── 12. STATS STRIP ────────────────────────────────── */
.tc-stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.tc-stat {
  background: var(--bg-2);
  padding: 40px 20px;
  text-align: center;
}
.tc-stat-num {
  font-size: clamp(2rem,3.5vw,2.75rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tc-stat-label { font-size: .875rem; color: var(--txt-2); }

/* ── 13. TESTIMONIALS ───────────────────────────────── */
.tc-testi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.tc-testi-card { padding: 32px; }
.tc-testi-card.featured { grid-row: span 2; display: flex; flex-direction: column; justify-content: center; }
.tc-testi-stars { display: flex; gap: 3px; margin-bottom: 16px; color: var(--orange); font-size: 13px; }
.tc-testi-quote {
  font-size: clamp(.9375rem,1.2vw,1.0625rem);
  color: var(--txt-2);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}
.tc-testi-quote::before {
  content: '"';
  display: block;
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: .8;
  color: #B0B8C4;
  margin-bottom: 16px;
  font-style: normal;
}
.tc-testi-author { display: flex; align-items: center; gap: 12px; }
.tc-testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 2px solid var(--border-hi);
  overflow: hidden;
  display: grid; place-items: center;
  font-weight: 700; font-size: .9375rem;
  color: #B0B8C4;
  flex-shrink: 0;
}
.tc-testi-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tc-testi-name { font-size: .9375rem; font-weight: 600; color: var(--txt-1); }
.tc-testi-role { font-size: .8125rem; color: var(--txt-3); }

/* ── 14. TECH PILLS ─────────────────────────────────── */
.tc-tech-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tc-tech-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border-radius: var(--r-full);
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: .875rem; font-weight: 500;
  color: var(--txt-2);
  transition: all .2s ease;
}
.tc-tech-pill i { font-size: 1rem; }
.tc-tech-pill:hover { border-color: var(--border-hi); color: var(--txt-1); background: var(--bg-3); }

/* ── 15. FORM INPUTS ────────────────────────────────── */
.tc-form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.tc-label-text { font-size: .875rem; font-weight: 500; color: var(--txt-2); }
.tc-input, .tc-select, .tc-textarea {
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  font-family: var(--font);
  font-size: .9375rem;
  color: var(--txt-1);
  transition: border-color .2s ease, box-shadow .2s ease;
  width: 100%;
}
.tc-input:focus, .tc-select:focus, .tc-textarea:focus {
  outline: none;
  border-color: var(--pri);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.tc-input::placeholder, .tc-textarea::placeholder { color: var(--txt-3); }
.tc-textarea { resize: vertical; min-height: 120px; }
.tc-select option { background: var(--bg-2); color: var(--txt-1); }

/* ── 16. HEADER / NAV ───────────────────────────────── */
.tc-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background .3s ease, box-shadow .3s ease;
}
.tc-header.scrolled {
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
html:not(.dark) .tc-header.scrolled {
  background: rgba(255,255,255,.92);
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}
.tc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 24px;
}
.tc-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.tc-logo img {
  height: 38px;
  width: auto;
  transition: filter .35s ease;
}
.tc-theme-logo { transition: filter .35s ease; }
/* Dark mode → white logo */
html.dark .tc-logo img,
html.dark .tc-theme-logo { filter: brightness(0) invert(1); }
/* Light mode → colour logo */
html:not(.dark) .tc-logo img,
html:not(.dark) .tc-theme-logo { filter: none; }
.tc-logo-text {
  font-size: 1.1875rem; font-weight: 700;
  color: var(--txt-1); letter-spacing: -.01em;
}
.tc-logo-text span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tc-nav-links {
  display: flex; align-items: center;
  gap: 28px; list-style: none; margin: 0; padding: 0;
}
.tc-nav-links a {
  font-size: .9375rem; font-weight: 500;
  color: var(--txt-2);
  text-decoration: none;
  transition: color .2s ease;
  white-space: nowrap;
}
.tc-nav-links a:hover, .tc-nav-links a.tc-active { color: var(--txt-1); }
.tc-nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Hamburger */
.tc-burger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer; padding: 0;
  transition: border-color .2s ease;
}
.tc-burger:hover { border-color: var(--border-hi); }
.tc-burger span { display: block; width: 18px; height: 1.5px; background: var(--txt-2); border-radius: 2px; transition: all .25s ease; }
.tc-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.tc-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.tc-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.tc-mob-menu {
  display: none;
  position: fixed;
  top: 80px; left: 0; right: 0;
  background: rgba(10,10,10,.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 20px clamp(20px,5vw,60px) 28px;
  flex-direction: column;
  gap: 0;
  z-index: 199;
}
.tc-mob-menu.open { display: flex; }
.tc-mob-menu a {
  padding: 13px 0;
  font-size: 1rem; font-weight: 500;
  color: var(--txt-2);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color .2s ease;
}
.tc-mob-menu a:last-of-type { border-bottom: none; }
.tc-mob-menu a:hover { color: var(--txt-1); }
.tc-mob-cta { margin-top: 20px; }
html:not(.dark) .tc-mob-menu { background: rgba(255,255,255,.97); }

/* ── 17. FOOTER ─────────────────────────────────────── */
.tc-footer { background: var(--bg-2); border-top: 1px solid var(--border); }
.tc-footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-block: 72px;
}
.tc-footer-brand p {
  font-size: .9375rem; color: var(--txt-2);
  line-height: 1.75; margin-top: 14px; max-width: 280px;
}
.tc-footer-social { display: flex; gap: 8px; margin-top: 24px; }
.tc-footer-social a {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--txt-2);
  font-size: .875rem;
  text-decoration: none;
  transition: all .2s ease;
}
.tc-footer-social a:hover { border-color: var(--border-hi); color: var(--pri-light); background: rgba(37,99,235,.08); }
.tc-footer-col h4 {
  font-size: .8125rem; font-weight: 600; color: var(--txt-1);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 20px;
}
.tc-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.tc-footer-col ul li a { font-size: .9375rem; color: var(--txt-2); text-decoration: none; transition: color .2s ease; }
.tc-footer-col ul li a:hover { color: var(--txt-1); }
.tc-footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 20px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .875rem; color: var(--txt-3);
}

/* ── 18. PAGE HERO (inner pages) ─────────────────────── */
.tc-page-hero {
  padding-top: 140px;
  padding-bottom: 72px;
  background: radial-gradient(ellipse 70% 50% at 50% 0%,rgba(37,99,235,.10) 0%,transparent 60%);
  border-bottom: 1px solid var(--border);
}

/* ── 19. CTA BANNER ─────────────────────────────────── */
.tc-cta-banner {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(48px,6vw,80px) clamp(32px,5vw,80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tc-cta-banner::before {
  content: '';
  position: absolute;
  top: -80%; left: 50%;
  transform: translateX(-50%);
  width: 60%; height: 200%;
  background: radial-gradient(ellipse,rgba(37,99,235,.10) 0%,transparent 65%);
  pointer-events: none;
}

/* ── 20. BLOG CARDS ─────────────────────────────────── */
.tc-blog-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}
.tc-blog-card { border-radius: var(--r-lg); overflow: hidden; }
.tc-blog-card-img {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover; display: block;
  background: var(--bg-3);
  transition: transform .4s ease;
}
.tc-blog-card:hover .tc-blog-card-img { transform: scale(1.04); }
.tc-blog-card-wrap { overflow: hidden; }
.tc-blog-body { padding: 24px; }
.tc-blog-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: .8125rem; color: var(--txt-3); }
.tc-blog-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--txt-3); }
.tc-blog-title {
  font-size: 1.0625rem; font-weight: 600; color: var(--txt-1);
  line-height: 1.4; margin-bottom: 12px;
  text-decoration: none; display: block;
  transition: color .2s ease;
}
.tc-blog-title:hover { color: var(--pri-light); }
.tc-blog-excerpt { font-size: .875rem; color: var(--txt-2); line-height: 1.7; }

/* ── 21. CASE STUDY DETAIL ──────────────────────────── */
.tc-case-img {
  width: 100%; max-height: 480px; object-fit: cover;
  border-radius: var(--r-xl); margin-bottom: 48px;
  border: 1px solid var(--border);
  background: var(--bg-3);
}
.tc-case-meta {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
  margin-bottom: 48px;
}
.tc-case-meta-item {
  padding: 20px; border-radius: var(--r-md);
  background: var(--bg-2); border: 1px solid var(--border);
}
.tc-case-meta-lbl {
  font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--txt-3); margin-bottom: 6px;
}
.tc-case-meta-val { font-size: .9375rem; font-weight: 600; color: var(--txt-1); }
.tc-case-section { margin-bottom: 40px; }
.tc-case-section h3 {
  font-size: 1.125rem; font-weight: 600; color: var(--txt-1);
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.tc-case-section p { font-size: .9375rem; color: var(--txt-2); line-height: 1.8; }
.tc-result-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: rgba(16,185,129,.10);
  border: 1px solid rgba(16,185,129,.25);
  border-radius: var(--r-full);
  color: var(--green);
  font-size: .875rem; font-weight: 600;
  margin-bottom: 8px;
}
.tc-result-badge::before { content: '↑'; font-weight: 700; }
.tc-tech-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tc-tech-tag {
  padding: 5px 12px;
  border-radius: var(--r-full);
  background: rgba(176,184,196,.08);
  border: 1px solid rgba(176,184,196,.18);
  font-size: .8125rem; color: #9CA3AF;
}

/* ── 22. SCROLL REVEAL ──────────────────────────────── */
@media (prefers-reduced-motion:no-preference) {
  .tc-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .tc-reveal.visible { opacity: 1; transform: none; }
  .tc-reveal-d1 { transition-delay: .1s; }
  .tc-reveal-d2 { transition-delay: .2s; }
  .tc-reveal-d3 { transition-delay: .3s; }
  .tc-reveal-d4 { transition-delay: .4s; }
  .tc-reveal-d5 { transition-delay: .5s; }
}

/* ── 23. FOCUS / ACCESSIBILITY ──────────────────────── */
a:focus-visible, button:focus-visible, .tc-btn:focus-visible,
.tc-filter-btn:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--pri-light);
  outline-offset: 3px;
}

/* ── 24. RESPONSIVE ─────────────────────────────────── */
@media (max-width:1080px) {
  .tc-projects-grid { grid-template-columns: repeat(2,1fr); }
  .tc-process-grid { grid-template-columns: repeat(3,1fr); gap: 32px; }
  .tc-process-grid::before { display: none; }
  .tc-stats { grid-template-columns: repeat(2,1fr); }
  .tc-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width:768px) {
  .tc-nav-links { display: none; }
  .tc-burger { display: flex; }
  .tc-nav-actions .tc-btn-primary { display: none; }
  .tc-projects-grid { grid-template-columns: 1fr; }
  .tc-services-grid { grid-template-columns: 1fr; }
  .tc-process-grid { grid-template-columns: repeat(2,1fr); }
  .tc-testi-grid { grid-template-columns: 1fr; }
  .tc-testi-card.featured { grid-row: span 1; }
  .tc-blog-grid { grid-template-columns: 1fr; }
  .tc-case-meta { grid-template-columns: repeat(2,1fr); }
  .tc-footer-inner { grid-template-columns: 1fr; gap: 36px; padding-block: 48px; }
  .tc-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width:480px) {
  .tc-process-grid { grid-template-columns: 1fr; }
  .tc-stats { grid-template-columns: 1fr; }
  .tc-case-meta { grid-template-columns: 1fr; }
}

/* ── 25. LIGHT MODE ─────────────────────────────────────── */
html:not(.dark) {
  --bg:        #ffffff;
  --bg-2:      #f8fafc;
  --bg-3:      #f1f5f9;
  --bg-card:   #ffffff;
  --border:    rgba(0,0,0,0.08);
  --border-hi: rgba(37,99,235,0.28);

  --txt-1:     #0a0a0a;
  --txt-2:     #374151;
  --txt-3:     #6b7280;

  --sh-card:   0 4px 24px rgba(0,0,0,0.07),inset 0 1px 0 rgba(0,0,0,0.04);
  --sh-hover:  0 16px 48px rgba(0,0,0,0.12),0 0 0 1px var(--border-hi);
}
