/*
  Tribinni Technologies Pvt. Ltd.
  Design: Refined Corporate Modernism
  Fonts: DM Serif Display + DM Sans
*/

/* ══════════ RESET ══════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #16213e;
  --navy-d:    #0f1729;
  --navy-m:    #1e2d4a;
  --sienna:    #c4572a;
  --sienna-d:  #a84620;
  --sienna-l:  #d9693e;
  --gold:      #d4a853;
  --gold-l:    #e2bc72;
  --cream:     #fafaf7;
  --cream-2:   #f3f1ec;
  --ink:       #141414;
  --body:      #424242;
  --muted:     #6e6b66;
  --line:      rgba(20,30,56,0.10);
  --line-d:    rgba(255,255,255,0.09);
  --white:     #ffffff;
  --r-sm:      10px;
  --r-md:      18px;
  --r-lg:      26px;
  --shadow:    0 20px 60px rgba(16,24,48,0.13);
  --ease:      cubic-bezier(.25,.46,.45,.94);
  --t:         250ms;
}

html {
  scroll-behavior: smooth;
}
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--body);
  background: var(--cream);
  line-height: 1.72;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
}
h1 em, h2 em { font-style: italic; color: var(--sienna); }

.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 100px 0; }
.dark { background: var(--navy); color: rgba(255,255,255,0.72); }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.mt-28 { margin-top: 28px; }

/* ══════════ EYEBROW ══════════ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sienna);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; display: block; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow.light { color: var(--gold); }

/* ══════════ BUTTONS ══════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 50px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform var(--t) var(--ease), box-shadow var(--t), background var(--t);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--sienna); color: #fff; box-shadow: 0 10px 26px rgba(196,87,42,.28); }
.btn-primary:hover { background: var(--sienna-d); box-shadow: 0 14px 34px rgba(196,87,42,.38); }
.btn-outline { background: transparent; color: rgba(255,255,255,.88); border: 1.5px solid rgba(255,255,255,.28); }
.btn-outline:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); }
.btn-white { background: #fff; color: var(--sienna-d); box-shadow: 0 10px 26px rgba(0,0,0,.15); }
.btn-white:hover { background: var(--cream); }
.btn-lg { min-height: 56px; padding: 15px 34px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }

/* ══════════ HEADER / NAV ══════════ */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding-top: env(safe-area-inset-top);
  background: var(--navy-d);
  border-bottom: 1px solid rgba(196,87,42,0.22);
  isolation: isolate;
}

.navbar {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo: use brightness/contrast filter so webp logo pops on dark bg */
.brand-logo {
  height: 80px;
  width: 80px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 1px;
}

/* "tribinni" — DM Serif Display, white, matches logo's large serif wordmark */
.brand-name-tribinni {
  font-family: 'DM Serif Display', serif;
  font-size: 30px;
  font-weight: 400;
  font-style: normal;
  color: #ffffff;
  letter-spacing: 0.01em;
  line-height: 1;
}

/* "TECHNOLOGIES" — DM Sans, sienna, all-caps with wide tracking to match logo */
.brand-name-tech {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--sienna);
  letter-spacing: 0.38em;
  line-height: 1;
}

.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
  color: rgba(255,255,255,.72);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  position: relative;
  transition: color var(--t);
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 2px;
  background: var(--sienna);
  border-radius: 2px;
  transition: width var(--t) var(--ease);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--sienna);
  color: #fff !important;
  transition: background var(--t), transform var(--t) var(--ease), box-shadow var(--t);
}
.nav-cta:hover { background: var(--sienna-d) !important; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(196,87,42,.35); }
.nav-cta::after { display: none !important; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px; height: 44px;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  margin: 4px 0;
  background: #ffffff;
  border-radius: 3px;
  transition: var(--t) var(--ease);
  flex-shrink: 0;
}

/* ══════════ HERO ══════════ */
.hero {
  min-height: 96vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--navy-d);
  color: rgba(255,255,255,.72);
  padding: 0px 0 60px;
  /* Ensure hero respects same horizontal gutter as all other sections via .container */
}
.hero h1 { color: #fff; }

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.orb-1 { width: 600px; height: 600px; right: -60px; top: -100px; background: radial-gradient(circle, rgba(196,87,42,.28) 0%, transparent 70%); opacity: .7; }
.orb-2 { width: 440px; height: 440px; left: -80px; bottom: -80px; background: radial-gradient(circle, rgba(212,168,83,.14) 0%, transparent 70%); opacity: .6; }
.orb-3 { width: 300px; height: 300px; right: 40%; top: 60%; background: radial-gradient(circle, rgba(20,50,100,.55) 0%, transparent 70%); opacity: .8; }
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 80% at 75% 50%, #000 20%, transparent 75%);
}

/* Two-column layout: copy left (wider), graphic right */
.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  /* No width:100% override — let .container handle the max-width + margins */
}

