/* =============================================
   Self-hosted fonts (IBM Plex Sans + Mono)
   font-display:optional = no CLS from font swap
   ============================================= */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('/assets/fonts/ibm-plex-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url('/assets/fonts/ibm-plex-mono-500.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url('/assets/fonts/ibm-plex-mono-600.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: optional;
  src: url('/assets/fonts/ibm-plex-sans.woff2') format('woff2');
}

/* =============================================
   TBOX SOLUTIONZ — Global Stylesheet
   ============================================= */

/* --- Variables --- */
:root {
  --red: #e01b1b;
  --red-dark: #b81212;
  --black: #1a1a1a;
  --white: #ffffff;
  --bg-page: #ffffff;
  --bg-alt: #FBFAF9;
  --bg-dark: #15130F;
  --text: #161412;
  --text-muted: #66645F;
  --text-light: #6B6865;
  --border: #ECEAE7;
  --border-band: #EEECEA;
  --radius: 14px;
  --max-width: 1240px;
  --font: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg-page); color: var(--text); line-height: 1.6; font-size: 16px; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography --- */
h1 { font-size: clamp(2.4rem, 5vw, 4.25rem); font-weight: 600; line-height: 1.03; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
p { color: var(--text-muted); line-height: 1.7; }

.section-label {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
  display: block;
}

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 3.5rem; }
section { padding: 7rem 0; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 11px 20px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary { background: transparent; color: var(--text); border: 1.5px solid #d0d0d0; }
.btn-secondary:hover { border-color: var(--text); }
.btn-ghost { background: rgba(255,255,255,0.15); color: var(--white); border: 1.5px solid rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.28); }

/* =============================================
   NAVBAR — sticky
   ============================================= */
/* Reserve nav height upfront to prevent CLS when components.js injects the nav */
#nav-placeholder { min-height: 65px; }

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.navbar-logo { display: flex; align-items: center; flex-shrink: 0; }
.navbar-logo img { height: 36px; width: auto; }

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.navbar-nav li a {
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  transition: color 0.18s;
  padding: 4px 0;
  position: relative;
}
.navbar-nav li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.navbar-nav li a:hover { color: var(--red); }
.navbar-nav li a:hover::after { transform: scaleX(1); }
.navbar-nav li a.active { color: var(--red); font-weight: 500; }
.navbar-nav li a.active::after { transform: scaleX(1); }

/* Btn inside nav must override the nav link rule */
.navbar-nav li a.btn {
  font-size: 15px;
  font-weight: 500;
  padding: 11px 20px;
  color: var(--white);
}
.navbar-nav li a.btn::after { display: none; }
.navbar-nav li a.btn:hover { color: var(--white); }

.navbar-cta { margin-left: 0.5rem; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =============================================
   HERO
   ============================================= */
#hero { padding: 7rem 0 5rem; background: var(--bg-page); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FAF9F8;
  border: 1px solid #EAE8E5;
  border-radius: 100px;
  padding: 7px 14px 7px 11px;
  margin-bottom: 1.875rem;
}
.hero-badge span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1816;
}
.hero-badge svg { display: block; flex-shrink: 0; }
.hero-title { margin-bottom: 1.25rem; }
.hero-title .accent { color: var(--red); }
.hero-desc { font-size: 1.15rem; max-width: 460px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.hero-stat-value { font-size: 1.5rem; font-weight: 700; color: var(--text); line-height: 1; }
.hero-stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.25rem; }

/* Hero visual */
.hero-visual {
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual-inner {
  background: #FBFAF9;
  border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(20,18,15,0.22);
  overflow: hidden;
  border: 1px solid #ECEAE7;
  width: 100%;
}

/* stage tabs */
.hero-visual-tabs {
  display: flex;
  position: relative;
  border-bottom: 1px solid #EEECEA;
}
.hero-visual-tab {
  flex: 1;
  text-align: center;
  padding: 14px 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #6B6865;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
}
.hero-visual-tab.active { color: #1A1A1A; }
.hero-visual-indicator {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 25%;
  height: 2px;
  background: #E01B1B;
  transition: transform 0.5s cubic-bezier(0.5,0,0.2,1);
}

/* scene area */
.hero-visual-scenes {
  position: relative;
  height: 300px;
  background: radial-gradient(circle at 50% 38%, #FFFFFF, #F4F2EF);
}
.hero-visual-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
}
.hero-visual-scene.active { opacity: 1; }

/* Original keyframes from TBox-Website-TypeA */
@keyframes popA { 0%,100%{ transform: scale(1); } 14%{ transform: scale(0.8); } 28%{ transform: scale(1); } }
@keyframes searchA { 0%,100%{ transform: translate(0,0); } 25%{ transform: translate(11px,-7px); } 50%{ transform: translate(3px,9px); } 75%{ transform: translate(-9px,2px); } }
@keyframes growA { 0%{ transform: scaleY(0.32); } 55%,100%{ transform: scaleY(1); } }
@keyframes riseA { 0%{ transform: translateY(10px); opacity: 0; } 28%,68%{ opacity: 1; } 100%{ transform: translateY(-26px); opacity: 0; } }
@keyframes flameA { 0%,100%{ transform: scaleY(1); opacity: .9; } 50%{ transform: scaleY(0.55); opacity: .55; } }
@keyframes dropA { 0%{ transform: translateY(-28px); opacity: 0; } 34%,100%{ transform: translateY(0); opacity: 1; } }
@keyframes typeA { 0%,100%{ opacity: .22; } 50%{ opacity: 1; } }
@keyframes bobA { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-5px); } }
@keyframes floatA { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-9px); } }
@keyframes spinA { to { transform: rotate(360deg); } }
@keyframes rollA {
  0%   { transform: translate(278px, 214px) rotate(0deg); }
  44%  { transform: translate(418px, 214px) rotate(472deg); }
  56%  { transform: translate(418px, 214px) rotate(472deg); }
  100% { transform: translate(278px, 214px) rotate(0deg); }
}

