:root {
  --ink: #0f172a;
  --muted: #667085;
  --paper: #ffffff;
  --soft: #f6f9ff;
  --line: #dbe6f7;
  --emerald: #0b5ed7;
  --emerald-dark: #071d49;
  --emerald-soft: #e8f1ff;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

body.portfolio-lightbox-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.section-pad {
  padding: 96px 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  padding: 18px 0;
  color: #fff;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.site-header.scrolled,
.site-header.menu-active {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
  color: var(--ink);
  padding: 12px 0;
  backdrop-filter: blur(18px);
}

.header-content,
.main-nav ul,
.hero-actions,
.section-heading.split,
.footer-grid,
.footer-links {
  display: flex;
  align-items: center;
}

.header-content {
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.12rem;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 76px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-header .brand-mark {
  width: 128px;
  height: 42px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.site-header .brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translateY(-16px);
  transition: filter 0.25s ease, transform 0.25s ease;
}

.brand-mark .logo-light-bg {
  display: none;
}

.site-header.scrolled .brand-mark,
.site-header.menu-active .brand-mark,
.quote-page .quote-header .brand-mark {
  background: transparent;
  box-shadow: none;
}

.site-header.scrolled .logo-dark-bg,
.site-header.menu-active .logo-dark-bg,
.quote-page .quote-header .logo-dark-bg {
  display: none;
}

.site-header.scrolled .logo-light-bg,
.site-header.menu-active .logo-light-bg,
.quote-page .quote-header .logo-light-bg {
  display: block;
}

.main-nav ul {
  list-style: none;
  gap: 34px;
}

.main-nav a {
  font-size: 0.94rem;
  font-weight: 700;
  opacity: 0.92;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #38bdf8;
  opacity: 1;
}

.site-header.scrolled .main-nav a:hover,
.site-header.scrolled .main-nav a.active,
.site-header.menu-active .main-nav a:hover,
.site-header.menu-active .main-nav a.active {
  color: var(--emerald);
}

.header-cta,
.btn {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.header-cta,
.btn-primary {
  background: var(--emerald);
  color: #fff;
  box-shadow: 0 16px 35px rgba(11, 94, 215, 0.25);
}

.header-cta:hover,
.btn-primary:hover {
  background: #084bb5;
  transform: translateY(-2px);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  flex: 0 0 auto;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 5px;
  background: rgba(7, 29, 73, 0.32);
}

.language-switcher button {
  min-width: 25px;
  height: 23px;
  padding: 0 4px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 0.62rem;
  font-weight: 900;
  cursor: pointer;
}

.site-header.scrolled .language-switcher,
.site-header.menu-active .language-switcher {
  border-color: rgba(11, 94, 215, 0.18);
  background: rgba(11, 94, 215, 0.07);
}

.site-header.scrolled .language-switcher button,
.site-header.menu-active .language-switcher button {
  color: #536783;
}

.site-header.scrolled .language-switcher button.active,
.site-header.menu-active .language-switcher button.active {
  background: var(--emerald);
  color: #fff;
}

.language-switcher button.active {
  background: #fff;
  color: var(--emerald-dark);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.hamburger {
  width: 44px;
  height: 44px;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: currentColor;
  cursor: pointer;
}

.hamburger span {
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  min-height: 720px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(11, 94, 215, 0.14), transparent 34%, rgba(56, 189, 248, 0.1)),
    radial-gradient(circle at 50% 72%, rgba(56, 189, 248, 0.13), transparent 34%);
  opacity: 0.55;
  transition: background 0.6s ease, opacity 0.6s ease;
  pointer-events: none;
}

.hero[data-slide="1"]::after {
  background:
    linear-gradient(90deg, rgba(11, 94, 215, 0.13), transparent 34%, rgba(37, 99, 235, 0.1)),
    radial-gradient(circle at 55% 68%, rgba(56, 189, 248, 0.13), transparent 35%);
}

.hero[data-slide="2"]::after {
  background:
    linear-gradient(90deg, rgba(11, 94, 215, 0.09), transparent 32%, rgba(56, 189, 248, 0.07)),
    radial-gradient(circle at 48% 70%, rgba(59, 130, 246, 0.1), transparent 36%);
}

.hero-bg,
.hero-bg-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  z-index: -2;
  background: #061a3f;
}

.hero-bg-image {
  object-fit: cover;
  opacity: 0;
  filter: hue-rotate(46deg) saturate(1.18) brightness(0.9);
  transform: scale(1.04);
  transition: opacity 0.72s ease, transform 5s ease;
}

.hero-bg-image.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(3, 12, 35, 0.56), rgba(5, 31, 86, 0.58)),
    radial-gradient(circle at 50% 36%, rgba(11, 94, 215, 0.22), transparent 42%);
  transition: background 0.6s ease;
}

.hero[data-slide="1"] .hero-overlay {
  background:
    linear-gradient(180deg, rgba(3, 14, 38, 0.54), rgba(6, 49, 112, 0.58)),
    radial-gradient(circle at 50% 35%, rgba(56, 189, 248, 0.2), transparent 44%);
}

.hero[data-slide="2"] .hero-overlay {
  background:
    linear-gradient(180deg, rgba(4, 16, 42, 0.56), rgba(10, 47, 122, 0.58)),
    radial-gradient(circle at 50% 35%, rgba(59, 130, 246, 0.2), transparent 44%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 74px;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.hero-content.is-changing {
  opacity: 0;
  transform: translateY(10px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--emerald);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 1.6px;
}

.eyebrow.outline {
  background: transparent;
  border: 1px solid rgba(11, 94, 215, 0.48);
  color: var(--emerald-dark);
}

.hero h1 {
  max-width: 980px;
  margin: 28px auto 18px;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.05;
  font-weight: 900;
}

.hero-title-line {
  display: inline;
}

.hero p {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-actions {
  justify-content: center;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-indicators {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 76px;
}

.hero-dot {
  width: 18px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.hero-dot.active {
  width: 34px;
  background: #38bdf8;
}

.hero-dot:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.72);
}

.section-heading {
  max-width: 650px;
}

.section-heading.centered {
  margin: 0 auto 56px;
  text-align: center;
}

.section-heading.split {
  justify-content: space-between;
  gap: 28px;
  max-width: none;
  margin-bottom: 44px;
}

.section-heading h2 {
  margin-top: 18px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.12;
  font-weight: 900;
}

.section-heading p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.04rem;
}

.services {
  background: var(--paper);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  min-height: 296px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.04);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.service-card:hover,
.service-card.featured {
  background: var(--emerald);
  border-color: var(--emerald);
  box-shadow: 0 22px 60px rgba(11, 94, 215, 0.22);
  color: #fff;
  transform: translateY(-6px);
}

.icon-box {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  border-radius: 8px;
  background: #eef5ff;
  color: var(--emerald);
  font-size: 1.35rem;
}

.service-card:hover .icon-box,
.service-card.featured .icon-box {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.service-card h3,
.timeline-grid h3,
.process-list h3,
.blog-grid h3 {
  font-size: 1.12rem;
  line-height: 1.35;
  font-weight: 900;
}

.service-card p {
  margin: 14px 0 24px;
  color: var(--muted);
}

.service-card:hover p,
.service-card.featured p {
  color: rgba(255, 255, 255, 0.88);
}

.service-card a,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--emerald);
  font-weight: 900;
}

.service-card:hover a,
.service-card.featured a {
  color: #fff;
}

.about,
.blog,
.references,
.partners {
  background: var(--soft);
}

.about-grid,
.process-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-media {
  position: relative;
}

.about-media img {
  width: 100%;
  aspect-ratio: 1 / 0.9;
  object-fit: cover;
  border-radius: 8px;
  background: #e8f1ff;
  box-shadow: var(--shadow);
}

.certificate-card {
  position: absolute;
  left: 28px;
  bottom: 28px;
  width: min(260px, calc(100% - 56px));
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(16px);
}

.certificate-card strong,
.certificate-card span {
  display: block;
}

.certificate-card strong {
  color: var(--emerald-dark);
  font-size: 1.25rem;
  font-weight: 900;
}

.certificate-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.about-points {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.about-points span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #344054;
  font-weight: 700;
}

.about-points i {
  color: var(--emerald);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}

.about-stat {
  padding: 20px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.about-stat strong {
  display: block;
  color: var(--emerald);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1;
  font-weight: 900;
}

.about-stat span {
  display: block;
  margin-top: 8px;
  color: #475467;
  font-size: 0.9rem;
  font-weight: 800;
}

.solutions {
  background: #fff;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.timeline-grid article {
  padding: 28px;
  border-left: 3px solid var(--emerald);
  border-radius: 8px;
  background: #f8fbff;
}

.timeline-grid span {
  color: var(--emerald);
  font-weight: 900;
}

.timeline-grid h3 {
  margin: 16px 0 10px;
}

.timeline-grid p,
.process-list p,
.blog-grid p {
  color: var(--muted);
}

.solution-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
  margin-top: 46px;
}

.solution-support-card {
  position: relative;
  padding: 4px 2px 2px;
}

.solution-support-card::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 52px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(37, 99, 235, 0.22), rgba(37, 99, 235, 0));
}