.eyebrow-chip {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(212,168,83,.10);
  border: 1px solid rgba(212,168,83,.28);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero h1 { font-size: clamp(36px, 4.8vw, 68px); margin-bottom: 22px; }
.hero-lead { font-size: 17px; color: rgba(255,255,255,.62); max-width: 560px; margin-bottom: 34px; line-height: 1.68; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Orbit graphic */
.hero-graphic {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  height: 100%;
}

.orbit-wrap {
  position: relative;
  width: 500px;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-center {
  /* 250px wide, height proportional to logo ratio 4167:1819 ≈ 2.29:1 */
  width: 250px;
  height: 110px;
  border-radius: 16px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45), 0 0 0 4px rgba(255,255,255,.10);
  z-index: 2;
  position: relative;
  overflow: hidden;
}
.orbit-center img { width: 100%; height: 100%; object-fit: contain; object-position: center; }

.orbit-svg {
  position: absolute;
  fill: none;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.orbit-lg {
  width: 480px; height: 440px;
  stroke: rgba(212,168,83,.25);
  stroke-width: 1.2;
  stroke-dasharray: 10 18;
  animation: ospin 22s linear infinite;
}
.orbit-sm {
  width: 330px; height: 290px;
  stroke: rgba(196,87,42,.32);
  stroke-width: 1.2;
  stroke-dasharray: 5 12;
  animation: ospin 14s linear infinite reverse;
}
@keyframes ospin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.orbit-tag {
  position: absolute;
  background: rgba(20,28,50,.85);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: 10px; font-weight: 700;
  letter-spacing: .10em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
  backdrop-filter: blur(8px);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,.30);
  z-index: 3;
}
/* Tags sit on outer orbit ring — clear of the 250px wide center card */
.tag-top    { top: 18px;  left: 50%; transform: translateX(-50%); }
.tag-right  { right: 10px; top: 50%; transform: translateY(-50%); }
.tag-bottom { bottom: 18px; left: 50%; transform: translateX(-50%); }
.tag-left   { left: 10px;  top: 50%; transform: translateY(-50%); }
.orbit-label {
  color: rgba(255,255,255,.40);
  font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
}

/* ══════════ STATS BAR ══════════ */
.stats-bar { background: var(--ink); padding: 36px 0; }
.stats-row { display: flex; align-items: center; justify-content: center; }
.stat { flex: 1; text-align: center; padding: 0 16px; }
.stat strong { display: block; font-family: 'DM Serif Display', serif; font-size: 40px; color: var(--gold); line-height: 1; margin-bottom: 5px; }
.stat span { font-size: 11.5px; color: rgba(255,255,255,.44); text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }
.stat-div { width: 1px; height: 50px; background: rgba(255,255,255,.10); flex-shrink: 0; }

/* ══════════ SERVICES ══════════ */
.services { background: var(--cream-2); }
.sec-head { max-width: 680px; margin-bottom: 50px; }
.sec-head.centered { max-width: 580px; margin: 0 auto 50px; text-align: center; }
.sec-head.centered .eyebrow { display: flex; justify-content: center; }
.sec-head h2 { font-size: clamp(30px, 3.8vw, 50px); margin-bottom: 14px; }
.sec-head p { font-size: 17px; color: var(--muted); }

.svc-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.svc-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  display: flex; flex-direction: column;
  box-shadow: 0 4px 18px rgba(20,30,56,.05);
  transition: transform var(--t) var(--ease), box-shadow var(--t), border-color var(--t);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(196,87,42,.22); }
.svc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.svc-num { font-size: 11px; font-weight: 800; letter-spacing: .20em; color: var(--sienna); text-transform: uppercase; }
.svc-ico { width: 40px; height: 40px; border-radius: 10px; background: rgba(196,87,42,.08); color: var(--sienna); display: flex; align-items: center; justify-content: center; }
.svc-card h3 { font-size: 24px; margin-bottom: 12px; }
.svc-card p { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; flex: 1; }
.svc-card li { font-size: 13.5px; padding: 8px 0 8px 18px; border-top: 1px solid rgba(20,30,56,.07); position: relative; color: var(--body); }
.svc-card li::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; border-radius: 50%; background: var(--sienna); }
.svc-featured { background: var(--navy); border-color: rgba(255,255,255,.08); }
.svc-featured h3 { color: #fff; }
.svc-featured p { color: rgba(255,255,255,.56); }
.svc-featured li { color: rgba(255,255,255,.66); border-color: rgba(255,255,255,.08); }
.svc-featured .svc-num { color: var(--gold); }
.svc-featured .svc-ico { background: rgba(212,168,83,.12); color: var(--gold); }

/* ══════════ APPROACH ══════════ */
.approach-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: center; }
.approach-intro h2 { font-size: clamp(30px, 3.5vw, 48px); margin-bottom: 16px; }
.approach-intro p { font-size: 16px; color: rgba(255,255,255,.58); }
.steps { display: grid; gap: 12px; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start;
  padding: 20px; border-radius: var(--r-md);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  transition: background var(--t), border-color var(--t);
}
.step:hover { background: rgba(255,255,255,.08); border-color: rgba(212,168,83,.24); }
.step-n { font-family: 'DM Serif Display', serif; font-size: 28px; color: var(--gold); line-height: 1; padding-top: 2px; }
.step-body h3 { font-size: 20px; margin-bottom: 5px; }
.step-body p { font-size: 13.5px; color: rgba(255,255,255,.54); line-height: 1.6; }

