/* ═══════════════════════════════════════════════════════
   YANTRA AGENCY — Design System v3
   yantra.agency
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  --blue:    #005CE7;
  --blue-dk: #0047B3;
  --blue-lt: #3D7FEF;
  --gold:    #CA8D07;
  --onyx:    #0D0D0D;
  --navy:    #060E1E;
  --navy2:   #0B1728;
  --slate:   #4A4A4A;
  --silver:  #C4C4C4;
  --fog:     #F4F4F5;
  --rule:    #E8E8E8;
  --white:   #FFFFFF;

  --font:    'Plus Jakarta Sans', -apple-system, sans-serif;
  --header-h: 72px;

  /* Premium easing — expo out. Feels immediate, settles naturally */
  --ease:    cubic-bezier(0.16, 1, 0.3, 1);
  /* No-bounce spring — fast out, no overshoot */
  --spring:  cubic-bezier(0.22, 1, 0.36, 1);

  --t:       0.24s var(--ease);
  --t-md:    0.38s var(--ease);
  --t-lg:    0.55s var(--ease);
  --t-xl:    0.72s var(--ease);

  /* z-index scale */
  --z-header:      100;
  --z-mobile-menu: 110;
  --z-overlay:     120;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--onyx);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img    { max-width: 100%; display: block; }
a      { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul     { list-style: none; }

/* ── KEYFRAMES ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); filter: blur(4px); }
  to   { opacity: 1; transform: none;              filter: blur(0);   }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeSlideRight {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroGlow {
  from { transform: scale(1) translate(0, 0);       opacity: 0.55; }
  to   { transform: scale(1.12) translate(-3%, 2%); opacity: 0.9;  }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.45; }
}
@keyframes shimmer {
  from { background-position: 200% center; }
  to   { background-position: -200% center; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1 {
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
h3 {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.3;
}
p { line-height: 1.72; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.tag::before {
  content: '';
  display: block;
  width: 18px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.lead {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--slate);
  line-height: 1.75;
  max-width: 62ch;
}

/* ── LAYOUT ──────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}
.section { padding: clamp(72px, 9vw, 120px) 0; }

/* ── LOGO ────────────────────────────────────────────────── */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  /* Bumped from 40px — more presence in header */
  height: 52px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), background var(--t), border-color var(--t);
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.11);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.32s var(--ease);
}
.btn:hover::after { transform: scaleX(1); }
.btn:active       { transform: scale(0.97); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(0,92,231,0.22);
}
.btn-primary:hover {
  background: var(--blue-dk);
  box-shadow: 0 8px 28px rgba(0,92,231,0.38);
  transform: translateY(-2px);
}

.btn-outline-white {
  border: 1.5px solid rgba(255,255,255,0.3);
  color: var(--white);
}
.btn-outline-white:hover {
  border-color: rgba(255,255,255,0.72);
  transform: translateY(-2px);
}
.btn-outline-white::after { background: rgba(255,255,255,0.07); }

.btn-white {
  background: var(--white);
  color: var(--blue);
  font-weight: 700;
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.14);
}
.btn-white::after { background: rgba(0,0,0,0.04); }

.btn-ghost {
  padding: 0;
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  gap: 6px;
  overflow: visible;
}
.btn-ghost::after { display: none; }
.btn-ghost .arrow {
  display: inline-block;
  transition: transform var(--t);
}
.btn-ghost:hover .arrow { transform: translateX(6px); }

/* ── LANG TOGGLE ─────────────────────────────────────────── */
.lang-toggle {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  padding: 5px 10px;
  border-radius: 4px;
  transition: all var(--t);
}
.lang-btn.active  { background: var(--blue); color: var(--white); }
.lang-btn:hover:not(.active) { color: rgba(255,255,255,0.75); }

/* ── HEADER ──────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: var(--z-header);
  transition: background var(--t-md), box-shadow var(--t-md), backdrop-filter var(--t-md);
}
.header.scrolled {
  background: rgba(6, 14, 30, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.07), 0 4px 40px rgba(0,0,0,0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
  gap: 20px;
}

/* Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}
.header-nav a {
  position: relative;
  padding: 7px 15px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.62);
  border-radius: 6px;
  transition: color var(--t), background var(--t);
}
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 15px; right: 15px;
  height: 1.5px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
  border-radius: 2px;
}
.header-nav a:hover { color: var(--white); }
.header-nav a:hover::after { transform: scaleX(1); }
.header-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}
.header-nav a.active::after { transform: scaleX(1); background: var(--blue); }

/* Header right */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