.solution-support-head {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 14px;
}

.solution-support-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: var(--emerald);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(14, 165, 233, 0.08));
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.solution-support-icon i {
  font-size: 1.05rem;
}

.solution-support-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 900;
}

.solution-support-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0 0 0 57px;
  list-style: none;
}

.solution-support-card li {
  position: relative;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.35;
}

.solution-support-card li::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.solution-support-card:hover .solution-support-icon {
  color: #fff;
  background: linear-gradient(135deg, var(--emerald), #0ea5e9);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22);
}

.solutions-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 48px;
  padding: 46px 58px;
  border-radius: 22px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.96), rgba(7, 17, 31, 0.8)),
    url("../images/hero/hero-pcb.webp") center / cover;
  box-shadow: 0 28px 70px rgba(7, 17, 31, 0.2);
}

.solutions-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 70% 50%, rgba(14, 165, 233, 0.2), transparent 34%),
    linear-gradient(90deg, rgba(37, 99, 235, 0.14), transparent 44%);
}

.solutions-cta > * {
  position: relative;
  z-index: 1;
}

.solutions-cta h3 {
  margin: 0 0 12px;
  max-width: 760px;
  color: #fff;
  font-size: clamp(1.35rem, 2.2vw, 1.95rem);
  line-height: 1.18;
  font-weight: 900;
}

