/* ============================================================
   INSENTIV MEDIA — Modern Design 2025
   Clean rebuild. No Mobirise framework dependency.
   ============================================================ */

/* === CSS VARIABLES === */
:root {
  --navy:        #0b1340;
  --navy-light:  #162055;
  --blue:        #3f9ae4;
  --blue-dark:   #2d7cc0;
  --white:       #ffffff;
  --light:       #f5f7fa;
  --border:      #e8ecf0;
  --text:        #1a1a2e;
  --text-muted:  #3a3f5c;
  --transition:  0.3s ease;
  --shadow:      0 4px 24px rgba(11,19,64,0.08);
  --shadow-lg:   0 12px 48px rgba(11,19,64,0.15);
  --radius:      8px;
  --radius-lg:   16px;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'M PLUS 1p', 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  padding-top: 72px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); text-decoration: underline; }
ul { list-style: none; }

/* === NAVIGATION === */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(11,19,64,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-nav.scrolled {
  background: rgba(11,19,64,0.99);
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand img { height: 42px; width: auto; }
.nav-brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0;
  margin: 0;
}
.nav-links li { list-style: none; }
.nav-links a {
  display: block;
  padding: 0.45rem 0.85rem;
  color: rgba(255,255,255,0.78);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}
.nav-links .nav-cta {
  background: transparent;
  color: rgba(255,255,255,0.75);
  font-weight: 400;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.lang-toggle {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.75);
  font-size: 0.78rem;
  font-family: inherit;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1.5;
}
.lang-toggle:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  line-height: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
  border-radius: 2px;
}
.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 */
.nav-mobile {
  display: none;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 0.75rem 0 1rem;
}
.nav-mobile.open { display: block; }
.nav-mobile ul { padding: 0; margin: 0; }
.nav-mobile li { list-style: none; }
.nav-mobile li a {
  display: block;
  padding: 0.7rem 1.5rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}
.nav-mobile li a:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.nav-mobile .lang-row {
  padding: 0.75rem 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 0.5rem;
}

/* === HERO SECTIONS === */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,19,64,0.45) 0%, rgba(11,19,64,0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0 4.5rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--blue);
  flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}
.hero h1 em {
  font-style: normal;
  color: var(--blue);
}
.hero .hero-sub {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.92);
  margin-bottom: 2.25rem;
  max-width: 580px;
  font-weight: 700;
}
.hero-actions {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
}

/* Page hero (compact) */
.page-hero {
  min-height: 56vh;
  padding: 5rem 0 4.5rem;
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); }
.page-hero .hero-italic {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.92);
  font-style: normal;
  margin-top: 0.75rem;
  font-weight: 700;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1.4;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
  text-decoration: none;
}
.btn-outline-blue {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline-blue:hover {
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
}
.btn-lg { padding: 0.9rem 2.25rem; font-size: 1rem; }
.btn-sm { padding: 0.45rem 1.1rem; font-size: 0.82rem; }

/* === LAYOUT === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 820px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }

/* === SECTION TYPOGRAPHY === */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.875rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue);
}
h2.section-heading {
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--navy);
  margin-bottom: 0.875rem;
  letter-spacing: -0.02em;
}
.section-sub {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.8;
  font-weight: 400;
  margin-bottom: 2.5rem;
}
.section-center { text-align: center; }
.section-center .section-sub { margin-left: auto; margin-right: auto; }
.text-center { text-align: center !important; }

/* Backgrounds */
.bg-light { background: var(--light); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h2.section-heading { color: var(--white); }
.bg-navy .section-label { color: rgba(255,255,255,0.5); }
.bg-navy .section-label::before { background: rgba(255,255,255,0.5); }
.bg-navy .section-sub { color: rgba(255,255,255,0.6); }

/* Divider */
.divider {
  width: 52px;
  height: 3px;
  background: var(--blue);
  border: none;
  margin: 1.1rem 0 2rem;
  display: block;
}
.divider.center { margin-left: auto; margin-right: auto; }

/* === TWO-COLUMN LAYOUT === */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.two-col-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.two-col-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === SERVICE FEATURE CARDS (homepage) === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.feature-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.feature-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-weight: 400;
}
.feature-card a {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.03em;
}

/* === PARALLAX BANNER SECTIONS === */
.parallax-section {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.parallax-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.parallax-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11,19,64,0.72);
}
.parallax-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
  max-width: 640px;
}
.parallax-content h2 {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: var(--white);
}
.parallax-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.25rem;
  font-style: italic;
}
.parallax-content p {
  font-size: 0.97rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.68);
  font-weight: 300;
}
.parallax-right { justify-content: flex-end; }
.parallax-right .parallax-content { text-align: right; }

