/* =========================================================
   Tito Solutions — main stylesheet
   ---------------------------------------------------------
   REBRANDING: most branch-specific changes start in the
   "Brand tokens" block below (colors, fonts, radius).
   ========================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Mont";
  src: url("../assets/fonts/Mont-Light.ttf") format("truetype");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mont";
  src: url("../assets/fonts/Mont-SemiBold.ttf") format("truetype");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Brand tokens ---------- */
:root {
  --font-sans: "Mont", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --color-primary: #a3e635;        /* buttons */
  --color-primary-hover: #bef264;
  --color-highlight: #85d64a;      /* highlighted headline word */
  --color-tag: #c4f04d;            /* case-study tags, stat bars */
  --color-footer-heading: #7ee787;

  --color-text: #0a0a0a;
  --color-muted: #737373;
  --color-navy: #012241;
  --color-footer: #001a33;

  --gradient-process: linear-gradient(103.96deg, #012241 0.73%, #0357a7 99.27%);
  --blob-primary: rgba(190, 242, 100, 0.2);
  --blob-secondary: rgba(168, 85, 247, 0.15);
  --blob-tertiary: rgba(45, 212, 191, 0.1);

  --bg-page: #fbfcfd;
  --bg-white: #ffffff;
  --bg-gray: #f9fafb;
  --bg-slate: #f8fafc;
  --border: #e5e7eb;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;

  --header-h: 80px;
  --container: 1400px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--color-text);
  background: var(--bg-page);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--color-navy); outline-offset: 3px; }

.icon {
  width: 16px; height: 16px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-xs { width: 12px; height: 12px; }
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 32px; height: 32px; stroke-width: 1.5; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 1348px; }
.center { display: flex; justify-content: center; margin-top: 48px; }