.solutions-cta p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.75;
}

.solutions-cta-btn {
  flex: 0 0 auto;
  padding: 17px 38px;
  min-width: 210px;
  justify-content: center;
  white-space: nowrap;
}

.portfolio {
  position: relative;
  overflow: hidden;
  padding: 88px 0 64px;
  background:
    radial-gradient(circle at 14% 18%, rgba(56, 189, 248, 0.22), transparent 30%),
    radial-gradient(circle at 84% 10%, rgba(37, 99, 235, 0.2), transparent 28%),
    linear-gradient(135deg, #07111f 0%, #0f172a 48%, #07111f 100%);
  color: #fff;
}

.portfolio::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.portfolio .container {
  position: relative;
  z-index: 1;
}

.portfolio .section-heading h2 {
  color: #fff;
}

.portfolio-heading {
  align-items: end;
  margin-bottom: 24px;
}

.portfolio-heading p {
  max-width: 520px;
  color: #cbd5e1;
}

.portfolio-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(310px, 0.82fr);
  gap: 22px;
  align-items: stretch;
}

.portfolio-stage {
  min-height: 410px;
  position: relative;
  perspective: 1300px;
}

.portfolio-orbit {
  position: absolute;
  inset: 8% 10% 0 3%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.26), transparent 64%);
  filter: blur(14px);
  opacity: 0.78;
}

.portfolio-main-card,
.portfolio-detail-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(2, 6, 23, 0.76);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.36);
  cursor: zoom-in;
  transition: transform 0.55s ease, opacity 0.35s ease;
}

.portfolio-detail-card {
  cursor: pointer;
}

.portfolio-main-card:focus-visible,
.portfolio-detail-card:focus-visible {
  outline: 3px solid rgba(56, 189, 248, 0.8);
  outline-offset: 5px;
}

.portfolio-main-card {
  inset: 0 52px 54px 0;
  border-radius: 24px;
  transform: rotateX(2deg) rotateY(-5deg) translateZ(0);
}

.portfolio-main-card::after,
.portfolio-detail-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 52%, rgba(2, 6, 23, 0.82) 100%);
}

.portfolio-main-card::before {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 5;
  padding: 7px 11px;
  border: 1px solid rgba(147, 197, 253, 0.48);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.82);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portfolio-main-card::before {
  content: "Büyüt";
}

.portfolio-detail-card::before {
  content: "2. açı";
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  padding: 6px 9px;
  border: 1px solid rgba(147, 197, 253, 0.45);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.78);
  color: #dbeafe;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portfolio-main-card img,
.portfolio-detail-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 12px;
  background:
    radial-gradient(circle at 50% 30%, rgba(56, 189, 248, 0.14), transparent 44%),
    #07111f;
  transition: opacity 0.28s ease, transform 0.55s ease;
}

.portfolio-stage.is-changing .portfolio-main-card img,
.portfolio-stage.is-changing .portfolio-detail-card img {
  opacity: 0.2;
  transform: scale(1.03);
}

.portfolio-main-card figcaption,
.portfolio-detail-card figcaption {
  display: none;
}

.portfolio-main-card figcaption small,
.portfolio-detail-card figcaption small {
  padding: 5px 9px;
  border: 1px solid rgba(147, 197, 253, 0.32);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.58);
  color: #fff;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

.portfolio-detail-card {
  right: 0;
  bottom: 0;
  width: min(46%, 300px);
  height: 158px;
  border-radius: 18px;
  transform: rotateX(0deg) rotateY(8deg) translateZ(38px);
}

.portfolio-stage:hover .portfolio-main-card {
  transform: rotateX(0deg) rotateY(-2deg) translateY(-6px);
}

.portfolio-stage:hover .portfolio-detail-card {
  transform: rotateX(0deg) rotateY(3deg) translateY(-10px);
}

.portfolio-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(14px);
}

.portfolio-lightbox.active {
  display: grid;
}

.portfolio-lightbox-inner {
  position: relative;
  width: min(1120px, 100%);
  max-height: 88vh;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 32px 120px rgba(0, 0, 0, 0.58);
}

.portfolio-lightbox img {
  width: 100%;
  max-height: 82vh;
  display: block;
  object-fit: contain;
  padding: clamp(10px, 2vw, 20px);
}

.portfolio-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  cursor: pointer;
}