/* === CASE STUDY CAROUSEL (homepage) === */
.carousel-section {
  background: var(--navy);
  padding: 5rem 0;
}
.case-slider-wrapper {
  position: relative;
  margin-top: 2.5rem;
}
.case-cards {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.case-cards::-webkit-scrollbar { display: none; }
.case-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  flex: 0 0 300px;
  scroll-snap-align: start;
}
.slider-btn {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  background: var(--blue);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: background var(--transition);
}
.slider-btn:hover { background: var(--navy-mid, #1a2a6e); }
.slider-btn-prev { left: -22px; }
.slider-btn-next { right: -22px; }
.case-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(63,154,228,0.5);
  transform: translateY(-4px);
}
.case-card-img {
  height: 200px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
}
.case-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.case-card:hover .case-card-img img { transform: scale(1.06); }
.case-card-body { padding: 1.25rem 1.25rem 1.5rem; }
.case-card-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.case-card-text {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 1rem;
}
.case-card-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.03em;
}

/* === ABOUT SECTION (homepage) === */
.about-home-text p {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.85;
  font-weight: 400;
  margin-bottom: 1.5rem;
}
.about-home-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* === STATS BAR === */
.stats-bar {
  background: var(--navy-light);
  padding: 3rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
  font-weight: 300;
  text-transform: uppercase;
}

/* === CLIENT LOGOS === */
.logos-section { padding: 4.5rem 0; background: var(--white); }
.logos-main-heading {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin-bottom: 3rem;
}
.logo-category {
  margin-bottom: 2.5rem;
}
.logo-category-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.logo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 2.5rem;
  align-items: center;
}
.logo-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}
.logo-item img {
  height: 64px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: all var(--transition);
}
.logo-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.12);
}
.logo-tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--white);
  font-size: 0.75rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius);
  width: 190px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 20;
  line-height: 1.4;
}
.logo-tip::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--navy);
}
.logo-item:hover .logo-tip { opacity: 1; }

/* === WORK PAGE GRID === */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.work-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.work-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.work-card-img {
  height: 240px;
  overflow: hidden;
  background: var(--light);
}
.work-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.work-card:hover .work-card-img img { transform: scale(1.06); }
.work-card-body { padding: 1.5rem; }
.work-card-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.5rem;
}
.work-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.55rem;
  line-height: 1.3;
}
.work-card-text {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 400;
  margin-bottom: 1rem;
}
.work-card-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.03em;
}

/* === FEATURE CARD — editorial (no box, Garamond typography) === */
.feature-card-editorial {
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  cursor: default;
}
.feature-card-editorial:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}
.feature-card-editorial:hover::before { transform: scaleX(0); }
.feature-card-link { cursor: pointer; text-decoration: none; }
.feature-card-link:hover { transform: none; box-shadow: none; border-color: var(--blue); }
.feature-card-link:hover .service-visual-title { color: var(--blue); }
.feature-card-link:hover::before { transform: scaleX(0); }
.feature-card-editorial .service-visual-bar { display: none; }
.feature-card-editorial .service-visual-title {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  line-height: 1.05;
  margin-bottom: 0.75rem;
}
.feature-card-editorial .service-visual-catch {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* === SERVICE VISUAL (open typographic panel, replaces image) === */
.service-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
}
.service-visual-bar {
  width: 44px;
  height: 3px;
  background: var(--blue);
  margin-bottom: 2rem;
  border-radius: 2px;
}
.service-visual-title {
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.service-visual-catch {
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.55;
}
.service-visual-bg-num { display: none; }

/* === SERVICES PAGE === */
.services-intro {
  background: var(--light);
  padding: 4rem 0;
  text-align: center;
}
.service-block {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border);
}
.service-block:last-child { border-bottom: none; }
.service-block:nth-child(even) { background: var(--light); }
.service-num {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(63,154,228,0.1);
  margin-bottom: -0.5rem;
  letter-spacing: -0.04em;
}
.service-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.4rem;
  line-height: 1.15;
}
.service-tagline {
  font-size: 1rem;
  color: var(--blue);
  font-style: italic;
  font-weight: 300;
  margin-bottom: 1.5rem;
}
.service-desc {
  font-size: 1.05rem;
  color: #3a3f5c;
  line-height: 1.85;
  font-weight: 400;
  margin-bottom: 2rem;
}
.service-items {
  list-style: none;
  padding: 0;
  margin: 0;
}
.service-items li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}
.service-items li:last-child { border-bottom: none; }
.service-items li::before { display: none; }
.service-items li strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
}
.service-items li span {
  font-size: 0.95rem;
  font-weight: 400;
  color: #3a3f5c;
}