/* ══════════ INDUSTRIES (no background image) ══════════ */
.industries { background: var(--navy-d); color: rgba(255,255,255,.8); }
.industries h2 { color: #fff; }
.industries .sec-head p { color: rgba(255,255,255,.60); }
.industries .eyebrow { color: #42b650; }

.ind-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.ind-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 14px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  text-align: center;
  cursor: default;
  transition: background var(--t), border-color var(--t), transform var(--t) var(--ease);
}
.ind-item:hover { background: rgba(255,255,255,.10); border-color: rgba(212,168,83,.30); transform: translateY(-3px); }
.ind-icon { color: var(--gold); opacity: .85; }
.ind-item span { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.80); letter-spacing: .02em; line-height: 1.3; }

/* ══════════ WHY US ══════════ */
.why-us .pillars { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.pillar {
  padding: 32px 24px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform var(--t) var(--ease), background var(--t), border-color var(--t);
}
.pillar:hover { transform: translateY(-4px); background: rgba(255,255,255,.08); border-color: rgba(212,168,83,.24); }
.pillar-icon { width: 50px; height: 50px; border-radius: 13px; background: rgba(196,87,42,.12); color: var(--sienna-l); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.pillar h3 { font-size: 22px; margin-bottom: 10px; }
.pillar p { font-size: 14.5px; color: rgba(255,255,255,.56); line-height: 1.65; }

/* ══════════ WHO WE ARE (About) ══════════ */
.about {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 14% 18%, rgba(196,87,42,0.16), transparent 30%),
    radial-gradient(circle at 86% 16%, rgba(212,168,83,0.22), transparent 28%),
    linear-gradient(135deg, #fffaf2 0%, #f6eddf 48%, #efe2cf 100%);
}
.about::before {
  content: '';
  position: absolute;
  inset: 18px;
  pointer-events: none;
  border-radius: 34px;
  border: 1px solid rgba(20,30,56,.07);
  background-image:
    linear-gradient(rgba(20,30,56,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,30,56,0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent);
  opacity: .75;
  z-index: -2;
}
.about::after {
  content: '';
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 40px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(ellipse, rgba(20,30,56,.10), transparent 68%);
  filter: blur(18px);
  z-index: -3;
}
.about-bg-shape {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
}
.about-bg-shape-one {
  width: 420px;
  height: 420px;
  right: -150px;
  top: 80px;
  background: radial-gradient(circle, rgba(196,87,42,.18), transparent 68%);
}
.about-bg-shape-two {
  width: 340px;
  height: 340px;
  left: -120px;
  bottom: 80px;
  background: radial-gradient(circle, rgba(20,30,56,.10), transparent 68%);
}
.about.section { padding: 108px 0; }
.about-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(390px, 1.02fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.about-copy {
  position: relative;
}
.about-copy::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 48px;
  width: 3px;
  height: 172px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--sienna), var(--gold), transparent);
}
.about-copy h2 {
  max-width: 780px;
  font-size: clamp(34px, 4.35vw, 60px);
  line-height: .96;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}
.about-copy p {
  max-width: 680px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.78;
  margin-bottom: 14px;
}
.about-copy .about-lead {
  font-size: clamp(17px, 1.45vw, 20px);
  color: rgba(20,30,56,.84);
  line-height: 1.7;
  margin-bottom: 18px;
}
.about-showcase {
  position: relative;
  display: grid;
  align-content: start;
  gap: 18px;
}
.about-showcase::before {
  content: '';
  position: absolute;
  inset: -18px -16px;
  border-radius: 34px;
  background: rgba(255,255,255,.24);
  border: 1px solid rgba(255,255,255,.46);
  box-shadow: 0 30px 84px rgba(20,30,56,.10);
  backdrop-filter: blur(8px);
  z-index: -1;
}

/* ── Panel Portal Card ── */
.panel-portal-card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  /*background:
    linear-gradient(135deg, rgba(255,255,255,.88) 0%, rgba(255,250,244,.90) 54%, rgba(255,244,232,.86) 100%);*/
  border: 1px solid rgba(196,87,42,0.20);
  box-shadow: 0 24px 74px rgba(20,30,56,0.13), 0 0 0 1px rgba(255,255,255,0.75) inset;
}
.panel-portal-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  /*background: linear-gradient(90deg, rgba(196,87,42,.12), transparent 26%, transparent 74%, rgba(212,168,83,.12));*/
}
.pp-glow {
  position: absolute;
  top: -70px; right: -70px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,87,42,0.19) 0%, transparent 70%);
  pointer-events: none;
}
.pp-inner {
  position: relative;
  z-index: 1;
  padding: 26px 28px 24px;
}
.pp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.pp-badge {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sienna-d);
  background: rgba(196,87,42,0.11);
  border: 1px solid rgba(196,87,42,0.24);
  padding: 5px 11px;
  border-radius: 999px;
}
.pp-live-dot {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(20,30,56,0.54);
  letter-spacing: 0.06em;
}
.pp-live-dot span {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.16);
  animation: pp-pulse 2s ease-in-out infinite;
}
@keyframes pp-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(22,163,74,0.16); }
  50%       { box-shadow: 0 0 0 6px rgba(22,163,74,0.08); }
}
.pp-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.pp-icon {
  width: 56px; height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(196,87,42,0.13), rgba(212,168,83,0.15));
  border: 1px solid rgba(196,87,42,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sienna);
  flex-shrink: 0;
}
.pp-name {
  font-family: 'DM Serif Display', serif;
  font-size: 25px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 5px;
}
.pp-tagline {
  font-size: 12px;
  color: rgba(20,30,56,0.52);
  letter-spacing: 0.02em;
  margin: 0;
}
.pp-desc {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(20,30,56,0.66);
  margin-bottom: 20px;
}
.pp-stats {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border-radius: 18px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(20,30,56,0.075);
  margin-bottom: 18px;
}
.pp-stat strong {
  display: block;
  font-size: 13px;
  color: var(--navy);
  margin-bottom: 3px;
}
.pp-stat span {
  display: block;
  font-size: 10.5px;
  color: rgba(20,30,56,0.50);
  line-height: 1.2;
}
.pp-stat-div {
  width: 1px;
  height: 32px;
  background: rgba(20,30,56,0.09);
}
.pp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--sienna), var(--sienna-d));
  box-shadow: 0 12px 28px rgba(196,87,42,0.22);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pp-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(196,87,42,0.28);
}