.portfolio-lightbox-caption {
  position: absolute;
  left: 18px;
  right: 76px;
  bottom: 16px;
  color: #e2e8f0;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
}

.portfolio-panel {
  min-height: 410px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(2, 6, 23, 0.78)),
    rgba(15, 23, 42, 0.74);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.portfolio-panel.is-changing {
  opacity: 0.78;
  transform: translateY(4px);
}

.portfolio-category,
.blog-grid span {
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 1px;
}

.portfolio-panel h3 {
  margin-top: 12px;
  font-size: clamp(1.72rem, 3.2vw, 2.95rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.portfolio-panel p {
  max-width: 560px;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.portfolio-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.portfolio-meta div {
  min-height: 76px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.portfolio-meta span {
  display: block;
  margin-bottom: 6px;
  color: #94a3b8;
  font-size: 0.75rem;
}

.portfolio-meta strong {
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.24;
}

.portfolio-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.portfolio-controls span {
  color: #cbd5e1;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.portfolio-arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.portfolio-arrow:hover {
  background: var(--emerald);
  border-color: var(--emerald);
  transform: translateY(-2px);
}

.portfolio-selector-shell {
  margin-top: 18px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

.portfolio-selector {
  display: flex;
  gap: 14px;
  width: max-content;
  min-width: 100%;
  padding: 4px 2px 12px;
  animation: portfolioThumbMarquee 52s linear infinite;
  will-change: transform;
}

.portfolio-selector-shell:hover .portfolio-selector,
.portfolio-selector-shell:focus-within .portfolio-selector {
  animation-play-state: paused;
}

@keyframes portfolioThumbMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.portfolio-thumb {
  position: relative;
  flex: 0 0 182px;
  height: 116px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: #0b1220;
  color: #fff;
  cursor: pointer;
  scroll-snap-align: start;
  text-align: left;
  isolation: isolate;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 20%, rgba(2, 6, 23, 0.88) 100%);
}

.portfolio-thumb img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.portfolio-thumb span,
.portfolio-thumb strong {
  position: absolute;
  left: 14px;
  z-index: 1;
}

.portfolio-thumb span {
  top: 12px;
  color: #bbf7d0;
  font-size: 0.76rem;
  font-weight: 900;
}

.portfolio-thumb strong {
  right: 14px;
  bottom: 11px;
  line-height: 1.18;
  font-size: 0.86rem;
}

.portfolio-thumb:hover,
.portfolio-thumb.active {
  border-color: rgba(56, 189, 248, 0.88);
  box-shadow: 0 14px 42px rgba(11, 94, 215, 0.18);
  transform: translateY(-3px);
}

.portfolio-thumb:hover img,
.portfolio-thumb.active img {
  transform: scale(1.06);
}

.text-link {
  color: #38bdf8;
}

.text-link.dark {
  color: var(--emerald);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.blog-grid article {
  min-height: 100%;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.blog-grid article:hover {
  border-color: rgba(11, 94, 215, 0.28);
  box-shadow: 0 18px 42px rgba(11, 94, 215, 0.1);
  transform: translateY(-4px);
}

.blog-card-link {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 28px;
  color: inherit;
}

.blog-card-link em {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--emerald);
  font-style: normal;
  font-weight: 900;
}

.home-blog-actions {
  display: flex;
  align-items: center;
}

.home-blog-actions {
  justify-content: flex-end;
  gap: 22px;
}

.home-blog-carousel {
  --home-blog-width: min(1180px, calc(100vw - 48px));
  margin-top: 4px;
}

.home-blog-viewport {
  overflow: hidden;
  padding: 6px 3px 22px;
  touch-action: pan-y;
}

.home-blog-carousel.is-marquee .home-blog-track {
  display: flex;
  width: max-content;
  gap: 22px;
  animation: home-blog-marquee var(--home-blog-duration, 52s) linear infinite;
  will-change: transform;
}

.home-blog-carousel.is-marquee .home-blog-slide {
  min-width: 0;
  width: calc((var(--home-blog-width) - 44px) / 3);
  flex: 0 0 auto;
}

.home-blog-carousel:hover .home-blog-track,
.home-blog-carousel:focus-within .home-blog-track {
  animation-play-state: paused;
}

@keyframes home-blog-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(var(--home-blog-distance, -2400px), 0, 0);
  }
}

.blog-grid article.home-blog-slide {
  overflow: hidden;
  padding: 0;
}

.home-blog-slide .blog-card-link {
  overflow: hidden;
  padding: 0;
}

.home-blog-image {
  width: 100%;
  height: 108px !important;
  aspect-ratio: auto;
  object-fit: cover;
  background: #dbeafe;
  transition: transform 0.4s ease;
}

.home-blog-slide:hover .home-blog-image {
  transform: scale(1.035);
}

.home-blog-card-body {
  min-height: 208px;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px 16px 16px;
}

.home-blog-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.home-blog-meta span {
  max-width: 64%;
  font-size: 0.68rem;
}

.blog-grid .home-blog-meta time {
  flex: 0 0 auto;
  margin: 0;
  text-align: right;
  font-size: 0.76rem;
}

.home-blog-card-body h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0 7px;
  color: #071d49;
  font-size: 1.02rem;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-blog-card-body p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.84rem;
  line-height: 1.45;
}

.home-blog-card-body em {
  padding-top: 10px;
  font-size: 0.82rem;
}

.article-hero {
  padding: 150px 0 74px;
  background:
    radial-gradient(circle at 18% 16%, rgba(56, 189, 248, 0.22), transparent 30%),
    linear-gradient(135deg, #071d49 0%, #0a2f7a 54%, #061a3f 100%);
  color: #fff;
}

.article-hero .article-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.16);
  color: #bae6fd;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 1px;
}

.article-hero h1 {
  max-width: 900px;
  font-size: clamp(2.45rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.article-hero p {
  max-width: 760px;
  margin-top: 22px;
  color: #dbeafe;
  font-size: 1.12rem;
}

.article-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
  color: #bfdbfe;
  font-weight: 800;
}

.article-page {
  background: #f6f9ff;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: start;
  padding: 70px 0 96px;
}

.article-content {
  min-width: 0;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid #dbe6f7;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.08);
}

.article-content h2 {
  margin: 34px 0 14px;
  color: #071d49;
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
  letter-spacing: -0.035em;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content p,
.article-content li {
  color: #475569;
  font-size: 1rem;
  line-height: 1.85;
}

.article-content p + p {
  margin-top: 16px;
}

.article-content ul {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding-left: 22px;
}

.article-callout {
  margin: 30px 0;
  padding: 22px;
  border-left: 4px solid var(--emerald);
  border-radius: 16px;
  background: #eef5ff;
  color: #0a2f7a;
  font-weight: 800;
  line-height: 1.7;
}

.article-sidebar {
  min-width: 0;
  position: sticky;
  top: 104px;
  display: grid;
  gap: 16px;
}

.article-side-card {
  padding: 24px;
  border: 1px solid #dbe6f7;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 54px rgba(15, 23, 42, 0.06);
}

.article-side-card h3 {
  margin-bottom: 10px;
  color: #071d49;
}

.article-side-card p {
  color: #64748b;
  font-size: 0.92rem;
}

.article-side-card .btn {
  width: 100%;
  margin-top: 18px;
}

.article-nav {
  display: grid;
  gap: 10px;
}

.article-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  background: #eef5ff;
  color: #0a2f7a;
  font-weight: 850;
}

.article-nav a:hover {
  background: var(--emerald);
  color: #fff;
}

.blog-grid time {
  display: block;
  margin: 12px 0 18px;
  color: #98a2b3;
  font-size: 0.9rem;
}

.blog-grid h3 {
  margin-bottom: 14px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  color: #bfdbfe;
  font-size: 0.86rem;
  font-weight: 800;
}

.breadcrumbs a {
  color: #e0f2fe;
}

.breadcrumbs a:hover {
  color: #fff;
}

.blog-article-hero {
  padding-bottom: 116px;
}

.article-cover-wrap {
  margin-top: -68px;
  position: relative;
  z-index: 2;
}

.article-cover {
  width: 100%;
  height: clamp(280px, 43vw, 560px);
  object-fit: cover;
  border: 8px solid #fff;
  border-radius: 30px;
  box-shadow: 0 28px 74px rgba(7, 29, 73, 0.2);
}

.blog-detail-page .article-layout {
  padding-top: 48px;
}

.article-lead {
  margin-bottom: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid #dbe6f7;
}

.article-lead p {
  color: #233b66;
  font-size: 1.12rem;
  font-weight: 650;
  line-height: 1.85;
}

.article-content h3 {
  margin: 26px 0 10px;
  color: #0a2f7a;
  font-size: clamp(1.12rem, 1.7vw, 1.42rem);
  letter-spacing: -0.02em;
}

.article-subsection {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid #e1eaf8;
  border-radius: 18px;
  background: #fbfdff;
}

.article-subsection h3 {
  margin-top: 0;
}

.article-subsection p + p {
  margin-top: 14px;
}

.article-toc ol {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.article-toc li {
  counter-increment: toc;
}

.article-toc a {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 7px;
  color: #526785;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.45;
}

.article-toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: #0b5ed7;
  font-size: 0.72rem;
  font-weight: 900;
}

.article-toc a:hover {
  color: #0b5ed7;
}

.article-toc-mobile {
  display: none;
  margin-bottom: 28px;
  padding: 20px;
  border-radius: 16px;
  background: #eef5ff;
}

.article-inline-cta,
.blog-library-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-top: 38px;
  padding: 28px;
  border-radius: 22px;
  background: linear-gradient(135deg, #071d49, #0a2f7a);
  color: #fff;
}

.article-inline-cta span,
.blog-library-cta span {
  color: #7dd3fc;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 1px;
}

.article-inline-cta h2,
.blog-library-cta h2 {
  margin: 7px 0 0;
  color: #fff;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.article-inline-cta .btn,
.blog-library-cta .btn {
  flex: 0 0 auto;
}

.related-articles {
  border-top: 1px solid #dbe6f7;
  background: #fff;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.related-card {
  border: 1px solid #dbe6f7;
  border-radius: 20px;
  background: #f8fbff;
}

.related-card a {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  padding: 28px;
  color: inherit;
}

.related-card span,
.blog-list-meta span {
  color: #0b5ed7;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.related-card h3 {
  margin: 12px 0 26px;
  color: #071d49;
  font-size: 1.3rem;
}

.related-card em {
  margin-top: auto;
  color: #0b5ed7;
  font-style: normal;
  font-weight: 900;
}

.blog-index-hero {
  padding-bottom: 92px;
}

.blog-listing {
  padding-top: 64px;
}

.blog-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.blog-list-card {
  overflow: hidden;
  border: 1px solid #dbe6f7;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 46px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.blog-list-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 58px rgba(11, 94, 215, 0.12);
}

.blog-list-cover {
  display: block;
  aspect-ratio: 16 / 8.7;
  overflow: hidden;
  background: #dbeafe;
}

.blog-list-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.blog-list-card:hover .blog-list-cover img {
  transform: scale(1.035);
}

.blog-list-body {
  padding: 26px;
}

.blog-list-meta,
.blog-list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.blog-list-meta time,
.blog-list-footer span {
  color: #8291a9;
  font-size: 0.86rem;
  font-weight: 750;
}

.blog-list-body h2 {
  margin: 14px 0 12px;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.22;
}

.blog-list-body h2 a {
  color: #071d49;
}

.blog-list-body p {
  color: #5c6f8b;
  line-height: 1.75;
}

.blog-list-footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e4ebf6;
}

.blog-list-footer a {
  color: #0b5ed7;
  font-weight: 900;
}

.blog-library-cta {
  margin-top: 38px;
}

.blog-library-cta p {
  margin-top: 8px;
  color: #cfe2ff;
}

.process {
  background: #fff;
}

.process-list {
  display: grid;
  gap: 16px;
}

.process-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.process-list i {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--emerald-soft);
  color: var(--emerald);
  font-size: 1.25rem;
}

.reference-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
}