/* === ABOUT PAGE === */
.about-text p {
  font-size: 0.97rem;
  color: var(--text);
  line-height: 1.9;
  font-weight: 400;
  margin-bottom: 1.25rem;
}
.about-text p:last-child { margin-bottom: 0; }
.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: 460px;
}
.team-card-img {
  overflow: hidden;
}
.team-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.team-card-body {
  padding: 2.5rem 2.5rem 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.team-name {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.2rem;
}
.team-role {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 1.5rem;
}
.team-bio {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.85;
  font-weight: 400;
  white-space: pre-line;
  margin-bottom: 1.75rem;
}

/* === PARTNER CARDS === */
.partner-slider-wrapper {
  position: relative;
  margin-top: 2rem;
}
.partner-grid {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}
.partner-grid::-webkit-scrollbar { display: none; }
.partner-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.partner-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.partner-logo {
  height: 54px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  align-self: center;
}
.partner-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.partner-tagline {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 0.875rem;
}
.partner-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  flex: 1;
  font-weight: 400;
}

/* === CONTACT PAGE === */
.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text);
  background: var(--light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
  line-height: 1.5;
}
.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(63,154,228,0.15);
  background: var(--white);
}
textarea.form-control { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-footer {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.captcha-wrapper { flex: 1; min-width: 200px; }
.alert {
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: none;
}
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-danger  { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
[data-form-alert]:not([hidden]) { display: block; }
[data-form-alert-danger]:not([hidden]) { display: block; }

/* === CTA BANNER === */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 5.5rem 0;
  text-align: center;
}
.cta-banner h2 {
  font-size: clamp(1.8rem, 4vw, 2.85rem);
  font-weight: 800;
  margin-bottom: 0.875rem;
  letter-spacing: -0.02em;
}
.cta-banner p {
  font-size: 1.02rem;
  color: rgba(255,255,255,0.68);
  margin-bottom: 2rem;
  font-weight: 300;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* === FOOTER === */
.site-footer {
  position: relative;
  min-height: 130px;
  display: flex;
  align-items: stretch;
  background-image: url('../../images/footer.png');
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.footer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11,19,64,0.62);
}
.footer-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 2.5rem 1.5rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-content p {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.75);
  margin: 0;
}
.footer-content a {
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-content a:hover { color: var(--white); }

/* === SCROLL TO TOP === */
.scroll-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 42px;
  height: 42px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  z-index: 500;
  box-shadow: 0 4px 16px rgba(63,154,228,0.4);
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--blue-dark); transform: translateY(-2px); }

/* === SCROLL ANIMATIONS === */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up-d1 { transition-delay: 0.1s; }
.fade-up-d2 { transition-delay: 0.2s; }
.fade-up-d3 { transition-delay: 0.3s; }
.fade-up-d4 { transition-delay: 0.4s; }
.fade-up-d5 { transition-delay: 0.5s; }

/* === UTILITY SPACING === */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }
.gap-1 { gap: 0.5rem !important; }

/* ============================================================
   CASE STUDY PAGES
   ============================================================ */

/* Hero with brand color accent bar */
.cs-hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
}
.cs-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
}
.cs-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11,19,64,0.45);
}
.cs-hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0 3.5rem;
  width: 100%;
}
.cs-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.cs-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
}
.cs-tag.accent {
  background: var(--blue);
  border-color: var(--blue);
}
.cs-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 0.875rem;
}
.cs-hero-tagline {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  font-style: italic;
  font-weight: 300;
}

/* Accent bar at bottom of hero */
.cs-accent-bar {
  height: 4px;
  background: var(--blue);
  width: 100%;
}

/* Overview/metadata strip */
.cs-overview {
  background: var(--light);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.cs-overview-grid {
  display: flex;
  flex-wrap: wrap;
  divide-x: 1px solid var(--border);
}
.cs-overview-item {
  flex: 1;
  min-width: 140px;
  padding: 1.25rem 1.5rem;
  border-right: 1px solid var(--border);
}
.cs-overview-item:last-child { border-right: none; }
.cs-overview-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.cs-overview-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

/* Pull quote */
.cs-pullquote {
  border-left: 4px solid var(--blue);
  padding: 1.25rem 1.5rem;
  background: rgba(63,154,228,0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}
.cs-pullquote p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--navy);
  font-weight: 400;
  line-height: 1.7;
  margin: 0;
}