/* Mobile hamburger */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  border: none;
  background: none;
  margin-left: auto;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255,255,255,0.82);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t), width var(--t);
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; width: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(6, 14, 30, 0.98);
  z-index: var(--z-mobile-menu);
  display: flex;
  flex-direction: column;
  padding: clamp(80px, 12vw, 100px) clamp(28px, 6vw, 60px) 48px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}
.mobile-nav a {
  font-size: clamp(32px, 8vw, 52px);
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  letter-spacing: -0.025em;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  opacity: 0;
  transform: translateY(14px);
  transition: color var(--t), opacity 0.38s var(--ease), transform 0.38s var(--ease);
}
.mobile-menu.open .mobile-nav a {
  opacity: 1;
  transform: none;
}
.mobile-menu.open .mobile-nav a:nth-child(1) { transition-delay: 0.06s; }
.mobile-menu.open .mobile-nav a:nth-child(2) { transition-delay: 0.11s; }
.mobile-menu.open .mobile-nav a:nth-child(3) { transition-delay: 0.16s; }
.mobile-menu.open .mobile-nav a:nth-child(4) { transition-delay: 0.21s; }
.mobile-nav a:hover { color: var(--white); }

.mobile-menu-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  background: var(--navy);
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -10%; right: -8%;
  width: 60%; height: 120%;
  background: radial-gradient(ellipse at 70% 30%,
    rgba(0,92,231,0.22) 0%,
    rgba(0,92,231,0.06) 40%,
    transparent 70%);
  pointer-events: none;
  animation: heroGlow 10s ease-in-out infinite alternate;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,0.06);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(48px, 7vw, 100px) 0 clamp(56px, 8vw, 110px);
}

/* Hero entrance animations */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  padding: 7px 16px 7px 10px;
  background: rgba(0,92,231,0.14);
  border: 1px solid rgba(0,92,231,0.3);
  border-radius: 100px;
  animation: fadeUp 0.65s var(--ease) 0.05s both;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 2.5s ease-in-out 1s infinite;
}
.hero-eyebrow span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  max-width: 820px;
  animation: fadeUp 0.72s var(--ease) 0.18s both;
}
.hero h1 .accent { color: var(--blue); }

.hero .lead {
  /* Bumped from 0.55 — was borderline hard to read */
  color: rgba(255,255,255,0.65);
  margin-bottom: 42px;
  font-size: 16px;
  max-width: 52ch;
  animation: fadeUp 0.72s var(--ease) 0.34s both;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp 0.72s var(--ease) 0.48s both;
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: clamp(20px, 5vw, 80px);
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.26);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: fadeIn 1.2s var(--ease) 0.9s both;
}
.hero-scroll-line {
  width: 28px; height: 1px;
  background: rgba(255,255,255,0.18);
}

/* ── PAGE HERO (sub-pages) ───────────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: calc(var(--header-h) + 64px) 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background: radial-gradient(ellipse at 80% 40%, rgba(0,92,231,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,0.06);
}

.page-hero .tag { margin-bottom: 16px; }
.page-hero h1 {
  color: var(--white);
  font-size: clamp(30px, 4vw, 52px);
  margin-bottom: 14px;
}
.page-hero .lead { color: rgba(255,255,255,0.58); }

/* ── SCROLL REVEALS ──────────────────────────────────────── */
.fade-up {
  /* Start visible at a reduced state — avoids blank sections on headless/slow connections */
  opacity: 0;
  transform: translateY(28px);
  filter: blur(3px);
  transition:
    opacity  0.65s var(--ease),
    transform 0.65s var(--ease),
    filter   0.55s var(--ease);
}
.fade-up.in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* Stagger via CSS custom property */
.stagger .fade-up:nth-child(1) { transition-delay: 0.00s; }
.stagger .fade-up:nth-child(2) { transition-delay: 0.09s; }
.stagger .fade-up:nth-child(3) { transition-delay: 0.18s; }
.stagger .fade-up:nth-child(4) { transition-delay: 0.27s; }
.stagger .fade-up:nth-child(5) { transition-delay: 0.36s; }
.stagger .fade-up:nth-child(6) { transition-delay: 0.45s; }

