/* ================================================================
   CHIPLAB.NET — Complete Stylesheet
   Modern ASIC Design Lab Website
   ================================================================ */

/* 1. CUSTOM PROPERTIES
   ---------------------------------------------------------------- */
:root {
  /* Core Colors */
  --c-bg:         #050C18;
  --c-bg-alt:     #081422;
  --c-surface:    #0D1E34;
  --c-surface-2:  #122845;
  --c-border:     #1B3355;
  --c-border-l:   #274D7A;

  /* Accent Colors */
  --c-blue:       #0571D8;
  --c-blue-h:     #0463BE;
  --c-blue-l:     #3D96FF;
  --c-blue-glow:  rgba(5, 113, 216, 0.25);
  --c-teal:       #00C9A7;
  --c-teal-l:     #33D6BC;

  /* Text */
  --c-text:       #ECF0F7;
  --c-text-m:     #8695AA;
  --c-text-s:     #536278;

  /* Status */
  --c-error:      #F04438;
  --c-success:    #12B76A;

  /* Typography */
  --font:         'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* Type Scale */
  --t-xs:   0.75rem;
  --t-sm:   0.875rem;
  --t-base: 1rem;
  --t-lg:   1.125rem;
  --t-xl:   1.25rem;
  --t-2xl:  1.5rem;
  --t-3xl:  1.875rem;
  --t-4xl:  2.25rem;
  --t-5xl:  3rem;
  --t-6xl:  3.75rem;
  --t-7xl:  4.5rem;

  /* Spacing */
  --s-1:  0.25rem;
  --s-2:  0.5rem;
  --s-3:  0.75rem;
  --s-4:  1rem;
  --s-5:  1.25rem;
  --s-6:  1.5rem;
  --s-8:  2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-20: 5rem;
  --s-24: 6rem;
  --s-32: 8rem;

  /* Layout */
  --container:        1200px;
  --container-narrow: 800px;
  --nav-h:            72px;

  /* Shape */
  --r-sm:  4px;
  --r:     8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-full:9999px;

  /* Shadow */
  --sh-sm:   0 1px 3px rgba(0,0,0,0.3);
  --sh:      0 4px 12px rgba(0,0,0,0.4);
  --sh-lg:   0 16px 40px rgba(0,0,0,0.5);
  --sh-glow: 0 0 24px rgba(5, 113, 216, 0.35);

  /* Transition */
  --tr:   0.2s ease;
  --tr-s: 0.4s ease;
}

/* 2. RESET & BASE
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--c-text);
  background-color: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

button, input, select, textarea {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}
button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--c-blue);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* 3. TYPOGRAPHY
   ---------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--c-text);
}

h1 { font-size: clamp(var(--t-4xl), 5vw, var(--t-7xl)); }
h2 { font-size: clamp(var(--t-3xl), 3vw, var(--t-5xl)); }
h3 { font-size: var(--t-2xl); }
h4 { font-size: var(--t-xl); }
h5 { font-size: var(--t-lg); }

p { line-height: 1.7; color: var(--c-text-m); }

.lead {
  font-size: var(--t-lg);
  color: var(--c-text-m);
  max-width: 640px;
  line-height: 1.75;
}

.overline {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-blue-l);
}

.text-gradient {
  background: linear-gradient(135deg, var(--c-blue-l) 0%, var(--c-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 4. LAYOUT
   ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-6);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section           { padding-block: var(--s-24); }
.section--sm       { padding-block: var(--s-16); }
.section--lg       { padding-block: var(--s-32); }

.section__header           { text-align: center; margin-bottom: var(--s-16); }
.section__header .overline { margin-bottom: var(--s-4); display: block; }
.section__header h2        { margin-bottom: var(--s-5); }
.section__header p         { max-width: 600px; margin-inline: auto; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-8); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* 5. BACKGROUND TREATMENTS
   ---------------------------------------------------------------- */