.reference-heading .section-heading p {
  max-width: 650px;
}

.reference-summary {
  min-width: 290px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  align-items: center;
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.reference-summary > strong {
  grid-row: 1 / 3;
  color: var(--ink);
  font-size: 2.5rem;
  line-height: 1;
}

.reference-stars {
  display: inline-flex;
  gap: 3px;
  color: #f5a623;
  font-size: 0.78rem;
}

.reference-summary small {
  color: var(--muted);
  font-size: 0.78rem;
}

.reference-summary a {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  color: var(--emerald);
  font-size: 0.82rem;
  font-weight: 900;
}

.reference-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 42px 0 18px;
  color: #344054;
  font-size: 0.82rem;
  font-weight: 900;
}

.reference-controls {
  display: flex;
  gap: 8px;
}

.reference-controls button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.reference-controls button:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

.reference-slider {
  --reference-gap: 18px;
  --reference-width: calc((100% - (var(--reference-gap) * 2)) / 3);
  display: flex;
  gap: var(--reference-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.reference-slider::-webkit-scrollbar {
  display: none;
}

.reference-card {
  flex: 0 0 var(--reference-width);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  scroll-snap-align: start;
}

.reference-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reference-card time {
  color: var(--muted);
  font-size: 0.75rem;
}

.reference-card > p {
  margin: 24px 0 28px;
  color: #344054;
  line-height: 1.7;
}

.reference-card footer {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin-top: auto;
}

.reference-card footer > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--emerald-soft);
  color: var(--emerald-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.reference-card footer strong,
.reference-card footer small {
  display: block;
}

.reference-card footer strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.85rem;
}

.reference-card footer small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
}