/* ── SERVICES SECTION ────────────────────────────────────── */
.section-header { margin-bottom: 56px; }
.section-footer { margin-top: 48px; text-align: center; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  border-radius: 10px;
  overflow: hidden;
}

.svc-card {
  padding: 48px 44px;
  position: relative;
  transition: opacity var(--t);
}
.svc-card:hover { opacity: 0.93; }
.svc-card.dark  { background: var(--onyx); }
.svc-card.light { background: var(--fog);  }

.svc-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 28px;
  display: block;
}

.svc-card h3 { margin-bottom: 14px; font-size: 22px; }
.svc-card.dark  h3 { color: var(--white); }
.svc-card.light h3 { color: var(--onyx);  }

.svc-card > p {
  /* Bumped from 13px + 0.46 opacity — was too dim to read comfortably */
  font-size: 14px;
  line-height: 1.68;
  margin-bottom: 24px;
}
.svc-card.dark > p  { color: rgba(255,255,255,0.58); }
.svc-card.light > p { color: var(--slate); }

.svc-bullets { display: flex; flex-direction: column; gap: 8px; }
.svc-bullets li {
  /* Bumped from 12px */
  font-size: 13px;
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.svc-bullets li::before { content: '—'; color: var(--gold); flex-shrink: 0; }
.svc-card.dark  .svc-bullets li { color: rgba(255,255,255,0.7); }
.svc-card.light .svc-bullets li { color: var(--slate); }

/* ── PORTFOLIO CARDS ─────────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.p-card {
  display: block;
  cursor: pointer;
  transition: transform var(--t-lg);
}
.p-card:hover { transform: translateY(-7px); }

.p-card-thumb {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  border-radius: 9px;
  transition: box-shadow var(--t-lg);
}
.p-card:hover .p-card-thumb {
  box-shadow: 0 22px 52px rgba(0,0,0,0.18);
}
.p-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.p-card:hover .p-card-thumb img { transform: scale(1.06); }

.p-card-badge {
  position: absolute;
  top: 12px; right: 12px;
  padding: 4px 10px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
}

.p-card-info { padding: 18px 2px 0; }
.p-card-cat {
  /* Bumped from 10px */
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.p-card-info h3 {
  font-size: 17px; font-weight: 700;
  color: var(--onyx); margin-bottom: 4px;
}
.p-card-client { font-size: 12px; color: var(--silver); }

/* Placeholder thumb gradients */
.ph-kv      { background: linear-gradient(135deg, #0A2D6E 0%, #005CE7 100%); }
.ph-dvc     { background: linear-gradient(135deg, #083428 0%, #0B6B52 100%); }
.ph-film    { background: linear-gradient(135deg, #2A1200 0%, #6B3010 100%); }
.ph-default { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); }

.ph-label {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  justify-content: center;
  flex-direction: column; gap: 6px;
}
.ph-icon { font-size: 24px; opacity: 0.22; }
.ph-text {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.24);
  text-transform: uppercase;
}

/* ── COMPARISON TABLE ────────────────────────────────────── */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  overflow: hidden;
  font-size: 13px;
}
.comparison-table thead { background: var(--onyx); }
.comparison-table thead th {
  padding: 18px 24px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
}
.comparison-table thead th.col-yantra { color: var(--gold); }
.comparison-table thead th.col-label  { color: transparent; }

.comparison-table tbody tr { border-bottom: 1px solid rgba(0,0,0,0.05); }
.comparison-table tbody tr:nth-child(odd)  { background: var(--white); }
.comparison-table tbody tr:nth-child(even) { background: var(--fog); }

.comparison-table tbody td {
  padding: 18px 24px;
  color: var(--slate);
  vertical-align: middle;
}
.comparison-table tbody td:first-child {
  font-weight: 600;
  color: var(--onyx);
}
.comparison-table tbody td.col-traditional {
  color: rgba(74,74,74,0.52);
}
.comparison-table tbody td.col-yantra {
  /* Removed side-stripe border — using bg tint + font weight instead */
  font-weight: 600;
  color: var(--blue);
  background: rgba(0,92,231,0.04);
}

/* ── INDUSTRIES ──────────────────────────────────────────── */
.bg-navy { background: var(--navy); }

.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 52px;
  border-radius: 10px;
  overflow: hidden;
}

.ind-card { padding: 48px 40px; }

/* Card 01 — solid blue, clearly distinct */
.ind-card:nth-child(1) {
  background: var(--blue);
}

/* Card 02 — was rgba(255,255,255,0.05) = nearly invisible on navy.
   Fixed: use a proper surface that reads as a distinct card */
.ind-card:nth-child(2) {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  /* Fix needs to override border-radius from parent overflow:hidden */
  position: relative;
}

/* Card 03 — gold tint, slightly more saturated */
.ind-card:nth-child(3) {
  background: rgba(202,141,7,0.12);
}

.ind-num {
  font-size: 52px;
  font-weight: 800;
  /* Bumped from 0.07 — was essentially invisible */
  color: rgba(255,255,255,0.1);
  line-height: 1;
  margin-bottom: 4px;
}

.ind-focus {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ind-card h3 {
  color: var(--white);
  font-size: 20px;
  margin-bottom: 20px;
}

.ind-rule {
  width: 28px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 20px;
}

.ind-card ul li {
  font-size: 13px;
  /* Bumped from 0.52 — was unreadable, especially on card 02 */
  color: rgba(255,255,255,0.72);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  gap: 9px;
}
.ind-card ul li::before {
  content: '—';
  color: var(--gold);
  flex-shrink: 0;
}
.ind-card ul li:last-child { border-bottom: none; }

/* ── CTA SECTION ─────────────────────────────────────────── */
.cta-section {
  background: var(--blue);
  padding: clamp(72px, 9vw, 110px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; top: -50%; left: -10%;
  width: 120%; height: 200%;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.09) 0%, transparent 60%);
  pointer-events: none;
}
.cta-section h2 { color: var(--white); margin-bottom: 14px; }
.cta-section p {
  color: rgba(255,255,255,0.68);
  font-size: 16px;
  margin-bottom: 40px;
  max-width: 44ch;
  margin-left: auto;
  margin-right: auto;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--onyx);
  padding: 72px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 28px;
}

/* Footer logo — bumped from 36px */
.footer .logo-img { height: 44px; }

.footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  line-height: 1.68;
  max-width: 210px;
  margin-top: 18px;
}

.footer-col h4 {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.44);
  transition: color var(--t);
}
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-bottom p {
  font-size: 11px;
  color: rgba(255,255,255,0.22);
}
.footer-bottom a {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  transition: color var(--t);
}
.footer-bottom a:hover { color: rgba(255,255,255,0.65); }