/* ══════════ CAREERS (reference design) ══════════ */
.careers { background: var(--cream-2); }
.careers-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

/* Culture card — dark navy, matches reference */
.culture-card {
  background: var(--navy);
  border-radius: var(--r-lg);
  padding: 44px 40px;
  color: rgba(255,255,255,.72);
  box-shadow: var(--shadow);
  min-height: 320px;
}
.culture-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.culture-label::before { content: ''; display: block; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.culture-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(22px, 2.8vw, 32px);
  color: #fff;
  margin-bottom: 28px;
  line-height: 1.2;
}
.culture-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.culture-tags span {
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.80);
  font-size: 13.5px;
  font-weight: 500;
  cursor: default;
  transition: background var(--t), border-color var(--t);
}
.culture-tags span:hover { background: rgba(196,87,42,.20); border-color: rgba(196,87,42,.40); }

/* Careers copy — right side */
.careers-copy h2 { font-size: clamp(28px, 3.5vw, 48px); margin-bottom: 18px; }
.careers-copy p { font-size: 16px; color: var(--muted); margin-bottom: 14px; line-height: 1.7; }
.careers-email-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sienna);
  font-size: 16px;
  font-weight: 700;
  margin-top: 12px;
  transition: gap var(--t) var(--ease), opacity var(--t);
}
.careers-email-link:hover { gap: 12px; opacity: .8; }

/* ══════════ CTA STRIP ══════════ */
.cta-strip { background: linear-gradient(135deg, var(--sienna) 0%, var(--sienna-d) 100%); padding: 64px 0; }
.cta-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.cta-strip h2 { font-size: clamp(26px, 3.2vw, 42px); color: #fff; margin-bottom: 8px; }
.cta-strip p { color: rgba(255,255,255,.72); font-size: 16px; }

/* ══════════ CONTACT ══════════ */
.contact { background: var(--cream-2); }
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact-info h2 { font-size: clamp(28px, 3.2vw, 44px); margin-bottom: 12px; }
.contact-info > p { font-size: 16px; color: var(--muted); margin-bottom: 28px; }
.contact-list { display: grid; gap: 12px; }
/* 2-column layout: Email|Phone on row 1, India|USA on row 2 */
.contact-list-2col { grid-template-columns: 1fr 1fr; }
.contact-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: var(--r-md); background: var(--cream); border: 1px solid var(--line); }
.ci-icon { width: 34px; height: 34px; border-radius: 9px; background: rgba(196,87,42,.08); color: var(--sienna); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item strong { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.contact-item a, .contact-item span { font-size: 14px; color: var(--body); }
.contact-item a:hover { color: var(--sienna); }
.contact-form { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 7px; }
.contact-form span { font-size: 12.5px; font-weight: 700; color: var(--navy); letter-spacing: .04em; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 12px 15px; border: 1.5px solid rgba(20,30,56,.12); border-radius: var(--r-sm);
  background: #fff; font: inherit; font-size: 15px; color: var(--ink); outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--sienna); box-shadow: 0 0 0 3px rgba(196,87,42,.10); }
.contact-form textarea { resize: vertical; min-height: 116px; }

/* ══════════ FOOTER ══════════ */
.footer { background: var(--navy-d); color: rgba(255,255,255,.55); padding: 64px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1.6fr; gap: 56px; padding-bottom: 48px; align-items: start; }
/* Three link columns inside the links row */
.footer-links-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

/* Footer logo: brightness filter so logo pops on dark bg without white box */
.ft-logo {
  height: 80px;
  width: 80px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
  flex-shrink: 0;
}

.ft-brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  margin-bottom: 16px;
}

.ft-brand-lockup .brand-name-tribinni { color: #ffffff; }
.ft-brand-lockup .brand-name-tech     { color: var(--sienna); }

.ft-brand p { font-size: 13.5px; max-width: 270px; line-height: 1.72; margin-bottom: 8px; }
.ft-founded { font-size: 12px; color: rgba(255,255,255,.30); letter-spacing: .06em; margin-bottom: 16px; }

/* Social icons */
.ft-social { display: flex; gap: 10px; margin-top: 4px; }
.social-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.60);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t) var(--ease);
}
.social-icon:hover { background: var(--sienna); border-color: var(--sienna); color: #fff; transform: translateY(-2px); }

.ft-col h4 { color: #fff; font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.ft-col a, .ft-col span { display: block; margin-bottom: 9px; font-size: 13.5px; color: rgba(255,255,255,.52); transition: color var(--t); }
.ft-col a:hover { color: rgba(255,255,255,.90); }

.footer-bar { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; }
.footer-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 13px; color: rgba(255,255,255,.28); }
.footer-bar-links { display: flex; align-items: center; gap: 8px; }
.footer-bar-links a { color: rgba(255,255,255,.40); font-size: 13px; transition: color var(--t); }
.footer-bar-links a:hover { color: rgba(255,255,255,.80); }
.ft-sep { color: rgba(255,255,255,.20); }

/* ══════════ SCROLL TOP ══════════ */
.scroll-top {
  position: fixed; right: 22px; bottom: 22px;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--sienna); color: #fff; font-size: 19px; cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t), transform var(--t) var(--ease), box-shadow var(--t);
  box-shadow: 0 8px 22px rgba(196,87,42,.35);
}
.scroll-top.show { opacity: 1; pointer-events: auto; }
.scroll-top:hover { transform: translateY(-3px); }