/* Section headings within case studies */
.cs-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.cs-section-title::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--blue);
}
.cs-body-heading {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.cs-body-text {
  font-size: 0.97rem;
  color: var(--text);
  line-height: 1.9;
  font-weight: 400;
}
.cs-body-text p { margin-bottom: 1.1rem; }
.cs-body-text p:last-child { margin-bottom: 0; }

/* Deliverables / key elements list */
.cs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cs-list li {
  display: flex;
  gap: 0.875rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
  color: var(--text);
  line-height: 1.55;
  font-weight: 400;
  align-items: flex-start;
}
.cs-list li:last-child { border-bottom: none; }
.cs-list li::before {
  content: '→';
  color: var(--blue);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1em;
}

/* Results stats */
.cs-results {
  background: var(--navy);
  color: var(--white);
  padding: 4.5rem 0;
}
.cs-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
  margin-top: 2.5rem;
}
.cs-result-card {
  padding: 1.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  transition: background var(--transition);
}
.cs-result-card:hover { background: rgba(255,255,255,0.09); }
.cs-result-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}
.cs-result-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  line-height: 1.4;
}

/* Image placeholder */
.img-placeholder {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--light) 0%, var(--border) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px dashed var(--border);
}
.img-placeholder-icon { font-size: 2.5rem; opacity: 0.4; }
.img-placeholder-label { opacity: 0.6; }

/* Gallery grid */
.cs-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.cs-gallery .img-placeholder,
.cs-gallery img {
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.cs-gallery .cs-gallery-wide {
  grid-column: span 2;
}
.cs-gallery .cs-gallery-tall {
  grid-row: span 2;
  height: auto;
}

/* Video player block */
.cs-video-section {
  background: #0a0d1f;
  padding: 4.5rem 0;
}
.cs-video-block {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.cs-video-block video,
.cs-video-block iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
}
.cs-video-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.75rem;
}
.cs-video-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.cs-video-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  font-weight: 300;
  line-height: 1.7;
}
.cs-video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (max-width: 768px) {
  .cs-video-grid { grid-template-columns: 1fr; }
}

/* Case study navigation (next/prev) */
.cs-nav {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}
.cs-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.cs-nav-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition);
  background: var(--white);
}
.cs-nav-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  text-decoration: none;
  transform: translateY(-2px);
}
.cs-nav-card-img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--light);
}
.cs-nav-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cs-nav-direction {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.cs-nav-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.cs-nav-card.next { flex-direction: row-reverse; text-align: right; }

/* Responsive */
@media (max-width: 768px) {
  .cs-overview-grid { flex-direction: column; }
  .cs-overview-item { border-right: none; border-bottom: 1px solid var(--border); }
  .cs-overview-item:last-child { border-bottom: none; }
  .cs-gallery { grid-template-columns: 1fr 1fr; }
  .cs-gallery .cs-gallery-wide { grid-column: span 2; }
  .cs-nav-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cs-gallery { grid-template-columns: 1fr; }
  .cs-gallery .cs-gallery-wide { grid-column: span 1; }
}

/* === RESPONSIVE === */
@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  /* case-cards is now a flex slider — no grid override needed */
}
@media (max-width: 992px) {
  .nav-links, .nav-right .lang-toggle { display: none; }
  .nav-hamburger { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .two-col.reverse { direction: ltr; }
  .team-card { grid-template-columns: 1fr; }
  .team-card-img { max-height: 380px; }
  .parallax-right .parallax-content { text-align: left; }
}
@media (max-width: 768px) {
  body { padding-top: 72px; }
  section { padding: 3.5rem 0; }
  .hero { min-height: 62vh; }
  /* case-cards is now a flex slider — no grid override needed */
  .work-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .service-visual { order: -1; }
}
@media (max-width: 576px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-form-wrapper { padding: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .logo-grid { gap: 1.5rem 2rem; }
}

/* ── WHY IT MATTERS ── */
.why-matters-section {
  background: var(--light);
  padding: 6rem 0;
  border-top: 1px solid var(--border);
}
.why-matters-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.why-matters-image {
  position: sticky;
  top: 6rem;
}
.why-matters-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: grayscale(100%);
  display: block;
  border-radius: var(--radius-lg);
}
.why-matters-content .section-sub {
  margin-bottom: 2rem;
}
.why-point {
  display: flex;
  gap: 1.75rem;
  padding: 1.25rem 0;
  align-items: flex-start;
}
.why-point-num {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-style: italic;
  color: var(--blue);
  flex-shrink: 0;
  width: 2.25rem;
  line-height: 1.2;
  padding-top: 0.1rem;
}
.why-point h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}
.why-point p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
}
@media (max-width: 992px) {
  .why-matters-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .why-matters-image {
    position: static;
  }
  .why-matters-image img {
    aspect-ratio: 16/9;
    max-height: 400px;
  }
}