/* ── PAGE CONTENT ────────────────────────────────────────── */
.page-main {
  padding: clamp(56px, 7vw, 96px) 0;
}

/* ── WORK PAGE ───────────────────────────────────────────── */
.work-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--slate);
  background: var(--fog);
  transition: all var(--t);
  border: 1.5px solid transparent;
}
.filter-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: transparent;
}
.filter-btn:hover:not(.active) { background: #e8e8ea; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* ── PROJECT DETAIL ──────────────────────────────────────── */
.proj-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 36px;
  transition: gap var(--t);
}
.proj-back:hover { gap: 13px; }

.proj-hero {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 44px;
  position: relative;
}
.proj-hero img { width: 100%; height: 100%; object-fit: cover; }
.proj-hero-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.32);
  letter-spacing: 0.06em;
}

.proj-meta {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 44px;
}
.proj-meta-item label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 5px;
}
.proj-meta-item span { font-size: 13px; font-weight: 500; color: var(--onyx); }

.proj-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  margin-bottom: 56px;
}
.proj-body-col h4 {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.proj-body-col p { font-size: 14px; color: var(--slate); line-height: 1.78; }

.proj-outputs h4 {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.outputs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.output-item img, .output-item video {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
  background: var(--fog);
  display: block;
}
.output-caption {
  font-size: 11px;
  color: var(--silver);
  margin-top: 8px;
  padding: 0 2px;
}

/* ── VIDEO LIGHTBOX ──────────────────────────────────────── */
.video-thumb-wrap {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 6px;
}
.video-thumb-wrap img,
.video-thumb-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: var(--fog);
  transition: transform 0.35s ease;
}
.video-thumb-wrap:hover img,
.video-thumb-wrap:hover .video-thumb-placeholder {
  transform: scale(1.03);
}
.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.32);
  transition: background 0.2s ease;
}
.video-thumb-wrap:hover .video-play-btn { background: rgba(0, 0, 0, 0.18); }
.video-play-btn svg {
  width: 56px;
  height: 56px;
  color: #fff;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.55));
  transition: transform 0.2s ease;
}
.video-thumb-wrap:hover .video-play-btn svg { transform: scale(1.12); }