.bg-grid {
  background-color: var(--c-bg);
  background-image:
    linear-gradient(rgba(5, 113, 216, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 113, 216, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.bg-alt     { background-color: var(--c-bg-alt); }
.bg-surface { background-color: var(--c-surface); }

/* 6. NAVIGATION
   ---------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background var(--tr-s), box-shadow var(--tr-s);
}

.site-header.scrolled {
  background: rgba(5, 12, 24, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--c-border);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--s-8);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-shrink: 0;
  text-decoration: none;
}

.nav__logo-icon-img { width: 36px; height: 36px; flex-shrink: 0; display: block; }

.nav__logo-text {
  font-size: var(--t-xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--c-text);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  margin-left: auto;
}

.nav__link {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--c-text-m);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  transition: color var(--tr), background var(--tr);
}
.nav__link:hover, .nav__link.active {
  color: var(--c-text);
  background: rgba(255,255,255,0.06);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-shrink: 0;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--s-2);
  border-radius: var(--r-sm);
}
.nav__hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform var(--tr), opacity var(--tr);
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(5, 12, 24, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border);
  padding: var(--s-6);
  z-index: 99;
}
.mobile-nav.open { display: block; }

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
}
.mobile-nav__links a {
  font-size: var(--t-lg);
  font-weight: 500;
  color: var(--c-text-m);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r);
  transition: color var(--tr), background var(--tr);
}
.mobile-nav__links a:hover { color: var(--c-text); background: rgba(255,255,255,0.06); }

/* 7. BUTTONS
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-6);
  border-radius: var(--r);
  font-size: var(--t-sm);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--tr);
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn--primary { background: var(--c-blue); color: white; border-color: var(--c-blue); }
.btn--primary:hover { background: var(--c-blue-h); box-shadow: var(--sh-glow); transform: translateY(-1px); }

.btn--secondary { background: transparent; color: var(--c-text); border-color: var(--c-border-l); }
.btn--secondary:hover { background: rgba(255,255,255,0.06); border-color: var(--c-text-m); }

.btn--teal { background: var(--c-teal); color: #050C18; border-color: var(--c-teal); }
.btn--teal:hover { background: var(--c-teal-l); transform: translateY(-1px); }

.btn--ghost { background: transparent; color: var(--c-blue-l); padding-inline: 0; border: none; }
.btn--ghost:hover { color: var(--c-text); }

.btn--lg { padding: var(--s-4) var(--s-8); font-size: var(--t-base); border-radius: var(--r-md); }
.btn--sm { padding: var(--s-2) var(--s-4); font-size: var(--t-xs); border-radius: var(--r-sm); }

.btn-group { display: flex; gap: var(--s-4); flex-wrap: wrap; }

.btn__arrow { font-size: 1.1em; transition: transform var(--tr); display: inline-block; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* 8. BADGES & TAGS
   ---------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-full);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.badge--blue    { background: rgba(5,113,216,0.15); color: var(--c-blue-l);    border: 1px solid rgba(5,113,216,0.3); }
.badge--teal    { background: rgba(0,201,167,0.12); color: var(--c-teal);      border: 1px solid rgba(0,201,167,0.25); }
.badge--neutral { background: rgba(255,255,255,0.06); color: var(--c-text-m); border: 1px solid var(--c-border); }

/* 9. HERO — HOMEPAGE
   ---------------------------------------------------------------- */
.page-hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
  background-color: var(--c-bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
#circuit-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
canvas.inner-circuit-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(5,113,216,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5,113,216,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-bg-glow-1 {
  position: absolute;
  width: 800px; height: 800px;
  left: -200px; top: -200px;
  background: radial-gradient(circle, rgba(5,113,216,0.14) 0%, transparent 65%);
  border-radius: 50%;
}
.hero-bg-glow-2 {
  position: absolute;
  width: 600px; height: 600px;
  right: -100px; bottom: -100px;
  background: radial-gradient(circle, rgba(0,201,167,0.1) 0%, transparent 65%);
  border-radius: 50%;
}

.page-hero__content { position: relative; z-index: 1; }

.hero-overline {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}
.hero-overline::before {
  content: '';
  display: block;
  width: 32px; height: 2px;
  background: var(--c-blue-l);
  border-radius: 2px;
}

.hero__headline { margin-bottom: var(--s-6); }
.hero__headline em { font-style: normal; }

.hero__desc {
  font-size: var(--t-lg);
  color: var(--c-text-m);
  max-width: 560px;
  margin-bottom: var(--s-10);
  line-height: 1.75;
}

/* 10. INNER PAGE HERO (shorter)
   ---------------------------------------------------------------- */
.inner-hero {
  padding: calc(var(--nav-h) + var(--s-20)) 0 var(--s-16);
  background-color: var(--c-bg);
  position: relative;
  overflow: hidden;
}
.inner-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(5,113,216,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5,113,216,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.inner-hero::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  left: -150px; bottom: -150px;
  background: radial-gradient(circle, rgba(5,113,216,0.1) 0%, transparent 65%);
  border-radius: 50%;
}

.inner-hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.inner-hero__content .overline { margin-bottom: var(--s-4); display: block; }
.inner-hero__content h1        { margin-bottom: var(--s-5); }
.inner-hero__content p         { font-size: var(--t-lg); color: var(--c-text-m); max-width: 600px; }

/* 11. AUDIENCE SPLIT (Home)
   ---------------------------------------------------------------- */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
}

.audience-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--s-12);
  transition: border-color var(--tr), box-shadow var(--tr);
  position: relative;
  overflow: hidden;
}
.audience-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.audience-card--companies::before { background: var(--c-blue); }
.audience-card--talent::before    { background: var(--c-teal); }
.audience-card:hover { border-color: var(--c-border-l); box-shadow: var(--sh-lg); }

.audience-card__icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: var(--s-6);
}
.audience-card--companies .audience-card__icon { background: rgba(5,113,216,0.12); }
.audience-card--talent    .audience-card__icon { background: rgba(0,201,167,0.10); }

.audience-card h3 { font-size: var(--t-2xl); margin-bottom: var(--s-4); }
.audience-card > p { color: var(--c-text-m); margin-bottom: var(--s-6); line-height: 1.7; }

.audience-card__features { display: flex; flex-direction: column; gap: var(--s-3); margin-bottom: var(--s-8); }

.audience-card__feature {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--t-sm);
  color: var(--c-text-m);
}
.audience-card__feature::before {
  content: '✓';
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.audience-card--companies .audience-card__feature::before { background: rgba(5,113,216,0.2);  color: var(--c-blue-l); }
.audience-card--talent    .audience-card__feature::before { background: rgba(0,201,167,0.15); color: var(--c-teal); }

/* 12. STATS STRIP
   ---------------------------------------------------------------- */
.stats-section {
  padding-block: var(--s-16);
  background: var(--c-surface);
  border-block: 1px solid var(--c-border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-8);
  text-align: center;
}
.stat-item__number {
  font-size: var(--t-5xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--c-blue-l) 0%, var(--c-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--s-2);
}
.stat-item__label { font-size: var(--t-sm); color: var(--c-text-m); font-weight: 500; }

/* 13. SERVICE / CAPABILITY CARDS
   ---------------------------------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}

.service-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  transition: all var(--tr);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--c-blue) 0%, var(--c-teal) 100%);
  transform: scaleX(0);
  transition: transform var(--tr);
}
.service-card:hover { border-color: var(--c-border-l); transform: translateY(-4px); box-shadow: var(--sh-lg); }
.service-card:hover::after { transform: scaleX(1); }

.service-card__icon {
  width: 52px; height: 52px;
  background: rgba(5,113,216,0.12);
  border: 1px solid rgba(5,113,216,0.2);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: var(--s-6);
}
.service-card--teal .service-card__icon { background: rgba(0,201,167,0.12); border-color: rgba(0,201,167,0.2); }

.service-card h3 { font-size: var(--t-xl); margin-bottom: var(--s-3); }
.service-card p  { font-size: var(--t-sm); color: var(--c-text-m); line-height: 1.7; margin-bottom: var(--s-5); }

.service-card__tags { display: flex; gap: var(--s-2); flex-wrap: wrap; }

/* 14. TEAM CARDS
   ---------------------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-8);
}

.team-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--tr);
}
.team-card:hover { border-color: var(--c-border-l); transform: translateY(-4px); box-shadow: var(--sh-lg); }

.team-card__photo {
  aspect-ratio: 4 / 3;
  background: var(--c-surface-2);
  position: relative;
  overflow: hidden;
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__photo-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--c-surface-2) 0%, #0D2D50 100%);
}
.team-card__initials {
  font-size: var(--t-4xl);
  font-weight: 800;
  color: var(--c-blue-l);
  opacity: 0.6;
  letter-spacing: -2px;
}

.team-card__body { padding: var(--s-6); }
.team-card__name  { font-size: var(--t-lg); font-weight: 700; margin-bottom: var(--s-1); }
.team-card__title { font-size: var(--t-sm); color: var(--c-teal); font-weight: 500; margin-bottom: var(--s-4); }
.team-card__bio   { font-size: var(--t-sm); color: var(--c-text-m); line-height: 1.65; margin-bottom: var(--s-4); }

.team-card__footer { display: flex; align-items: center; justify-content: space-between; }

.team-card__links { display: flex; gap: var(--s-3); }
.team-card__link  { font-size: var(--t-xs); color: var(--c-text-s); transition: color var(--tr); padding: var(--s-1) var(--s-2); border-radius: var(--r-sm); border: 1px solid var(--c-border); }
.team-card__link:hover { color: var(--c-blue-l); border-color: var(--c-blue); }

.team-card__tags { display: flex; gap: var(--s-2); flex-wrap: wrap; }

/* 15. NEWS / BLOG CARDS
   ---------------------------------------------------------------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-8);
}

.news-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--tr);
}
.news-card--featured {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.news-card:hover  { border-color: var(--c-border-l); transform: translateY(-3px); box-shadow: var(--sh-lg); }

.news-card__img  { aspect-ratio: 16 / 9; background: var(--c-surface-2); position: relative; overflow: hidden; }
.news-card--featured .news-card__img { aspect-ratio: unset; }
.news-card__img-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--c-surface-2) 0%, #081D36 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
}

.news-card__body { padding: var(--s-6); }
.news-card--featured .news-card__body { padding: var(--s-10); display: flex; flex-direction: column; justify-content: center; }

.news-card__meta { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); }
.news-card__date { font-size: var(--t-xs); color: var(--c-text-s); }

.news-card h3 { font-size: var(--t-lg); font-weight: 700; margin-bottom: var(--s-3); line-height: 1.3; }
.news-card--featured h3 { font-size: var(--t-3xl); }
.news-card p  { font-size: var(--t-sm); color: var(--c-text-m); line-height: 1.65; margin-bottom: var(--s-5); }

.news-card__read { font-size: var(--t-sm); color: var(--c-blue-l); font-weight: 500; transition: color var(--tr); }
.news-card__read:hover { color: var(--c-text); }

/* 16. RESOURCE CARDS
   ---------------------------------------------------------------- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
}

.resource-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: flex;
  gap: var(--s-5);
  transition: all var(--tr);
}
.resource-card:hover { border-color: var(--c-border-l); box-shadow: var(--sh); transform: translateY(-2px); }
.resource-card--teal { border-top: 3px solid var(--c-teal); }

.resource-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--r);
  background: rgba(5,113,216,0.12);
  border: 1px solid rgba(5,113,216,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.resource-card--teal .resource-card__icon { background: rgba(0,201,167,0.10); border-color: rgba(0,201,167,0.2); }

.resource-card__body { flex: 1; min-width: 0; }
.resource-card h3 { font-size: var(--t-base); font-weight: 600; margin-bottom: var(--s-1); }
.resource-card p  { font-size: var(--t-sm); color: var(--c-text-m); margin-bottom: var(--s-4); line-height: 1.55; }

.resource-card__footer { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.resource-card__type   { font-size: var(--t-xs); color: var(--c-text-s); text-transform: uppercase; letter-spacing: 0.06em; }

/* 17. GALLERY
   ---------------------------------------------------------------- */
.gallery-filters {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-10);
}
.gallery-filter-btn {
  padding: var(--s-2) var(--s-5);
  border-radius: var(--r-full);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--c-text-m);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  cursor: pointer;
  transition: all var(--tr);
}
.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  color: var(--c-text);
  background: var(--c-surface-2);
  border-color: var(--c-border-l);
}
.gallery-filter-btn.active { color: var(--c-blue-l); border-color: var(--c-blue); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}

.gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  transition: all var(--tr);
}
.gallery-item:hover { border-color: var(--c-border-l); box-shadow: var(--sh-lg); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--c-surface-2) 0%, #081D36 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
}

.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(5, 12, 24, 0.75);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity var(--tr);
  padding: var(--s-4);
}
.gallery-overlay__icon    { font-size: 28px; margin-bottom: var(--s-2); }
.gallery-overlay__caption { font-size: var(--t-sm); color: white; text-align: center; font-weight: 500; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 200;
  display: none;
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox__inner { max-width: 90vw; max-height: 80vh; position: relative; }
.lightbox__inner img { max-height: 80vh; border-radius: var(--r-md); }

.lightbox__close {
  position: fixed; top: var(--s-6); right: var(--s-6);
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: white;
  cursor: pointer; transition: background var(--tr);
}
.lightbox__close:hover { background: rgba(255,255,255,0.2); }
.lightbox__caption { margin-top: var(--s-4); font-size: var(--t-sm); color: rgba(255,255,255,0.7); text-align: center; }

/* 18. FORMS
   ---------------------------------------------------------------- */
.form-grid { display: grid; gap: var(--s-5); }

.form-group     { display: flex; flex-direction: column; gap: var(--s-2); }
.form-group-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }

label { font-size: var(--t-sm); font-weight: 500; color: var(--c-text); }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: var(--s-3) var(--s-4);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  color: var(--c-text);
  font-size: var(--t-sm);
  transition: border-color var(--tr), box-shadow var(--tr);
}
input::placeholder, textarea::placeholder { color: var(--c-text-s); }
input:focus, textarea:focus, select:focus {
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(5,113,216,0.15);
}
textarea { min-height: 140px; resize: vertical; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238695AA' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.checkbox-group { display: flex; align-items: flex-start; gap: var(--s-3); cursor: pointer; }
.checkbox-group input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--c-blue); cursor: pointer; }
.checkbox-group span { font-size: var(--t-sm); color: var(--c-text-m); line-height: 1.5; }