/* ══════════ REVEAL ANIMATIONS ══════════ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 660ms var(--ease), transform 660ms var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 200ms; }
.delay-3 { transition-delay: 300ms; }

/* ══════════ LEGAL PAGES ══════════ */
.legal-page { padding: 116px 0 80px; min-height: 80vh; }
.legal-page h1 { font-size: clamp(34px, 4vw, 54px); margin-bottom: 12px; }
.legal-meta { font-size: 14px; color: var(--muted); margin-bottom: 48px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.legal-body h2 { font-size: clamp(20px, 2.5vw, 28px); margin: 36px 0 12px; color: var(--navy); }
.legal-body h3 { font-size: 18px; margin: 24px 0 10px; color: var(--navy); }
.legal-body p { font-size: 16px; color: var(--body); margin-bottom: 14px; line-height: 1.78; }
.legal-body ul { margin: 12px 0 18px 24px; list-style: disc; }
.legal-body ul li { font-size: 16px; color: var(--body); margin-bottom: 7px; line-height: 1.7; }
.legal-body strong { color: var(--ink); }
.legal-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.legal-table th { background: var(--navy); color: #fff; text-align: left; padding: 12px 16px; font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .06em; }
.legal-table td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.65; }
.legal-table tr:hover td { background: var(--cream-2); }

/* ══════════ RESPONSIVE ══════════ */

/* ══════════ WORLD MAP (HERO) ══════════ */
.hero-global {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 2;
  position: relative;
  min-width: 0;
  max-width: 100%;
}
.hero-global.reveal {
  opacity: 1;
  transform: none;
}
.hero-global-heading {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(24px, 2.4vw, 30px);
  color: #fff;
  margin-bottom: 2px;
  text-align: center;
  text-shadow: 0 8px 24px rgba(0,0,0,.36);
}
.world-map-wrap {
  width: 100%;
  max-width: 100%;
  position: relative;
  isolation: isolate;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  padding: 18px 16px 12px;
  box-shadow: none;
}
.world-map-wrap::before,
.world-map-wrap::after {
  display: none;
}
.world-map-svg { width: 100%; height: auto; display: block; overflow: visible; position: relative; z-index: 1; }

/* Country-level world map */
.map-glow { fill: url(#mapGlow); opacity: .92; }
.map-countries { transform-origin: center; }
.map-country {
  fill: rgba(230,238,236,.105);
  stroke: rgba(255,255,255,.18);
  stroke-width: .48;
  vector-effect: non-scaling-stroke;
  transition: fill var(--t), opacity var(--t), filter var(--t);
}
.map-country:nth-child(4n),
.map-country:nth-child(4n+1),
.map-country:nth-child(4n+2),
.map-country:nth-child(4n+3) { fill: rgba(229,235,233,.105); }
.map-highlight {
  stroke: rgba(255,255,255,.98);
  stroke-width: 1.55;
  filter: url(#mapPremiumShadow);
}
.map-global { fill: url(#globalReachGradient) !important; }

/* Location pins and callouts */
.map-callout-line {
  stroke-width: 1.15;
  stroke-dasharray: 3 7;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  opacity: .58;
}
.global-line { stroke: rgba(226,188,114,.86); }
.map-pin { filter: drop-shadow(0 8px 10px rgba(0,0,0,.30)) drop-shadow(0 0 8px rgba(212,168,83,.45)); }
.pin-primary { fill: url(#globalReachGradient); stroke: rgba(255,255,255,.96); stroke-width: 2; }
/* Pulse animations */
.map-pin-pulse {
  fill: none;
  stroke: rgba(226,188,114,.92);
  stroke-width: 1.7;
  animation: pin-pulse 2.4s ease-out infinite;
}
@keyframes pin-pulse {
  0%   { r: 9;  opacity: .8; }
  100% { r: 22; opacity: 0;  }
}

/* Labels */
.map-pin-label,
.map-pin-label-sm {
  fill: rgba(255,255,255,.96);
  font-size: 22px;
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(8,14,28,.88);
  stroke-width: 4.5px;
  stroke-linejoin: round;
  dominant-baseline: middle;
}

/* Legend */
.map-legend {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
}
.legend-item-h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.66);
}
.legend-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(212,168,83,.10), 0 0 18px rgba(212,168,83,.40);
}
.legend-dot.sienna { background: linear-gradient(135deg, var(--gold-l), var(--sienna)); }

/* ══════════ WHY US — 6 pillars grid ══════════ */
.why-us .pillars { grid-template-columns: repeat(3, 1fr); }


/* ══════════════════════════════════════════════════════
   RESPONSIVE — 3-TIER BREAKPOINT SYSTEM
   1100px  tablet / small laptop
    760px  large mobile / small tablet
    480px  small phone
══════════════════════════════════════════════════════ */

/* ── TABLET WIDE (≤1200px) — shrink orbit before it gets squashed ── */
@media (max-width: 1200px) {
  .hero-layout        { grid-template-columns: 1fr 360px; gap: 40px; }
  /* orbit hidden on tablet (hero-graphic: none) */
}

/* ── TABLET (≤1100px) ── */
@media (max-width: 1100px) {
  .svc-grid           { grid-template-columns: repeat(2, 1fr); }
  .why-us .pillars    { grid-template-columns: repeat(2, 1fr); }
  .ind-grid           { grid-template-columns: repeat(4, 1fr); }
  .footer-inner       { grid-template-columns: 1fr; gap: 36px; }
  /* Hero: single column on tablet — world map shows below copy */
  .hero-layout        { grid-template-columns: 1fr; }
  .hero-graphic       { display: none; }
  .hero-global        { display: flex; width: 100%; max-width: 600px; margin: 0 auto; }
  .hero               { min-height: auto; padding: 100px 0 60px; }
  .approach-layout    { grid-template-columns: 1fr; gap: 44px; }
  .careers-layout     { grid-template-columns: 1fr; gap: 44px; }
  .contact-layout     { grid-template-columns: 1fr; gap: 44px; }
  .split              { gap: 44px; }
  .stats-row          { gap: 0; }
}

/* ── MOBILE (≤760px) ── */
@media (max-width: 760px) {
  /* Layout */
  .container          { width: calc(100% - 24px); }
  .section            { padding: 60px 0; }

  /* Header */
  .navbar             { height: 80px; }
  .brand-logo         { height: 64px; width: 64px; }
  .brand-name-tribinni { font-size: 24px; }
  .brand-name-tech    { font-size: 7.5px; letter-spacing: 0.30em; }

  /* Hamburger — show on mobile */
  .menu-toggle        { display: flex !important; flex-direction: column; justify-content: center; align-items: center; width: 48px; height: 48px; padding: 10px; }

  /* ── Mobile nav overlay — modern design ── */
  .nav-links {
    position: fixed;
    top: 80px; left: 0; right: 0;
    height: calc(100dvh - 80px);
    z-index: 199;
    /* Subtle gradient background */
    background: linear-gradient(160deg, #0f1729 0%, #16213e 60%, #1a1535 100%);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    transform: translateX(100%);
    transition: transform 340ms cubic-bezier(.22,.61,.36,1);
    overflow-y: auto;
    padding: 32px 28px 40px;
    display: flex;
  }
  .nav-links.open { transform: translateX(0); }

  /* Thin accent line at top of menu */
  .nav-links::before {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--sienna);
    border-radius: 3px;
    margin: 0 auto 36px;
    flex-shrink: 0;
  }

  /* Each nav link row */
  .nav-links a:not(.nav-cta) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.70);
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
    text-align: left;
    transition: color var(--t), padding-left var(--t);
  }
  /* Arrow chevron on each item */
  .nav-links a:not(.nav-cta)::after {
    content: '›';
    font-size: 20px;
    color: var(--sienna);
    opacity: .7;
    position: static;           /* override desktop underline pseudo */
    width: auto; height: auto;
    background: none;
    transform: none;
    transition: transform var(--t), opacity var(--t);
  }
  .nav-links a:not(.nav-cta):hover {
    color: #fff;
    padding-left: 6px;
  }
  .nav-links a:not(.nav-cta):hover::after {
    transform: translateX(4px);
    opacity: 1;
  }

  /* Request Proposal CTA — full width at bottom */
  .nav-cta {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-top: 32px;
    padding: 16px 28px;
    border-radius: 14px;
    background: var(--sienna);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(196,87,42,.35);
    text-align: center;
    border-bottom: none;
  }
  .nav-cta::after { display: none !important; }
  .nav-cta:hover  { background: var(--sienna-d); padding-left: 28px; }

  /* Hamburger animation */
  .menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* Hero */
  .hero               { padding: 92px 0 48px; overflow-x: clip; }
  .hero-copy          { min-width: 0; }
  .hero h1            { font-size: clamp(31px, 9.4vw, 44px); overflow-wrap: anywhere; }
  .hero-lead          { font-size: 16px; }
  .hero-layout        { gap: 34px; }
  .eyebrow-chip       { font-size: 10px; padding: 5px 12px; }
  /* Full-width buttons on mobile for easy tapping */
  .hero-ctas          { flex-direction: column; gap: 12px; }
  .hero-ctas .btn     { width: 100%; justify-content: center; min-height: 52px; }

  /* Stats */
  .stats-bar          { padding: 28px 0; }
  .stats-row          { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
  .stat               { padding: 16px 12px; background: rgba(255,255,255,.04); }
  .stat strong        { font-size: 34px; }
  .stat span          { font-size: 11px; }
  .stat-div           { display: none; }

  /* Services */
  .svc-grid           { grid-template-columns: 1fr; gap: 14px; }
  .sec-head           { margin-bottom: 36px; }

  /* Approach steps */
  .steps              { gap: 10px; }
  .step               { grid-template-columns: 44px 1fr; gap: 12px; padding: 16px; }
  .step-n             { font-size: 22px; }
  .step-body h3       { font-size: 18px; }

  /* Industries */
  .ind-grid           { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ind-item           { padding: 18px 10px; }
  .ind-item span      { font-size: 12px; }

  /* Why Us pillars */
  .why-us .pillars    { grid-template-columns: 1fr; gap: 12px; }
  .pillar             { padding: 24px 20px; }

  /* About */
  .about.section     { padding: 64px 0; }
  .about-layout       { grid-template-columns: 1fr; gap: 28px; }
  .pp-inner           { padding: 22px 20px 20px; }
  .pp-name            { font-size: 20px; }
  .pp-stats           { padding: 12px 0; overflow-x: auto; }

  /* Careers */
  .careers-layout     { grid-template-columns: 1fr; gap: 36px; }
  .culture-card       { padding: 28px 24px; min-height: auto; }
  .culture-card h3    { font-size: 22px; }
  .culture-tags span  { font-size: 13px; padding: 7px 14px; }
  .careers-copy h2    { font-size: clamp(26px, 8vw, 38px); }

  /* CTA strip */
  .cta-strip          { padding: 48px 0; }
  .cta-strip-inner    { flex-direction: column; text-align: center; gap: 24px; }
  .cta-strip h2       { font-size: clamp(22px, 7vw, 34px); }
  .cta-strip .btn-white { width: 100%; justify-content: center; min-height: 52px; }

  /* Contact */
  .contact-form       { padding: 22px; }
  .form-row-2         { grid-template-columns: 1fr; }
  .contact-list-2col  { grid-template-columns: 1fr; }
  /* Larger touch targets for form fields */
  .contact-form input,
  .contact-form textarea { padding: 14px 15px; font-size: 16px; /* 16px prevents iOS zoom */ }
  .btn-block          { min-height: 52px; }

  /* Footer */
  .footer             { padding: 48px 0 0; }
  .footer-inner       { grid-template-columns: 1fr; gap: 28px; padding-bottom: 36px; }
  .hero-global          { width: 100%; }
  .world-map-wrap       { padding: 10px; }
  .map-pin-label,
  .map-pin-label-sm     { font-size: 20px; letter-spacing: .08em; stroke-width: 3.2px; }
  .why-us .pillars      { grid-template-columns: 1fr; }

  /* Keep the 3 link columns side-by-side on mobile (matches screenshot) */
  .footer-links-row   { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .ft-col h4          { font-size: 11px; margin-bottom: 12px; }
  .ft-col a, .ft-col span { font-size: 12.5px; margin-bottom: 8px; }
  .ft-logo            { height: 64px; width: 64px; }
  .footer-bar-inner   { flex-direction: column; text-align: center; gap: 8px; }

  /* Momentum scroll on iOS */
  html                { -webkit-overflow-scrolling: touch; }
  /* Scroll top button — larger on mobile */
  .scroll-top         { width: 52px; height: 52px; right: 16px; bottom: 16px; font-size: 20px; }

  /* Legal pages */
  .legal-page         { padding: 90px 0 60px; }
  .legal-table        { font-size: 13px; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .legal-table th,
  .legal-table td     { padding: 9px 12px; }
}

/* ── SMALL PHONE (≤480px) ── */
@media (max-width: 480px) {
  .container          { width: calc(100% - 20px); }

  /* Even smaller hero text on tiny screens */
  .hero h1            { font-size: clamp(28px, 9vw, 40px); }
  .hero-lead          { font-size: 15px; }

  /* Stats: stack to single column on tiny screens */
  .stats-row          { grid-template-columns: 1fr; gap: 1px; }
  .stat               { padding: 14px; }
  .stat strong        { font-size: 30px; }

  /* Industries: single column on very small screens */
  .ind-grid           { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ind-item           { padding: 14px 8px; gap: 6px; }
  .ind-icon svg       { width: 18px; height: 18px; }
  .ind-item span      { font-size: 11.5px; }

  /* Service cards */
  .svc-card           { padding: 24px 20px; }
  .svc-card h3        { font-size: 22px; }

  /* Steps: simplified on tiny screens */
  .step               { grid-template-columns: 1fr; gap: 4px; }
  .step-n             { font-size: 18px; margin-bottom: 2px; }

  /* Pillars */
  .pillar             { padding: 20px 18px; }
  .pillar h3          { font-size: 20px; }

  /* Culture card */
  .culture-card       { padding: 24px 20px; }
  .culture-tags       { gap: 8px; }
  .culture-tags span  { font-size: 12px; padding: 6px 12px; }

  /* Contact items */
  .contact-item       { padding: 12px; gap: 10px; }

  /* Footer */
  .ft-social          { gap: 8px; }
  .social-icon        { width: 34px; height: 34px; }
  .footer-bar-links   { flex-wrap: wrap; justify-content: center; gap: 6px; }

  /* Buttons */
  .btn                { min-height: 48px; padding: 12px 22px; font-size: 14px; }
  .btn-lg             { min-height: 52px; }
}

/* ══════════ ACCESSIBILITY AND MOTION PREFERENCES ══════════ */
:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid rgba(212,168,83,.95);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 420px) {
  .brand-logo { width: 54px; height: 54px; }
  .brand-name-tribinni { font-size: 21px; }
  .brand-name-tech { font-size: 6.8px; letter-spacing: .25em; }
  .menu-toggle { width: 44px; height: 44px; }
  .hero h1 { font-size: clamp(29px, 9vw, 38px); }
  .hero-lead { font-size: 15.5px; }
  .btn { padding-left: 18px; padding-right: 18px; }
}

/* ══════════ FINAL MOBILE OVERFLOW HARDENING ══════════ */
html,
body {
  max-width: 100%;
}

html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

@media (max-width: 760px) {
  .navbar {
    width: calc(100% - 24px);
    min-width: 0;
    gap: 12px;
  }
  .brand {
    min-width: 0;
    gap: 9px;
  }
  .brand-name {
    min-width: 0;
  }
  .menu-toggle {
    display: flex !important;
    flex: 0 0 48px;
    margin-left: auto;
  }
  .hero-layout,
  .hero-copy,
  .hero h1,
  .hero-lead,
  .hero-ctas {
    max-width: 100%;
    min-width: 0;
  }
  .hero h1 {
    font-size: clamp(28px, 8.2vw, 38px);
    line-height: 1.08;
    letter-spacing: -0.025em;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  .hero-lead {
    font-size: 15.5px;
    line-height: 1.62;
  }
  .eyebrow-chip {
    max-width: 100%;
    white-space: normal;
    line-height: 1.45;
  }
}

@media (max-width: 420px) {
  .navbar {
    width: calc(100% - 20px);
  }
  .brand-name-tribinni {
    font-size: 20px;
  }
  .brand-name-tech {
    font-size: 6.5px;
    letter-spacing: .22em;
  }
  .menu-toggle {
    flex-basis: 44px;
  }
  .hero h1 {
    font-size: clamp(26px, 7.8vw, 34px);
  }
}

/* ── Contact Form: Progress Bar ── */
.form-progress-wrap {
  display: none;
  margin-bottom: 14px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255,255,255,0.12);
  height: 6px;
}
.form-progress-wrap.active {
  display: block;
}
.form-progress-bar {
  height: 6px;
  width: 0%;
  background: linear-gradient(90deg, #d4a853, #e8c47a);
  border-radius: 6px;
  transition: width 0.4s ease;
}

/* ── Success Modal ── */
.form-success-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  background: rgba(10,30,40,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: modalFadeIn 0.3s ease;
}
.form-success-modal.active {
  display: flex;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.form-success-inner {
  background: #fff;
  border-radius: 16px;
  padding: 48px 40px 40px;
  max-width: 420px;
  width: calc(100% - 40px);
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.22);
  animation: modalSlideUp 0.35s cubic-bezier(.22,.68,0,1.2);
}
@keyframes modalSlideUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.form-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d3d4f, #1a6b82);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.form-success-icon svg {
  width: 30px;
  height: 30px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.form-success-inner h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0d3d4f;
  margin: 0 0 10px;
}
.form-success-inner p {
  font-size: 15px;
  color: #555;
  line-height: 1.65;
  margin: 0;
}