.reference-card footer > i {
  color: var(--emerald);
}

.partners .section-heading p {
  max-width: 680px;
  margin-inline: auto;
}

.partner-marquee {
  --partner-gap: 20px;
  position: relative;
  width: 100%;
  margin-top: 42px;
  overflow: hidden;
  padding-block: 8px 18px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}

.partner-track {
  display: flex;
  width: max-content;
  animation: partner-marquee 34s linear infinite;
  will-change: transform;
}

.partner-group {
  display: flex;
  flex-shrink: 0;
  gap: var(--partner-gap);
  padding-right: var(--partner-gap);
}

.partner-item {
  display: grid;
  width: clamp(210px, 20vw, 280px);
  height: 142px;
  flex: 0 0 auto;
  place-items: center;
  padding: 24px 30px;
  border: 1px solid rgba(8, 70, 54, .1);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(5, 54, 42, .07);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.partner-item:hover,
.partner-item:focus-within {
  transform: translateY(-5px);
  border-color: rgba(8, 148, 110, .32);
  box-shadow: 0 18px 38px rgba(5, 54, 42, .12);
}

.partner-item img {
  display: block;
  width: 100%;
  height: 88px;
  object-fit: contain;
}

.partner-item-dark {
  background: #142235;
}

.partner-item:nth-child(7n + 1) img { height: 100px; }
.partner-item:nth-child(7n + 2) img { transform: scale(1.45); }
.partner-item:nth-child(7n + 4) img { height: 64px; }

.partner-marquee:hover .partner-track,
.partner-marquee:focus-within .partner-track {
  animation-play-state: paused;
}

@keyframes partner-marquee {
  to { transform: translateX(-50%); }
}

.contact {
  background: var(--emerald-dark);
  color: #fff;
  overflow: hidden;
}

.contact-grid {
  grid-template-columns: minmax(0, 1fr) 240px minmax(0, 1fr);
  gap: 34px;
}

.contact-brand {
  display: grid;
  place-items: center;
  align-self: center;
}

.contact-brand img {
  width: min(100%, 230px);
  aspect-ratio: 1;
  object-fit: contain;
  mix-blend-mode: screen;
  opacity: 0.84;
  filter: contrast(1.12);
}

.contact .section-heading h2,
.contact .section-heading p {
  color: #fff;
}

.contact .section-heading p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.contact-list a,
.contact-list span {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 14px 16px;
  outline: 0;
}

.contact-form textarea {
  min-height: 128px;
  resize: vertical;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.contact-form-status {
  min-height: 22px;
  margin: 0;
  color: #fecaca;
  font-size: 0.88rem;
  font-weight: 700;
}

.contact-form-status.success {
  color: #a7f3d0;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #38bdf8;
}

.site-footer {
  background: #061a3f;
  color: #fff;
  padding: 54px 0 24px;
}

.footer-grid {
  justify-content: space-between;
  gap: 28px;
}

.site-footer .footer-brand .brand-mark {
  width: 250px;
  height: 112px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.site-footer .footer-brand .brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.site-footer p {
  max-width: 360px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  gap: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  flex-wrap: wrap;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

.admin-login-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.72rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 0.2s ease;
}

.admin-login-link:hover,
.admin-login-link:focus-visible {
  color: rgba(255, 255, 255, 0.82);
}

.admin-login-link i {
  font-size: 0.62rem;
}

.whatsapp-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1002;
}

.whatsapp-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-size: 1.65rem;
  box-shadow: 0 18px 44px rgba(37, 211, 102, 0.38);
  cursor: pointer;
}

.whatsapp-content {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: min(320px, calc(100vw - 40px));
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.whatsapp-widget.active .whatsapp-content {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.whatsapp-header,
.whatsapp-btn {
  background: #25d366;
  color: #fff;
}

.whatsapp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-weight: 900;
}

.whatsapp-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
}

.whatsapp-body {
  padding: 18px;
  color: var(--muted);
}

.whatsapp-btn {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  font-weight: 900;
}

@media (max-width: 1080px) {
  .main-nav ul {
    gap: 20px;
  }

  .services-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-blog-carousel.is-marquee .home-blog-slide {
    width: calc((var(--home-blog-width) - 22px) / 2);
  }

  .timeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solution-support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solutions-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 36px;
  }

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

  .portfolio-stage,
  .portfolio-panel {
    min-height: 420px;
  }

  .reference-slider {
    --reference-width: calc((100% - var(--reference-gap)) / 2);
  }

}