#video-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.93);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#video-lightbox.open { display: flex; }
.video-lightbox-inner {
  position: relative;
  width: 100%;
  max-width: 1200px;
}
.video-lightbox-inner video {
  width: 100%;
  max-height: 85vh;
  display: block;
  border-radius: 8px;
  outline: none;
  background: #000;
}
.video-lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s;
  padding: 6px;
}
.video-lightbox-close:hover { opacity: 1; }
.lightbox-img {
  width: 100%;
  max-height: 90vh;
  object-fit: contain;
  display: none;
  border-radius: 6px;
  background: #000;
}

/* ── IMAGE THUMB ─────────────────────────────────────────── */
.img-thumb-wrap {
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 6px;
}
.img-thumb-wrap img {
  transition: transform 0.35s ease;
}
.img-thumb-wrap:hover img { transform: scale(1.03); }
.img-expand-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.img-thumb-wrap:hover .img-expand-btn {
  background: rgba(0, 0, 0, 0.22);
  opacity: 1;
}
.img-expand-btn svg {
  width: 32px;
  height: 32px;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

/* ── SERVICES DETAIL ─────────────────────────────────────── */
.svc-list { display: flex; flex-direction: column; }
.svc-item {
  display: block;
  padding: 52px 0;
  border-bottom: 1px solid var(--rule);
  max-width: 640px;
}
.svc-item:first-child { padding-top: 0; }
.svc-item:last-child  { border-bottom: none; }

.svc-item-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.svc-item h3 { margin-bottom: 12px; }
.svc-item > p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.75;
  margin-bottom: 22px;
}
.svc-item-sublabel {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
  margin-top: 28px;
  margin-bottom: 10px;
}
.svc-item-bullets { display: flex; flex-direction: column; gap: 9px; }
.svc-item-bullets li {
  font-size: 13px;
  color: var(--slate);
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.svc-item-bullets li::before { content: '→'; color: var(--blue); flex-shrink: 0; }

.svc-item-visual {
  border-radius: 8px;
  background: var(--fog);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--silver);
  font-size: 13px;
}

/* ── ABOUT ───────────────────────────────────────────────── */
.about-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 72px;
  align-items: start;
}
.about-story p {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.82;
  margin-bottom: 20px;
}
.about-story p:last-child { margin-bottom: 0; }

.beliefs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.belief {
  /* Removed left-stripe border — replaced with full border */
  padding: 24px;
  background: var(--fog);
  border-radius: 8px;
  border: 1.5px solid rgba(0,92,231,0.14);
}
.belief-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.belief p { font-size: 13px; color: var(--slate); line-height: 1.68; }

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #ddd;
  border-radius: 7px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--onyx);
  background: var(--white);
  transition: border-color var(--t), box-shadow var(--t);
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,92,231,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.contact-info h3 { margin-bottom: 10px; }
.contact-info > p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.72;
  margin-bottom: 28px;
}
.contact-detail { display: flex; flex-direction: column; gap: 16px; }
.contact-detail-item label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.contact-detail-item a,
.contact-detail-item span {
  font-size: 13px;
  color: var(--slate);
}
.contact-detail-item a:hover { color: var(--blue); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .about-body { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .header-nav,
  .header-right { display: none; }
  .mobile-menu-btn { display: flex; }

  /* Logo slightly smaller on mobile but still legible */
  .logo-img { height: 44px; }
  .footer .logo-img { height: 38px; }

  .hero h1 { font-size: clamp(30px, 8vw, 44px); }
  .hero-ctas { flex-direction: column; gap: 12px; }
  .hero-ctas .btn { width: fit-content; }

  .services-grid  { grid-template-columns: 1fr; }
  .svc-card       { padding: 34px 28px; }

  .portfolio-grid  { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr; }

  /* On mobile, card 02 border radius needs manual fix since overflow:hidden
     doesn't round inner items at single column */
  .ind-card:nth-child(2) {
    border: none;
    background: rgba(255,255,255,0.08);
  }

  .comparison-table { font-size: 12px; }
  .comparison-table thead th,
  .comparison-table tbody td { padding: 12px 14px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .proj-body { grid-template-columns: 1fr; gap: 24px; }
  .svc-item  { grid-template-columns: 1fr; gap: 28px; }
  .svc-item-visual { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .beliefs-grid { grid-template-columns: 1fr; }
  .work-grid    { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}