.form-success {
  display: none;
  background: rgba(18,183,106,0.1);
  border: 1px solid rgba(18,183,106,0.3);
  border-radius: var(--r);
  padding: var(--s-4) var(--s-5);
  color: var(--c-success);
  font-size: var(--t-sm);
  margin-top: var(--s-4);
}
.form-success.visible { display: block; }

/* Newsletter inline */
.newsletter-inline { display: flex; gap: var(--s-3); }
.newsletter-inline input { flex: 1; }

/* 19. CONTACT PAGE
   ---------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-16);
  align-items: start;
}

.contact-info h2 { font-size: var(--t-3xl); margin-bottom: var(--s-5); }
.contact-info > p { color: var(--c-text-m); margin-bottom: var(--s-10); }

.contact-methods { display: flex; flex-direction: column; gap: var(--s-6); margin-bottom: var(--s-10); }

.contact-method { display: flex; gap: var(--s-4); align-items: flex-start; }
.contact-method__icon {
  width: 44px; height: 44px;
  border-radius: var(--r);
  background: rgba(5,113,216,0.12);
  border: 1px solid rgba(5,113,216,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.contact-method h4   { font-size: var(--t-sm); font-weight: 600; margin-bottom: var(--s-1); }
.contact-method p,
.contact-method a    { font-size: var(--t-sm); color: var(--c-text-m); }
.contact-method a:hover { color: var(--c-blue-l); }

.contact-form-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--s-10);
}

/* 20. PROCESS STEPS
   ---------------------------------------------------------------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 31px;
  left: 15%; right: 15%;
  height: 2px;
  background: linear-gradient(90deg, var(--c-blue) 0%, var(--c-teal) 100%);
  z-index: 0;
}

.process-step { text-align: center; position: relative; z-index: 1; }
.process-step__num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--c-surface-2);
  border: 2px solid var(--c-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--t-xl);
  font-weight: 800;
  color: var(--c-blue-l);
  margin: 0 auto var(--s-4);
}
.process-step h4 { font-size: var(--t-base); margin-bottom: var(--s-2); }
.process-step p  { font-size: var(--t-sm); color: var(--c-text-m); }

/* 21. CTA SECTION
   ---------------------------------------------------------------- */