@media (max-width: 900px) {
  .hero h1 {
    font-size: clamp(2rem, 5.2vw, 2.45rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-heading h2 {
    font-size: clamp(1.9rem, 5vw, 2.35rem);
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 32px, 1180px);
  }

  .home-blog-carousel {
    --home-blog-width: calc(100vw - 32px);
  }

  .section-pad {
    padding: 72px 0;
  }

  .header-cta {
    display: none;
  }

  .hamburger {
    display: flex;
    margin-left: auto;
  }

  .header-content {
    gap: 10px;
  }

  .language-switcher {
    margin-left: 0;
  }

  .main-nav {
    position: fixed;
    top: 68px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    display: grid;
    gap: 0;
  }

  .main-nav a {
    display: block;
    padding: 13px 12px;
  }

  .hero {
    min-height: 660px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 10vw, 4rem);
  }

  .about-grid,
  .process-grid,
  .contact-grid,
  .article-layout,
  .section-heading.split {
    grid-template-columns: 1fr;
    display: grid;
  }

  .section-heading.split {
    align-items: start;
  }

  .about-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-brand img {
    width: 190px;
  }

  .reference-heading {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .reference-summary {
    width: fit-content;
    padding-left: 0;
    border-left: 0;
  }

  .portfolio-heading {
    gap: 16px;
  }

  .portfolio-stage,
  .portfolio-panel {
    min-height: auto;
  }

  .portfolio-stage {
    min-height: 380px;
  }

  .portfolio-main-card {
    inset: 0 0 58px 0;
  }

  .portfolio-detail-card {
    width: min(54%, 280px);
  }

  .portfolio-panel h3 {
    font-size: clamp(1.9rem, 8vw, 3.2rem);
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .home-blog-carousel {
    --home-blog-width: calc(100vw - 28px);
  }

  .site-header .brand-mark {
    width: 112px;
    height: 38px;
    padding: 0;
    border-radius: 0;
  }

  .site-header .brand-mark img {
    width: 100%;
    height: 100%;
    transform: translateY(-12px);
  }

  .services-grid,
  .timeline-grid,
  .solution-support-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .home-blog-actions {
    width: 100%;
    justify-content: space-between;
  }

  .home-blog-carousel.is-marquee .home-blog-slide {
    width: var(--home-blog-width);
  }

  .home-blog-card-body {
    min-height: 208px;
    padding: 14px 16px 16px;
  }

  .blog-list-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .article-toc-mobile {
    display: block;
  }

  .article-sidebar .article-toc {
    display: none;
  }

  .article-inline-cta,
  .blog-library-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .article-inline-cta .btn,
  .blog-library-cta .btn {
    width: 100%;
  }

  .article-cover {
    height: 240px;
    border-width: 5px;
    border-radius: 22px;
  }

  .article-subsection {
    padding: 19px;
  }

  .solution-support-grid {
    gap: 24px;
  }

  .hero {
    min-height: 660px;
  }

  .hero-content {
    padding-top: 54px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(1.72rem, 7.2vw, 2.12rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .hero-title-line {
    display: block;
  }

  .hero p {
    max-width: min(100%, 270px);
    font-size: 0.94rem;
  }

  .section-heading h2 {
    max-width: 100%;
    font-size: clamp(1.76rem, 7vw, 2.16rem);
    line-height: 1.12;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .section-heading p {
    font-size: 0.98rem;
  }

  .solutions-cta {
    margin-top: 36px;
    padding: 28px;
    border-radius: 18px;
  }

  .solutions-cta-btn {
    width: 100%;
  }

  .reference-slider {
    --reference-width: calc(100vw - 64px);
  }

  .reference-toolbar > span {
    max-width: 190px;
  }

  .partner-marquee {
    --partner-gap: 14px;
    margin-top: 32px;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  }

  .partner-item {
    width: 210px;
    height: 118px;
    padding: 18px 24px;
  }

  .partner-item img,
  .partner-item:nth-child(7n + 1) img {
    height: 70px;
  }

  .portfolio-showcase {
    gap: 18px;
  }

  .portfolio-stage {
    min-height: 320px;
  }

  .portfolio-main-card {
    inset: 0 0 62px 0;
    border-radius: 22px;
    transform: none;
  }

  .portfolio-detail-card {
    width: 60%;
    height: 124px;
    border-radius: 18px;
    transform: none;
  }

  .portfolio-panel {
    padding: 22px;
    border-radius: 22px;
  }

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

  .portfolio-meta div {
    min-height: auto;
  }

  .portfolio-thumb {
    flex-basis: 158px;
    height: 108px;
  }

  .article-hero {
    padding: 126px 0 58px;
  }

  .article-layout {
    padding: 46px 0 72px;
  }

  .article-sidebar {
    position: static;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn,
  .hero-actions a {
    width: 100%;
  }

  .service-card,
  .blog-grid article,
  .contact-form {
    padding: 22px;
  }

  .footer-grid,
  .footer-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-blog-carousel.is-marquee .home-blog-track {
    animation: none;
    transform: none;
  }

  .home-blog-carousel.is-marquee .home-blog-slide.is-clone {
    display: none;
  }

  .home-blog-viewport {
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .home-blog-image {
    transition: none;
  }
}

@media (max-width: 430px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .home-blog-carousel {
    --home-blog-width: calc(100vw - 24px);
  }

  .hero h1 {
    font-size: 1.78rem;
    line-height: 1.12;
    letter-spacing: -0.035em;
    word-break: normal;
    overflow-wrap: normal;
  }

  .hero p {
    font-size: 0.86rem;
    line-height: 1.55;
    max-width: 250px;
  }

  .hero-actions {
    width: 100%;
  }

  .section-heading h2 {
    font-size: 1.82rem;
    letter-spacing: -0.035em;
    overflow-wrap: normal;
  }

  .section-heading p {
    font-size: 0.92rem;
    line-height: 1.65;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-main-card,
  .portfolio-detail-card,
  .portfolio-panel,
  .portfolio-thumb,
  .portfolio-thumb img {
    transition-duration: .01ms;
  }

  .partner-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
    scrollbar-width: thin;
  }

  .partner-track {
    animation: none;
  }

  .portfolio-selector-shell {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
    scrollbar-width: thin;
  }

  .portfolio-selector {
    animation: none;
  }

  .partner-group[aria-hidden="true"] {
    display: none;
  }

  .partner-item {
    transition-duration: .01ms;
  }
}