/* =============================================
   LOGOS BAND
   ============================================= */
#logos { padding: 1.625rem 0; background: var(--bg-alt); border-top: 1px solid var(--border-band); border-bottom: 1px solid var(--border-band); }
.logos-row { display: flex; flex-direction: row; align-items: center; gap: 3rem; }
.logos-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); white-space: nowrap; flex-shrink: 0; padding-right: 1rem; border-right: 1px solid var(--border); }
.logos-list { display: flex; align-items: center; flex-wrap: nowrap; flex: 1; min-width: 0; gap: clamp(1.25rem, 4vw, 3.5rem); overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; opacity: 0.72; }
.logos-list::-webkit-scrollbar { display: none; }
.logo-placeholder { background: repeating-linear-gradient(45deg, #E7E5E2, #E7E5E2 6px, #EFEEEC 6px, #EFEEEC 12px); border-radius: 4px; width: 120px; height: 32px; flex-shrink: 0; }
.logo-item { flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.logo-item img { height: 38px; width: auto; max-width: 260px; object-fit: contain; filter: grayscale(100%); opacity: 0.65; transition: opacity 0.2s, filter 0.2s, transform 0.2s; }
.logo-item img:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.12); }

/* =============================================
   SERVICES
   ============================================= */
#services { background: var(--bg-page); }
.services-header { display: inline-block; max-width: 640px; margin-bottom: 4rem; }
.services-header h2 { margin-bottom: 1.25rem; }
.services-header p { font-size: 20px; line-height: 1.6; color: #5C5A57; margin-top: 1.25rem; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.875rem;
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.service-card:hover { border-color: #DAD8D4; box-shadow: 0 14px 36px -18px rgba(20,18,15,0.18); }
.service-icon {
  position: absolute;
  top: 2px; right: 2px;
  width: 90px; height: 90px;
  opacity: 0.13;
  color: var(--text);
  pointer-events: none;
}
.service-icon svg { width: 90px; height: 90px; }
.service-card h3 { font-size: 21px; margin-bottom: 0.625rem; }
.service-card p { font-size: 17px; line-height: 1.62; color: #66645F; }

/* =============================================
   WORK / PORTFOLIO
   ============================================= */
#work { background: var(--bg-alt); border-top: 1px solid var(--border-band); border-bottom: 1px solid var(--border-band); }
.work-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 3.5rem; flex-wrap: wrap; gap: 1rem; }
.work-header h2 { margin-bottom: 0; }
.work-link { font-size: 15px; font-weight: 500; color: var(--red); white-space: nowrap; }
.work-link:hover { text-decoration: underline; }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
.work-carousel { display: flex; gap: 1.5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 1rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.work-carousel::-webkit-scrollbar { display: none; }
.work-carousel .work-card { flex: 0 0 465px; scroll-snap-align: start; }
.work-carousel-nav { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1.25rem; }
.work-carousel-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s, border-color 0.15s; }
.work-carousel-btn:hover { background: var(--bg-alt); border-color: var(--text-muted); }
.work-carousel-btn svg { width: 16px; height: 16px; stroke: var(--text); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.work-card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.work-screenshot {
  aspect-ratio: 20/9;
  position: relative;
  overflow: hidden;
  background: #1a1816;
}
.wc-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
  transition: transform 0.5s ease;
}
.work-card-link:hover .wc-bg { transform: scale(1.05); }
.wc-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.08) 45%, rgba(0,0,0,0.58) 100%);
}
.wc-topbar {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 8px;
}
.wc-logo {
  width: 28px; height: 28px; border-radius: 7px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22);
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.wc-logo img { width: 100%; height: 100%; object-fit: cover; }
.wc-logo-initials { font-size: 8px; font-weight: 700; color: #fff; text-align: center; line-height: 1.2; }
.wc-brand { font-size: 12px; font-weight: 600; color: #fff; letter-spacing: 0.01em; }
.wc-badge {
  margin-left: auto; font-size: 9px; letter-spacing: 0.04em;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.24);
  color: #fff; border-radius: 4px; padding: 3px 8px; white-space: nowrap;
}
.wc-tags {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 10px 14px; display: flex; gap: 5px; flex-wrap: wrap;
}
.wc-tag {
  font-family: var(--mono); font-size: 10px;
  background: rgba(0,0,0,0.38); border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.9); border-radius: 4px; padding: 3px 7px;
}
.work-screenshot-label { font-family: var(--mono); font-size: 11px; color: #9A968F; letter-spacing: 0.04em; }
.work-info { padding: 1.75rem; }
.work-tags { display: flex; gap: 0.5rem; margin-bottom: 0.875rem; flex-wrap: wrap; }
.work-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: #76746F;
  border: 1px solid #E8E6E3;
  padding: 3px 9px;
  border-radius: 5px;
}
.work-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.work-info p { font-size: 15px; line-height: 1.65; color: #5C5A57; }
.work-card-link { display: block; text-decoration: none; color: inherit; cursor: pointer; transition: box-shadow 0.2s, transform 0.2s; }
.work-card-link:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.09); transform: translateY(-2px); }
.work-read-more { display: inline-block; margin-top: 0.75rem; font-size: 14px; font-weight: 500; color: var(--red); }