.cta-section {
  background: var(--c-surface);
  border-block: 1px solid var(--c-border);
  padding-block: var(--s-24);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5,113,216,0.08) 0%, transparent 65%);
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.cta-section__content { position: relative; z-index: 1; }
.cta-section h2  { margin-bottom: var(--s-5); }
.cta-section p   { max-width: 540px; margin: 0 auto var(--s-10); font-size: var(--t-lg); color: var(--c-text-m); }

/* 22. PARTNERS STRIP
   ---------------------------------------------------------------- */
.partners-section { padding-block: var(--s-12); border-block: 1px solid var(--c-border); }
.partners-label {
  text-align: center;
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-text-s);
  margin-bottom: var(--s-6);
}
.partners-strip {
  display: flex;
  align-items: center; justify-content: center;
  gap: var(--s-12); flex-wrap: wrap;
}
.partner-logo {
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--c-text-s);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--tr);
}
.partner-logo:hover { color: var(--c-text-m); }

/* 23. ABOUT PAGE
   ---------------------------------------------------------------- */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-16);
  align-items: center;
}
.about-story--reverse { direction: rtl; }
.about-story--reverse > * { direction: ltr; }

.about-story__visual {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 80px;
  position: relative;
  overflow: hidden;
}
.about-story__visual::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(5,113,216,0.1) 0%, rgba(0,201,167,0.07) 100%);
}