/* ---------- Background decor ---------- */
.noise-overlay {
  position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.bg-decor { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-grid {
  position: absolute; inset: 0; opacity: 0.2;
  background-image:
    linear-gradient(to right, rgba(0,0,0,.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 100%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(128px); }
.blob--primary { top: -10%; left: -10%; width: 600px; height: 600px; background: var(--blob-primary); animation: blob 7s infinite; }
.blob--purple  { bottom: -10%; right: -10%; width: 600px; height: 600px; background: var(--blob-secondary); animation: blob 7s infinite 2s; }
.blob--teal    { top: 40%; left: 30%; width: 300px; height: 300px; filter: blur(100px); background: var(--blob-tertiary); animation: pulse 6s ease-in-out infinite; }

@keyframes blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}
@keyframes pulse { 50% { opacity: 0.5; } }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 8px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700; letter-spacing: 0.025em; text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.btn--primary { background: var(--color-primary); color: #0a0a0a; }
.btn--primary:hover { background: var(--color-primary-hover); }
.btn--primary:active { transform: scale(.98); }
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.025em;
  transition: color .2s;
}
.text-link:hover { color: var(--color-muted); }

/* ---------- Typography helpers ---------- */
.title-xl {
  font-size: clamp(32px, 5vw, 48px); font-weight: 700;
  line-height: 1.15; letter-spacing: -0.02em; color: var(--color-text);
}
.title-xl--white { color: #fff; font-weight: 600; font-size: clamp(30px, 5vw, 60px); }
.title-lg { font-size: clamp(30px, 4.5vw, 48px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.subtitle-xl { font-size: clamp(26px, 4.5vw, 48px); line-height: 1.15; margin-top: 8px; }
.lead {
  font-size: clamp(16px, 2vw, 20px); font-weight: 500; line-height: 1.6;
  color: var(--color-muted); max-width: 900px; margin: 16px auto 0;
}
.lead--left { margin-inline: 0; }
.eyebrow { color: rgba(255,255,255,.8); font-size: clamp(16px, 2vw, 20px); margin-bottom: 16px; }
.text-highlight { color: var(--color-highlight); }

.section { padding-block: clamp(64px, 9vw, 96px); position: relative; }
.section--white { background: var(--bg-white); }
.section--gray  { background: var(--bg-gray); }
.section--slate { background: var(--bg-slate); }
.section-head {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.section-head .btn { margin-top: 32px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h); background: #fff;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--border), 0 8px 24px rgba(0,0,0,.04); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--gutter); max-width: 2400px; margin-inline: auto;
}
.brand img { width: 200px; height: auto; }

.main-nav { display: flex; align-items: center; gap: 40px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; text-transform: uppercase; letter-spacing: .02em;
  color: var(--color-muted); transition: color .2s;
}
.nav-link:hover, .nav-link--active { color: var(--color-text); font-weight: 600; }
.nav-link:hover { color: #22c55e; }
.nav-cta-mobile { display: none; }

.nav-dropdown { position: relative; display: flex; align-items: center; gap: 4px; }
.dropdown-toggle {
  display: inline-flex; align-items: center; justify-content: center; padding: 2px;
  border: 0; background: none; color: var(--color-muted); cursor: pointer; transition: color .2s;
}
.dropdown-toggle:hover, .nav-dropdown:has(.nav-link--current) .dropdown-toggle { color: #22c55e; }
.dropdown-toggle .chevron { width: 12px; height: 12px; transition: transform .2s; }
.dropdown-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: calc(100% + 16px); left: 50%; translate: -50% 0;
  min-width: 240px; padding: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.dropdown-menu.is-open { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 1025px) and (hover: hover) {
  .dropdown-menu::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
}
.dropdown-menu a {
  display: block; padding: 8px 16px; border-radius: 8px; text-align: center;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em;
  color: var(--color-muted); transition: color .15s;
}
.dropdown-menu a:hover { color: var(--color-highlight); }

.menu-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; }
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

main { padding-top: var(--header-h); }

/* ---------- Hero ---------- */
.hero {
  min-height: min(calc(100vh - var(--header-h)), 960px);
  display: flex; align-items: center;
  padding-block: clamp(64px, 10vw, 128px);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero-title { font-size: clamp(36px, 5vw, 72px); overflow-wrap: break-word; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.hero-lead { font-size: clamp(18px, 1.6vw, 20px); font-weight: 500; color: var(--color-muted); max-width: 36rem; }
.hero-media { display: flex; justify-content: flex-end; }
.hero-image {
  width: 100%; max-width: 671px; aspect-ratio: 671 / 704;
  object-fit: cover; border-radius: var(--radius-lg);
  will-change: transform;
}

/* ---------- Marquee ---------- */
.marquee { background: #fff; padding-block: clamp(32px, 4vw, 48px); overflow: hidden; }
.marquee-track {
  display: flex; align-items: center;
  width: max-content; height: 25px;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track a { flex-shrink: 0; padding-right: clamp(32px, 5vw, 64px); height: 100%; display: flex; align-items: center; }
.marquee-track img {
  height: 100%; width: auto; object-fit: contain;
  filter: grayscale(1); transition: filter .3s;
}
.marquee-track img.logo-sm { height: 72%; }
.marquee-track img:hover { filter: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Service cards ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  height: 584px; display: block; isolation: isolate;
}
.service-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform .7s var(--ease);
}
.service-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,.1) 50%, transparent);
  transition: background .5s var(--ease);
}
.service-card:hover::before { background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.3) 50%, transparent); }
.service-card:hover img { transform: scale(1.04); }
.service-card__body { position: absolute; inset: auto 0 0; padding: 24px; color: #fff; }
.service-card h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 500; line-height: 1.25; transition: transform .5s var(--ease); }
.service-card:hover h3 { transform: translateY(-4px); }
.service-card__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.service-card__more > div { overflow: hidden; }
.service-card:hover .service-card__more,
.service-card:focus-visible .service-card__more { grid-template-rows: 1fr; }
.service-card__more p {
  padding-top: 16px; margin-bottom: 16px; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.9);
  opacity: 0; transform: translateY(8px); transition: opacity .5s .1s, transform .5s .1s;
}
.service-card:hover .service-card__more p { opacity: 1; transform: none; }
.service-card__cta { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .025em; text-transform: uppercase; }

/* ---------- Results ---------- */
.results { min-height: 700px; display: flex; align-items: center; }
.results-card {
  max-width: 1000px; margin-inline: auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-2xl);
  padding: 32px; box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.results-copy .lead { margin-top: 24px; margin-bottom: 32px; color: #6b7280; }
.results-media img { width: 100%; border-radius: var(--radius-md); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stat { display: flex; gap: 12px; align-items: flex-start; }
.stat--wide { grid-column: 1 / -1; }
.stat__bar { width: 4px; height: 48px; margin-top: 8px; border-radius: 999px; background: #a3e635; flex-shrink: 0; }
.stat__value { font-size: clamp(26px, 3vw, 36px); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; color: #111827; }
.stat__label { font-size: clamp(14px, 1.6vw, 20px); font-weight: 500; color: #6b7280; margin-top: 4px; }

/* ---------- Process ---------- */
.process { background: var(--gradient-process); color: #fff; }
.process .section-head { margin-bottom: clamp(48px, 8vw, 96px); }
.steps { display: flex; align-items: center; justify-content: center; }
.step { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: clamp(18px, 2vw, 24px); font-weight: 500; white-space: nowrap; }
.step-arrow { margin-inline: clamp(16px, 7vw, 128px); }
.step-arrow .icon { width: 24px; height: 24px; }

/* ---------- Testimonials ---------- */
.carousel { display: flex; align-items: center; gap: 16px; }
.carousel-btn {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #d9d9d9; transition: background .15s;
}
.carousel-btn:hover { background: #f8fafc; }
.testimonial {
  position: relative; flex: 1; min-width: 0; overflow: hidden;
  background: #fff; border: 1px solid #e5e5e5; border-radius: var(--radius-xl);
  color: var(--color-navy); padding: clamp(56px, 6vw, 64px) clamp(24px, 6vw, 64px) clamp(32px, 5vw, 64px);
  display: grid;
}
.testimonial__mark { position: absolute; top: 12px; left: 20px; width: clamp(40px, 5vw, 64px); height: auto; pointer-events: none; }
.slide {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateX(16px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
.slide.is-active { opacity: 1; visibility: visible; transform: none; }
.slide blockquote { font-family: Inter, var(--font-sans); font-size: 20px; font-weight: 500; line-height: 1.4; }
.slide figcaption {
  display: flex; align-items: center; gap: 24px;
  margin-top: 36px; padding-top: 36px; border-top: 1px solid #efefef;
}
.slide figcaption strong { display: block; font-size: 20px; font-weight: 700; line-height: 1.4; }
.slide figcaption span > span { font-size: 20px; font-weight: 300; }
.avatar {
  width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-navy); border: 1px solid #a6b2bd; color: #fff; font-size: 20px; font-weight: 700;
}
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.carousel-dots button { width: 8px; height: 8px; border-radius: 50%; background: #d4d4d4; transition: background .2s, width .2s; }
.carousel-dots button[aria-current="true"] { background: var(--color-navy); width: 24px; border-radius: 999px; }

/* ---------- Case studies ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-card {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid #e2e8f0; border-radius: var(--radius-md);
  padding: clamp(24px, 3vw, 32px); transition: box-shadow .3s;
}
.case-card:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }
.case-card__logo { width: 200px; height: 157px; margin: 0 auto 24px; display: flex; align-items: center; justify-content: center; }
.case-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.tag { align-self: flex-start; background: var(--color-tag); border-radius: 999px; padding: 6px 16px; font-size: 14px; font-weight: 500; margin-bottom: 16px; }
.case-card h3 { flex-grow: 1; font-size: 20px; font-weight: 600; line-height: 1.4; }
.read-more { align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; font-weight: 500; text-transform: uppercase; transition: gap .2s; }
.case-card:hover .read-more { gap: 12px; }

/* ---------- Why partners ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.why-item img { width: 64px; height: 92px; object-fit: contain; margin-bottom: 24px; }
.why-item h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.why-item p { font-size: clamp(16px, 1.6vw, 20px); font-weight: 500; line-height: 1.6; color: var(--color-muted); }
.anim-rocket:hover    { animation: rocket-lift 2s ease-in-out infinite; }
.anim-handshake:hover { animation: handshake-shake 1s ease-in-out infinite; }
.anim-lightbulb:hover { animation: lightbulb-glow 3s ease-in-out infinite; }
@keyframes rocket-lift { 50% { transform: translateY(-10px); } }
@keyframes handshake-shake { 25% { transform: rotate(-5deg); } 75% { transform: rotate(5deg); } }
@keyframes lightbulb-glow { 50% { filter: brightness(1.3) drop-shadow(0 0 20px #bef264); } }

/* ---------- Toolkit ---------- */
.toolkit { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 64px); }
.toolkit-group { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.toolkit-group h3 { font-size: clamp(18px, 2vw, 20px); font-weight: 600; color: var(--color-muted); }
.toolkit-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px clamp(24px, 4vw, 60px); }
.toolkit-logos img {
  width: clamp(100px, 12vw, 180px); height: clamp(32px, 3.5vw, 45px); object-fit: contain;
  filter: grayscale(1); transition: filter .4s ease-in-out;
}
.toolkit-logos img.is-lit, .toolkit-logos img:hover { filter: none; }
.toolkit-logos--grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 48px 24px; justify-items: center; }
.toolkit-logos--grid img { width: 180px; max-width: 100%; height: 36px; }
@media (max-width: 1024px) {
  .toolkit-logos--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .toolkit-logos--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
}

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--color-navy); min-height: 476px; display: flex; align-items: center; padding-block: 96px; }
.cta-glow { position: absolute; inset: 0; pointer-events: none; }
.cta-glow img { position: absolute; height: 800px; width: auto; max-width: none; opacity: .3; filter: blur(54px); }
.cta-glow__left  { left: -30px; top: -300px; }
.cta-glow__right { right: -30px; bottom: -300px; rotate: 180deg; }
.cta-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 36px; text-align: center; color: #fff; }
.cta-inner h2 { font-size: clamp(32px, 4.5vw, 48px); font-weight: 600; line-height: 1; letter-spacing: -0.02em; max-width: 960px; }
.cta-inner p { font-size: clamp(16px, 2vw, 20px); font-weight: 500; color: rgba(255,255,255,.8); max-width: 551px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-footer); color: rgba(255,255,255,.8); padding-block: clamp(32px, 5vw, 64px); }
.footer-grid { max-width: 1280px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-logo { height: 48px; width: auto; margin-bottom: 24px; }
.footer-brand address { font-size: 14px; line-height: 1.8; }
.footer-heading { color: var(--color-footer-heading); font-size: 18px; font-weight: 600; margin-bottom: 24px; }
.footer-col ul { display: flex; flex-direction: column; gap: 16px; font-size: 14px; }
.footer-col a { transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1280px; margin-top: clamp(48px, 5vw, 64px); padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 14px; color: rgba(255,255,255,.6);
}
.socials { display: flex; gap: 24px; }
.socials .icon { width: 20px; height: 20px; }
.socials a { transition: color .2s; }
.socials a:hover { color: #fff; }

/* ---------- Inner pages: hero ---------- */
.nav-link--current { color: #22c55e; font-weight: 600; }
.page-hero { padding-block: clamp(64px, 9vw, 128px) clamp(48px, 7vw, 96px); overflow: hidden; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.page-hero__copy { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.page-hero__copy .btn { margin-top: 16px; }
.page-hero__media img { width: 100%; height: auto; border-radius: var(--radius-lg); object-fit: cover; }

/* ---------- Case study list + filter tabs ---------- */
.container--cases { max-width: 1280px; }
.case-list { padding-top: clamp(32px, 4vw, 48px); }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-tab {
  height: 40px; padding: 8px 16px; border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1; background: transparent;
  font-size: 14px; font-weight: 500; color: var(--color-muted);
  transition: color .2s, background-color .2s, border-color .2s;
}
.filter-tab:hover { color: var(--color-text); }
.filter-tab.is-active { background: var(--color-navy); border-color: var(--color-navy); color: #fff; }
.case-card[hidden] { display: none; }
.case-card.is-entering { animation: card-in .35s var(--ease) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(12px); } }
.filter-empty { text-align: center; color: var(--color-muted); padding: 48px 0; }

/* ---------- Careers portal ---------- */
.careers-section { padding: clamp(32px, 5vw, 64px) var(--gutter); }
.careers-inner { max-width: 1600px; margin-inline: auto; }
.careers-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.careers-frame { display: block; width: 100%; height: 800px; border: 0; background: #fff; }
.careers-portal-link { margin-top: 24px; text-align: center; }

/* ---------- Blog list ---------- */
.page-hero--wide .page-hero__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.container--posts { max-width: 1024px; display: flex; flex-direction: column; gap: clamp(32px, 4vw, 48px); }
.post-list { padding-top: clamp(32px, 4vw, 48px); }
.post-row { display: grid; grid-template-columns: 288px minmax(0, 1fr); gap: 32px; align-items: start; }
.post-row__media { display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 2; }
.post-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-row:hover .post-row__media img { transform: scale(1.04); }
.post-row__body { display: flex; flex-direction: column; gap: 6px; }
.post-meta { display: flex; gap: 8px; color: var(--color-muted); font-size: 14px; }
.post-row h2 { font-size: 18px; font-weight: 600; line-height: 1.35; }
.post-row h2 a:hover { color: #22c55e; }
.post-row__excerpt { color: var(--color-muted); font-size: 14px; max-width: 576px; }
.post-row .read-more { align-self: flex-start; margin-top: 8px; font-weight: 700; text-transform: none; }
.post-row .read-more:hover { gap: 12px; }

/* ---------- Our Team ---------- */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 48px); }
.principle { position: relative; padding: 32px clamp(16px, 2vw, 24px) 0; }
.principle__icon {
  position: absolute; top: 0; right: 30%; width: clamp(128px, 12vw, 160px); height: auto;
  transform: translateY(-25%); fill: none; stroke: var(--color-text); stroke-width: 1;
  stroke-linecap: round; stroke-linejoin: round; opacity: .08; pointer-events: none;
}
.principle h3 { position: relative; font-size: clamp(20px, 2.2vw, 30px); font-weight: 600; line-height: 1.2; margin-bottom: 16px; }
.principle p { position: relative; color: var(--color-muted); font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; }

.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; max-width: 1072px; margin-inline: auto; }
.member { position: relative; width: 310px; max-width: 100%; aspect-ratio: 310 / 430; border-radius: var(--radius-sm); overflow: hidden; background: #f9fafb; }
.member img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: filter .3s var(--ease), transform .3s var(--ease); }
.member figcaption {
  position: absolute; left: 18px; right: 18px; bottom: 18px;
  display: flex; flex-direction: column; gap: 6px; padding: 18px 10px;
  background: #fff; border-radius: 9px;
}
.member strong { font-size: clamp(18px, 1.5vw, 20px); font-weight: 600; }
.member span { color: var(--color-muted); font-size: clamp(14px, 1.2vw, 16px); }
@media (hover: hover) {
  .member img { filter: grayscale(1); }
  .member:hover img { filter: none; transform: scale(1.05); }
}

/* ---------- Services list ---------- */
.container--services { max-width: 1304px; }
.service-list .filter-tabs { margin-bottom: clamp(32px, 4vw, 48px); }
.service-rows { display: flex; flex-direction: column; gap: clamp(48px, 5vw, 64px); }
.service-row { display: grid; grid-template-columns: minmax(0, 475px) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: stretch; max-width: 1024px; }
.service-row[hidden] { display: none; }
.service-row.is-entering { animation: card-in .35s var(--ease) both; }
.service-row__media { border-radius: 24px; overflow: hidden; aspect-ratio: 475 / 385; background: #fff; }
.service-row__media img { width: 100%; height: 100%; object-fit: cover; }
.service-row__body { display: flex; flex-direction: column; gap: 24px; }
.service-row h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; line-height: 1.2; }
.service-row__lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; align-content: start; flex: 1; }
.service-row__lists ul { display: flex; flex-direction: column; gap: 16px; }
.service-row__lists li { position: relative; padding-left: 22px; color: #374151; font-size: 16px; line-height: 1.5; }
.service-row__lists li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: #2563eb; }
.service-row .btn { align-self: flex-start; }

/* ---------- Service detail page ---------- */
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 3vw, 32px); font-size: 14px; color: var(--color-muted); }
.breadcrumb a { transition: color .15s; }
.breadcrumb a:hover { color: var(--color-text, #0a0a0a); }
.breadcrumb span { color: var(--color-text, #0a0a0a); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.feature-grid > .feature-card:nth-child(3n+1):last-child { grid-column: 2; }
.feature-card { display: flex; flex-direction: column; align-items: flex-start; height: 100%; padding: 32px; border: 1px solid #f3f4f6; border-radius: 16px; background: #fff; transition: box-shadow .3s; }
.feature-card:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }
.feature-card img { width: 152px; height: 152px; object-fit: contain; margin-bottom: 24px; }
.feature-card h3 { margin-bottom: 12px; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.feature-card p { font-size: 18px; line-height: 1.6; color: var(--color-muted); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .main-nav { gap: 24px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { height: 500px; }
}

@media (max-width: 1024px) {
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .brand img { width: 150px; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px var(--gutter) 24px; background: #fff;
    border-top: 1px solid var(--border); box-shadow: 0 16px 32px rgba(0,0,0,.08);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-link { font-size: 14px; padding: 12px 0; width: 100%; justify-content: space-between; }
  .nav-cta-mobile { display: inline-flex; margin-top: 12px; }
  .dropdown-menu {
    position: static; translate: none; transform: none; box-shadow: none; border: 0;
    padding: 0 0 8px 12px; display: none; opacity: 1; visibility: visible;
  }
  .dropdown-menu.is-open { display: block; }
  .nav-dropdown { flex-wrap: wrap; gap: 0; }
  .nav-dropdown .nav-link { width: auto; flex: 1; }
  .dropdown-toggle { width: 40px; height: 40px; }
  .dropdown-toggle .chevron { width: 16px; height: 16px; }
  .dropdown-menu { flex-basis: 100%; }
  .dropdown-menu a { text-align: left; padding: 8px 0; }

  .hero-grid, .page-hero__grid { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .page-hero__copy { align-items: center; }
  .page-hero--wide .page-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { align-items: center; }
  .hero-media { justify-content: center; }
  .hero-image { max-width: 550px; }

  .results-card { grid-template-columns: 1fr; }
  .results-media { order: -1; }

  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid > .feature-card:nth-child(3n+1):last-child { grid-column: auto; }
}

@media (max-width: 768px) {
  .service-row { grid-template-columns: minmax(0, 1fr); }
  .service-row__lists { grid-template-columns: minmax(0, 1fr); }
  .service-grid, .case-grid, .why-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-card { align-items: center; text-align: center; }
  .service-card { height: 420px; }
  .post-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: 1fr; }
  .br-sm { display: none; }

  .steps { flex-direction: column; }
  .step-arrow { margin: 24px 0; rotate: 90deg; }

  .carousel { flex-wrap: wrap; justify-content: center; }
  .testimonial { order: -1; flex-basis: 100%; }
  .carousel-btn { width: 44px; height: 44px; }
  .slide blockquote { font-size: 17px; }
  .slide figcaption { gap: 16px; }
  .avatar { width: 56px; height: 56px; font-size: 18px; }
  .slide figcaption strong, .slide figcaption span > span { font-size: 17px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

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