/* Case study card illustration */
.work-screenshot-neobank { background: linear-gradient(135deg, #F7F4F0 0%, #EDE9E4 100%); position: relative; overflow: hidden; }
.work-screenshot-inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 2rem; }
.cs-mock-phone { width: 110px; height: 160px; background: #fff; border-radius: 16px; border: 1px solid #E0DDD8; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.cs-mock-screen { display: flex; flex-direction: column; gap: 7px; }
.cs-mock-bar { height: 8px; border-radius: 4px; background: #E8E5E1; }
.cs-mock-bar-red { background: var(--red); width: 60%; }
.cs-mock-bar-mid { width: 80%; }
.cs-mock-bar-short { width: 45%; }
.cs-mock-row { display: flex; gap: 5px; margin-top: 4px; }
.cs-mock-pill { height: 20px; flex: 1; border-radius: 10px; background: #F0EDEA; }
.cs-mock-pill-sm { flex: 0.6; background: #E8E5E1; }
.cs-investor-badges { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.cs-investor-badge { font-family: var(--mono); font-size: 11px; font-weight: 500; background: #fff; border: 1px solid #DDD9D4; border-radius: 6px; padding: 4px 10px; color: #4A4845; white-space: nowrap; }

/* =============================================
   PROCESS
   ============================================= */
#process { background: var(--bg-page); }
.process-header { max-width: 500px; margin-bottom: 3.5rem; }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--border); }
.process-step { padding: 2.25rem 1.75rem 2.25rem 0; border-right: 1px solid var(--border); position: relative; overflow: hidden; }
.process-step-svg { position: absolute; top: -4px; right: -4px; opacity: 0.15; pointer-events: none; }
.process-step:first-child { padding-left: 0; }
.process-step:last-child { border-right: none; padding-right: 0; }
.process-step:not(:first-child) { padding-left: 1.75rem; }
.process-num { font-family: var(--mono); font-size: 21px; color: var(--red); margin-bottom: 0; line-height: 1; }
.process-step-header { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 0.75rem; }
.process-step h3 { margin-bottom: 0; font-size: 19px; }
.process-step p { font-size: 16px; line-height: 1.6; color: #69675F; }

/* =============================================
   TEAM
   ============================================= */
#about { background: var(--bg-alt); border-top: 1px solid var(--border-band); border-bottom: 1px solid var(--border-band); }
#team { background: var(--bg-alt); border-top: 1px solid var(--border-band); border-bottom: 1px solid var(--border-band); }
#team .container { overflow: visible; }
.team-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 1rem; flex-wrap: wrap; gap: 1rem; }
.team-header h2 { margin-bottom: 0; }
.team-link { font-size: 15px; font-weight: 500; color: var(--red); white-space: nowrap; }
.team-desc { max-width: 600px; margin-bottom: 3.5rem; font-size: 20px; line-height: 1.6; color: #5C5A57; margin-top: 1.25rem; }
.team-carousel { overflow: hidden; }
.team-track { display: flex; transition: transform 0.45s cubic-bezier(0.4,0,0.2,1); }
.team-slide { min-width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; box-sizing: border-box; }
.team-dots { display: flex; justify-content: flex-start; gap: 0.5rem; margin-top: 2rem; }
.team-card { min-width: 0; }
.team-photo {
  aspect-ratio: 10/13;
  background: repeating-linear-gradient(45deg, #EDEBE8, #EDEBE8 10px, #F3F2F0 10px, #F3F2F0 20px);
  border-radius: 14px;
  margin-bottom: 1rem;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.team-photo:hover {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(224, 27, 27, 0.12);
}
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform 0.4s ease;
}
.team-photo:hover img { transform: scale(1.14); }
.team-photo-placeholder { font-family: var(--mono); font-size: 11px; color: #A6A29B; }
.team-name-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.team-card h3 { font-size: 18px; margin-bottom: 0.2rem; color: #1A1A1A; }
.team-name-row h3 { margin-bottom: 0; }
.team-role { font-size: 16px; color: #5A5855; margin-top: 3px; }
.ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #B81212;
  background: #FDECEC;
  border: 1px solid #F6D4D4;
  border-radius: 100px;
  padding: 4px;
  line-height: 1.4;
  transform: translateY(-1px);
  cursor: default;
  transition: gap 0.25s ease, padding 0.25s ease;
}
.ai-chip svg { width: 10px; height: 10px; flex-shrink: 0; }
.ai-chip-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width 0.25s ease, opacity 0.2s ease;
}
.ai-chip:hover {
  gap: 3px;
  padding: 2.5px 8px 2.5px 6px;
}
.ai-chip:hover .ai-chip-label {
  max-width: 100px;
  opacity: 1;
}

/* =============================================
   STATS (DARK BAND)
   ============================================= */
#stats { background: var(--bg-dark); color: var(--white); padding: 5.25rem 0; }
.stats-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 2.5rem; align-items: center; }
.stats-heading { font-size: 24px; font-weight: 500; color: #F4F1EC; line-height: 1.3; letter-spacing: -0.02em; }
.stat-value { font-size: 44px; font-weight: 600; color: var(--white); line-height: 1; margin-bottom: 0.375rem; letter-spacing: -0.02em; }
.stat-label { font-size: 14px; color: #9C968D; margin-top: 6px; }

/* =============================================
   ABOUT SECTION
   ============================================= */
#about-us { background: var(--bg-page); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-content h2 { margin-bottom: 1.25rem; }
.about-content p { margin-bottom: 1rem; font-size: 1.1rem; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2rem; }
.about-value { padding: 1.25rem; background: var(--bg-alt); border-radius: 10px; }
.about-value-title { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 0.35rem; }
.about-value p { font-size: 0.95rem; color: var(--text-muted); }
.about-visual { position: relative; }
.about-img {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--bg-alt);
  border-radius: 16px;
  overflow: hidden;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.about-badge-num { font-size: 1.5rem; font-weight: 700; color: var(--text); line-height: 1; }
.about-badge-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.2rem; }

/* =============================================
   TESTIMONIALS
   ============================================= */
#testimonials { background: var(--bg-page); }
.testimonial-inner { max-width: 960px; margin: 0 auto; text-align: center; padding-bottom: 0.5rem; }

.testimonial-subtitle { font-size: 18px; line-height: 1.6; color: #5C5A57; text-align: center; margin: 0.5rem auto 2.5rem; max-width: 600px; }

/* Carousel */
.testimonial-carousel { position: relative; overflow: hidden; }
.testimonial-track { display: flex; transition: transform 0.45s cubic-bezier(0.4,0,0.2,1); will-change: transform; }
.testimonial-slide { min-width: 100%; padding: 0 0.5rem; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; }

/* Logo circle above quote */
.testimonial-logo-circle { width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 2rem; overflow: hidden; }
.testimonial-logo-circle img { width: 60%; height: 60%; object-fit: contain; }
.testimonial-logo-initials { font-family: var(--mono); font-size: 1.1rem; font-weight: 600; color: var(--text-muted); }
.testimonial-logo-placeholder-circle { background: repeating-linear-gradient(45deg, #E7E5E2, #E7E5E2 6px, #EFEEEC 6px, #EFEEEC 12px); }

.testimonial-quote { font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 500; color: #1C1A17; line-height: 1.55; letter-spacing: -0.01em; margin-bottom: 2rem; max-width: 100%; }
.testimonial-placeholder-text { color: var(--text-muted); font-weight: 400; font-style: italic; }
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: 0.75rem; }
.testimonial-avatar-circle { width: 58px; height: 58px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 1px solid var(--border); }
.testimonial-avatar-circle img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name { font-size: 1.08rem; font-weight: 600; color: var(--text); text-align: left; }
.testimonial-title { font-size: 0.98rem; color: var(--text-muted); text-align: left; }

/* Dots */
.testimonial-dots { display: flex; justify-content: center; gap: 0; margin-top: 1.25rem; }
.t-dot { width: 44px; height: 44px; border-radius: 50%; border: none; background: transparent; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin: 0 -10px; }
.t-dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #D8D6D2; transition: background 0.2s, transform 0.2s; }
.t-dot-active::after { background: #1C1A17; transform: scale(1.25); }

/* =============================================
   CONTACT CTA
   ============================================= */
#contact { background: var(--bg-page); padding: 0 0 6rem; }
.contact-card {
  background: linear-gradient(135deg, #E01B1B 0%, #B81212 100%);
  border-radius: 24px;
  padding: 4.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.contact-card::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 220px;
  height: 220px;
  border: 2px solid rgba(255,255,255,0.14);
  border-radius: 24px;
  transform: rotate(15deg);
  pointer-events: none;
}
.contact-card h2 { color: var(--white); margin-bottom: 0.75rem; font-size: 44px; }
.contact-card p { color: rgba(255,255,255,0.86); max-width: 480px; font-size: 18px; }
.contact-actions { display: flex; gap: 0.875rem; flex-wrap: wrap; position: relative; z-index: 1; }

/* =============================================
   FOOTER
   ============================================= */
.footer { background: var(--bg-page); border-top: 1px solid var(--border); padding: 4rem 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand-logo { margin-bottom: 1rem; }
.footer-brand-logo img { height: 32px; width: auto; }
.footer-brand-desc { font-size: 0.88rem; color: var(--text-muted); max-width: 240px; }
.footer-col-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); margin-bottom: 1.25rem; display: block; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { font-size: 0.88rem; color: var(--text-muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 0.75rem; }
.footer-copy { font-size: 0.82rem; color: var(--text-light); }
.footer-tagline { font-size: 0.82rem; color: var(--text-light); }

/* =============================================
   RESPONSIVE — Tablet (≤900px)
   ============================================= */
@media (max-width: 900px) {
  section { padding: 5rem 0; }

  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { max-width: 480px; }

  .services-grid { grid-template-columns: 1fr 1fr; }

  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-step { border-bottom: 1px solid var(--border); }
  .process-step:nth-child(2) { border-right: none; }
  .process-step:nth-child(3) { border-right: 1px solid var(--border); }
  .process-step:nth-child(3),
  .process-step:nth-child(4) { border-bottom: none; }

  .team-slide { grid-template-columns: 1fr 1fr; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { max-width: 420px; }
  .about-img { aspect-ratio: 16/9; }

  .contact-card { grid-template-columns: 1fr; gap: 2rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* =============================================
   RESPONSIVE — Mobile (≤640px)
   ============================================= */
@media (max-width: 640px) {
  section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }

  /* Sticky nav on mobile */
  .navbar-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid var(--border);
    gap: 1.25rem;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .navbar-nav.open { display: flex; }
  .navbar-cta { margin-left: 0; }
  .nav-toggle { display: flex; }

  /* Hero */
  .hero-visual { display: none; }
  #hero { padding: 4rem 0 3rem; }
  .hero-stats { gap: 1.5rem; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Work */
  .work-grid { grid-template-columns: 1fr; }
  .work-header { flex-direction: column; align-items: flex-start; }

  /* Process */
  .process-steps { grid-template-columns: 1fr; }
  .process-step { border-right: none !important; border-bottom: 1px solid var(--border); padding-left: 1.75rem !important; padding-right: 1.75rem !important; }
  .process-step:last-child { border-bottom: none; }

  /* Team */
  .team-slide { grid-template-columns: 1fr; gap: 1rem; }
  .team-header { flex-direction: column; align-items: flex-start; }

  /* Stats */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

  /* About */
  .about-values { grid-template-columns: 1fr; }
  .about-badge { left: 0; bottom: -1rem; }

  /* Contact */
  .contact-card { padding: 2.5rem 1.5rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* Logos — same row but scrollable, tighter spacing, smaller logos */
  .logos-row { gap: 1rem; flex-wrap: nowrap; }
  .logos-label { font-size: 10px; padding-right: 0.75rem; }
  .logos-list { overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; gap: 1.25rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .logos-list::-webkit-scrollbar { display: none; }
  .logo-item img { height: 30px; }
}

/* ── Accessibility: focus styles ── */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  background: var(--red);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.1s;
}
.skip-link:focus { top: 1rem; }