.about-story__text h2 { margin-bottom: var(--s-5); }
.about-story__text p  { margin-bottom: var(--s-4); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
}
.value-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}
.value-card__icon { font-size: 28px; margin-bottom: var(--s-4); }
.value-card h4 { font-size: var(--t-base); font-weight: 600; margin-bottom: var(--s-2); }
.value-card p  { font-size: var(--t-sm); color: var(--c-text-m); line-height: 1.65; }

/* About: 4-col values variant */
.values-grid--four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .values-grid--four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .values-grid--four { grid-template-columns: 1fr; } }

/* About: visual metric panel */
.about-metrics-grid {
  position: relative; z-index: 1;
  width: 100%; padding: var(--s-8);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
.about-metric {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--s-5) var(--s-4);
  text-align: center;
}
.about-metric__num   { display: block; font-size: 2rem; font-weight: 800; color: var(--c-teal); line-height: 1; margin-bottom: var(--s-2); }
.about-metric__label { display: block; font-size: var(--t-xs); color: var(--c-text-s); line-height: 1.3; }

/* About: teal check-list */
.check-list { list-style: none; padding: 0; margin-bottom: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); }
.check-list li { display: flex; align-items: flex-start; gap: var(--s-3); font-size: var(--t-sm); color: var(--c-text-m); line-height: 1.55; }
.check-list li::before { content: '✓'; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; min-width: 20px; background: rgba(0,201,167,0.12); border: 1px solid rgba(0,201,167,0.35); border-radius: 50%; color: var(--c-teal); font-size: 11px; font-weight: 700; margin-top: 1px; flex-shrink: 0; }

/* About: story why-panel */
.about-why-panel { position: relative; z-index: 1; width: 100%; padding: var(--s-6); box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; gap: var(--s-3); }
.about-why-item { display: flex; align-items: center; gap: var(--s-4); background: rgba(255,255,255,0.04); border: 1px solid var(--c-border); border-left: 3px solid var(--c-teal); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); font-size: var(--t-sm); color: var(--c-text-m); line-height: 1.4; }
.about-why-item__icon { font-size: 20px; flex-shrink: 0; line-height: 1; }

/* 24. CASE STUDY CARDS
   ---------------------------------------------------------------- */
.case-study-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-8);
}
.case-study-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--tr);
}
.case-study-card:hover { border-color: var(--c-border-l); box-shadow: var(--sh-lg); }

.case-study-card__header {
  padding: var(--s-8);
  background: linear-gradient(135deg, var(--c-surface-2) 0%, #0A1A30 100%);
  border-bottom: 1px solid var(--c-border);
}
.case-study-card__header h3 { margin-bottom: var(--s-2); }
.case-study-card__body { padding: var(--s-8); }

.case-study-item { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-5); }
.case-study-item__label { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-text-s); font-weight: 600; }
.case-study-item__value { font-size: var(--t-sm); color: var(--c-text-m); }

/* 25. NEWSLETTER SECTION
   ---------------------------------------------------------------- */
.newsletter-section {
  background: var(--c-surface);
  border-block: 1px solid var(--c-border);
  padding-block: var(--s-16);
  text-align: center;
}
.newsletter-section h2 { margin-bottom: var(--s-4); font-size: var(--t-3xl); }
.newsletter-section > p { margin-bottom: var(--s-8); }
.newsletter-section .newsletter-inline { max-width: 460px; margin-inline: auto; }

/* 26. SCROLL ANIMATIONS
   ---------------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(1) { transition-delay: 0.00s; }
.fade-up:nth-child(2) { transition-delay: 0.08s; }
.fade-up:nth-child(3) { transition-delay: 0.16s; }
.fade-up:nth-child(4) { transition-delay: 0.24s; }
.fade-up:nth-child(5) { transition-delay: 0.32s; }
.fade-up:nth-child(6) { transition-delay: 0.40s; }

/* 27. FOOTER
   ---------------------------------------------------------------- */
.site-footer {
  background: var(--c-bg-alt);
  border-top: 1px solid var(--c-border);
  padding-top: var(--s-16);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
  gap: var(--s-8);
  padding-bottom: var(--s-12);
  border-bottom: 1px solid var(--c-border);
}
.footer__brand .nav__logo { display: inline-flex; margin-bottom: var(--s-4); }
.footer__tagline          { font-size: var(--t-sm); color: var(--c-text-s); line-height: 1.6; max-width: 220px; }
.footer__col h3 {
  font-size: var(--t-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-text-s);
  margin-bottom: var(--s-5);
}
.footer__col ul   { display: flex; flex-direction: column; gap: var(--s-3); }
.footer__col a    { font-size: var(--t-sm); color: var(--c-text-m); transition: color var(--tr); }
.footer__col a:hover { color: var(--c-text); }

.footer__newsletter h3 { font-size: var(--t-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--c-text-s); margin-bottom: var(--s-4); }
.footer__newsletter p  { font-size: var(--t-sm); color: var(--c-text-m); margin-bottom: var(--s-4); }

.footer__bottom     { display: flex; align-items: center; justify-content: space-between; padding-block: var(--s-6); }
.footer__bottom p   { font-size: var(--t-xs); color: var(--c-text-s); }
.footer__legal      { display: flex; gap: var(--s-5); }
.footer__legal a    { font-size: var(--t-xs); color: var(--c-text-s); transition: color var(--tr); }
.footer__legal a:hover { color: var(--c-text-m); }

/* 28. RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: span 1; }
  .footer__newsletter { grid-column: span 3; }
}

@media (max-width: 900px) {
  .service-grid   { grid-template-columns: repeat(2, 1fr); }
  .team-grid      { grid-template-columns: repeat(2, 1fr); }
  .news-grid      { grid-template-columns: repeat(2, 1fr); }
  .news-card--featured { grid-column: span 2; grid-template-columns: 1fr; }
  .grid-3         { grid-template-columns: repeat(2, 1fr); }
  .grid-4         { grid-template-columns: repeat(2, 1fr); }
  .process-steps  { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .contact-layout { grid-template-columns: 1fr; }
  .about-story    { grid-template-columns: 1fr; }
  .audience-grid  { grid-template-columns: 1fr; }
  .case-study-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav__links          { display: none; }
  .nav__hamburger      { display: flex; }
  .nav__actions .btn   { display: none; }

  .section    { padding-block: var(--s-16); }
  .section--lg { padding-block: var(--s-20); }

  .service-grid  { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr; }
  .gallery-grid  { grid-template-columns: repeat(2, 1fr); }
  .grid-2        { grid-template-columns: 1fr; }
  .grid-3        { grid-template-columns: 1fr; }
  .grid-4        { grid-template-columns: 1fr; }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand        { grid-column: span 2; }
  .footer__newsletter   { grid-column: span 2; }
  .footer__bottom       { flex-direction: column; gap: var(--s-4); text-align: center; }

  .cta-section          { padding-block: var(--s-16); }
  .form-group-row       { grid-template-columns: 1fr; }
  .contact-form-card    { padding: var(--s-6); }
  .values-grid          { grid-template-columns: 1fr; }
  .newsletter-inline    { flex-direction: column; }
  .news-card--featured  { grid-template-columns: 1fr; }
  .news-grid            { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .team-grid     { grid-template-columns: 1fr; }
  .gallery-grid  { grid-template-columns: 1fr; }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .container     { padding-inline: var(--s-4); }
  .btn--lg       { padding: var(--s-3) var(--s-6); font-size: var(--t-sm); }
  .audience-card { padding: var(--s-8); }
  h1             { font-size: var(--t-4xl); }
  h2             { font-size: var(--t-3xl); }
}
