:root {
  --midnight: #0b132b;
  --navy: #111c36;
  --surface-dark: #101a33;
  --slate-copy: #64748b;
  --slate-light: #a8b4c8;
  --electric-blue: #2563eb;
}

/* Brand and global rhythm */
.section { padding-block: clamp(80px, 8vw, 120px); }
.home { --reference-blue: #0867ee; --reference-navy: #07142c; }
.home .header-inner { max-width: 100%; width: min(1240px, calc(100% - 48px)); }
.home .site-header { height: 86px; }
.home .header-inner { min-height: 86px; }
.home #primary-navigation { gap: 34px; }
.home #primary-navigation > .menu { gap: 22px; }
.home #primary-navigation > .menu > li > a { font-size: .68rem; text-transform: uppercase; letter-spacing: .03em; }
.home .header-cta { background: #101c33; border-radius: 2px; min-height: 40px; }
.home .site-header { background: #fff; border-bottom: 1px solid #e5eaf1; }
.home .site-header .brand, .home #primary-navigation > .menu > li > a { color: #101c33; }
.home .brand-logo-dark { display: block; }
.home .brand-logo-light { display: none; }
.home .site-header.is-scrolled { background: #fff; }
.section-heading { margin-bottom: clamp(40px, 5vw, 64px); }
.section-heading h2 { max-width: 760px; text-wrap: balance; }
.section-heading p:not(.eyebrow) { color: var(--slate-copy); }
.brand-image { width: 238px; height: 48px; overflow: visible; }
.brand-logo { width: 238px; height: auto; object-fit: contain; }
.site-footer .footer-logo { width: 238px; max-width: 238px; height: auto; }

/* Hero depth stays behind the content and uses no heavy effects. */
.hero {
  isolation: isolate;
  min-height: 520px;
  display: grid;
  align-items: center;
  padding-block: 64px 54px;
  color: #101c33;
  background:
    radial-gradient(70% 80% at 86% 50%, rgba(37, 99, 235, .10), transparent 72%),
    linear-gradient(135deg, #f8fafc 0%, #eef3f8 70%, #e7edf6 100%);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .20;
  background-image: linear-gradient(rgba(148, 163, 184, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to right, transparent 6%, black 70%, transparent 100%);
}
.hero h1 { max-width: 700px; font-size: clamp(3.1rem, 5.3vw, 5.6rem); line-height: .96; letter-spacing: -.065em; text-wrap: balance; color: #101c33; }
.hero h1 span { color: #2463eb; }
.hero-copy > p:not(.eyebrow) { max-width: 560px; color: #526176; font-size: 1.05rem; line-height: 1.5; }
.hero .eyebrow { color: #526176; margin-bottom: 16px; }
.hero-caption { border: 0; margin-top: 38px; padding-top: 0; font-weight: 700; text-transform: uppercase; color: #526176; }
.hero-grid { grid-template-columns: 1.08fr .92fr; gap: 12px; }
.hero .button, .hero .wp-block-button__link { background: #101c33; }
.hero .is-style-outline .wp-block-button__link { color: #101c33; border-color: #aeb9c7; background: transparent; }
.hero-art img { object-position: center; }
.hero-art { filter: drop-shadow(0 28px 70px rgba(0, 0, 0, .24)); }
.hero-art {
  aspect-ratio: 1.5 / 1;
  max-height: 430px;
  overflow: hidden;
  border-radius: 0;
  border: 0;
  background: transparent;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 58% center; transform: scale(1.015); }
.section-photo { overflow: hidden; border-radius: 10px; box-shadow: 0 24px 70px rgba(15,23,42,.12); }
.section-photo img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Trusted strip */
.trust-section {
  padding-block: 28px;
  border: 0;
  background: #fff;
  color: #101c33;
  overflow: hidden;
}
.trust-section .reference-trust { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 28px; }
.trust-section .reference-trust > .eyebrow { display: block; margin: 0; color: #526176; font-size: .62rem; line-height: 1.25; }
.trust-section .reference-trust .client-carousel { min-width: 0; }
.trust-section .client-controls { display: none; }
.trust-section .client-track { animation-duration: 28s; }
.trust-section .client-marquee { mask-image: none; }
.trust-section .client-name { color: #101c33; }
.trust-section .client-logo { filter: grayscale(1); }
.trust-section .section-heading { margin-bottom: 36px; }
.trust-section h2 { color: #101c33; }
.trust-section .section-heading p { color: #64748b; }
.client-marquee {
  overflow: hidden;
  width: 100%;
  padding-block: 10px;
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.client-carousel { position: relative; }
.client-controls { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 12px; }
.client-controls button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 4px;
  background: transparent;
  color: white;
  font-size: .78rem;
}
.client-controls button:hover { background: rgba(255,255,255,.12); }
.client-marquee.is-manual { overflow-x: auto; mask-image: none; scrollbar-width: thin; }
.client-marquee.is-manual .client-track { animation: none; transform: none; }
.client-track {
  display: flex;
  width: max-content;
  gap: 48px;
  overflow: visible;
  padding: 0;
  margin: 0;
  animation: infinity-marquee 34s linear infinite;
  will-change: transform;
}
.client-group {
  display: flex;
  align-items: center;
  gap: 48px;
  flex: none;
  list-style: none;
  padding: 0;
  margin: 0;
}
.client-track .client-group li { width: 190px; height: auto; flex: 0 0 190px; display: grid; place-items: center; padding: 0; border: 0; }
.client-logo { width: 190px; height: 32px; opacity: .65; transition: opacity .25s ease; }
.client-logo image { filter: grayscale(1); mix-blend-mode: multiply; }
.client-group li:hover .client-logo, .client-group li:focus-within .client-logo { opacity: 1; }
.client-name { color: rgba(255,255,255,.65); font: 650 .78rem/1.3 Manrope,sans-serif; text-align: center; }
.client-marquee:hover .client-track, .client-marquee:focus-within .client-track { animation-play-state: paused; }
@keyframes infinity-marquee { to { transform: translateX(calc(-50% - 24px)); } }

/* Service system */
.reference-services-section { min-height: 430px; padding-block: 70px; background: #091729; color: white; }
.reference-services-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: stretch; gap: 70px; min-height: 290px; }
.reference-services-copy { display: flex; flex-direction: column; justify-content: center; padding-right: 20px; }
.reference-services-copy h1 { max-width: 430px; margin: 16px 0; font-size: clamp(3.2rem,5vw,5.4rem); line-height: .92; color: white; }
.reference-services-copy p:last-child { max-width: 440px; color: #b7c2d3; }
.reference-services-panel { border-left: 1px solid rgba(255,255,255,.12); }
.reference-service-list { display: grid; }
.reference-service-row { display: grid; grid-template-columns: 42px 1fr 34px; align-items: center; min-height: 72px; border-bottom: 1px solid rgba(255,255,255,.10); }
.reference-service-row > .eyebrow { margin: 0; color: #55c4da; font-size: .66rem; }
.reference-service-row h3 { margin: 0 0 4px; color: white; font-size: 1rem; }
.reference-service-row p { margin: 0; color: #98a7bc; font-size: .72rem; }
.reference-service-link { color: white; text-decoration: none; text-align: right; }
.services-section { background: #0b132b; color: white; }
.services-section .section-heading h2 { color: white; }
.services-section .section-heading p { color: #aeb9c9; }
.service-grid { gap: 18px; border: 0; }
.service-card {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 34px;
  border: 1px solid #26324b;
  background: #101a33;
  color: white;
  border-radius: 10px;
  box-shadow: 0 1px 1px rgba(15, 23, 42, .02);
}
.service-card:hover { background: #151f38; border-color: #3a4a67; transform: translateY(-3px); box-shadow: 0 16px 44px rgba(0, 0, 0, .18); }
.service-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 28px;
  border-radius: 8px;
  background: rgba(37, 99, 235, .12);
  color: #2563eb;
}
.service-card > svg { display: none; }
.service-card h3, .service-card h3 a { margin-bottom: 14px; color: white; }
.service-card p { min-height: 0; color: #b7c2d3; }
.service-card .text-link { margin-top: auto; padding-top: 18px; }

/* A concise photographic view of the work, shared by old and newly seeded pages. */
.photo-story { margin-top: clamp(80px, 9vw, 120px); padding-top: clamp(72px, 8vw, 104px); border-top: 1px solid #dce5ef; }
.photo-story-heading { max-width: 760px; margin-bottom: 48px; }
.photo-story-heading h2 { font-size: clamp(2rem,3.5vw,3.15rem); text-wrap: balance; }
.photo-story-heading > p:last-child { max-width: 650px; color: var(--slate-copy); }
.photo-story-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.photo-card { overflow: hidden; background: white; border: 1px solid #e1e8f0; border-radius: 10px; }
.photo-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: #0b132b; }
.photo-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.photo-card:hover .photo-card-media img { transform: scale(1.035); }
.photo-card-copy { padding: 28px; }
.photo-card-copy .eyebrow { margin-bottom: 14px; }
.photo-card-copy h3 { margin-bottom: 12px; }
.photo-card-copy > p:last-child { margin-bottom: 0; color: var(--slate-copy); font-size: .88rem; }

/* Dark sections and clean cards */
.dark-section { background: #0b132b; }
.dark-section p { color: var(--slate-light); }
.reference-work-section { padding-block: 78px; }
.reference-work-section .section-heading { display: grid; grid-template-columns: 1fr 1.6fr; align-items: end; margin-bottom: 28px; }
.reference-work-section .section-heading .eyebrow { grid-column: 1/-1; }
.reference-work-section .section-heading h2 { margin: 0; font-size: clamp(2.2rem,4vw,4.3rem); }
.reference-work-section .section-heading p { margin: 0 0 8px; max-width: 520px; }
.reference-work-section .content-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.reference-work-section .content-card { border: 0; border-radius: 0; }
.reference-work-section .card-image { aspect-ratio: 16/8.8; }
.reference-work-section .card-body { position: absolute; z-index: 2; left: 0; bottom: 0; width: 100%; color: white; background: linear-gradient(transparent, rgba(7,20,44,.92)); }
.reference-work-section .content-card { position: relative; overflow: hidden; }
.reference-work-section .card-body h3, .reference-work-section .card-body h3 a { color: white; }
.reference-work-section .card-body p, .reference-work-section .card-body .eyebrow { color: #d9e2ef; }
.reference-process-section { padding-block: 78px; background: #f7f9fc; }
.reference-process-section > .wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: 55px; align-items: end; }
.reference-process-heading h2 { font-size: clamp(2.5rem,4.8vw,4.8rem); line-height: .95; }
.reference-process-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 20px; }
.reference-process-step { border-top: 1px solid #9caaba; padding-top: 18px; }
.reference-process-step .eyebrow { color: #0867ee; }
.reference-process-step h3 { font-size: .82rem; margin: 12px 0 8px; }
.reference-process-step p { font-size: .68rem; line-height: 1.6; color: #526176; }
.reference-cta-section { padding-block: 80px; background: #091729; background-image: linear-gradient(120deg, rgba(11,28,55,.92), rgba(7,20,44,.72)), url('../images/editorial/cloud-infrastructure.webp'); background-size: cover; background-position: center; color: white; }
.reference-cta-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
.reference-cta-inner h2 { margin: 0; font-size: clamp(3rem,5vw,5.2rem); line-height: .95; color: white; }
.reference-cta-copy { justify-self: end; max-width: 420px; }
.reference-cta-copy p { color: #c1cddd; }
.reference-cta-copy .wp-block-buttons { justify-content: flex-start; }
.reference-cta-copy .wp-block-button__link { background: white; color: #101c33; }
.content-card { border-color: #e2e8f0; border-radius: 10px; overflow: clip; box-shadow: none; }
.card-image { aspect-ratio: 16 / 9; }
.collection-link { margin-top: 32px; }
.home .section:has(.collection-empty) { display: none; }

/* Future editorial structure: clearly a placeholder, never fake published content. */
.placeholder-art { aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: linear-gradient(145deg, #e8f0fa, #f7fafc); }
.placeholder-art::before, .placeholder-art::after, .placeholder-art span {
  content: "";
  position: absolute;
  border: 1px solid rgba(37, 99, 235, .22);
  transform: rotate(35deg);
}
.placeholder-art::before { width: 46%; aspect-ratio: 1; left: 8%; top: 18%; }
.placeholder-art::after { width: 38%; aspect-ratio: 1; right: 5%; bottom: -12%; border-color: rgba(25, 185, 205, .26); }
.placeholder-art span { width: 20%; aspect-ratio: 1; left: 42%; top: 32%; background: rgba(37, 99, 235, .06); }
.placeholder-art-2 { background: linear-gradient(135deg, #eef2ff, #f8fafc); }
.placeholder-art-3 { background: linear-gradient(135deg, #e9f8f8, #f8fafc); }
.insight-placeholder-card .card-body p { margin-bottom: 0; }

/* Motion is progressive: content remains visible when JavaScript is unavailable. */
.reveal-ready { opacity: 0; transform: translateY(18px); }
.reveal-ready.is-visible { opacity: 1; transform: none; transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.service-grid .reveal-ready:nth-child(2), .photo-story-grid .reveal-ready:nth-child(2), .content-grid .reveal-ready:nth-child(2) { transition-delay: .08s; }
.service-grid .reveal-ready:nth-child(3), .photo-story-grid .reveal-ready:nth-child(3), .content-grid .reveal-ready:nth-child(3) { transition-delay: .16s; }

@media (max-width: 1100px) {
  .brand-image, .brand-logo { width: 210px; }
  .service-card { min-height: 310px; }
}
@media (max-width: 780px) {
  .section { padding-block: 80px; }
  .hero { min-height: auto; padding-block: 80px 56px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.65rem,12vw,4.4rem); }
  .hero-art { max-height: none; margin-top: 24px; }
  .reference-trust { grid-template-columns: 110px 1fr !important; }
  .reference-services-grid { grid-template-columns: 1fr; gap: 34px; }
  .reference-services-copy h1 { font-size: 3.4rem; }
  .reference-services-panel { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .reference-work-section .section-heading { grid-template-columns: 1fr; }
  .reference-work-section .content-grid { grid-template-columns: 1fr; }
  .reference-process-section > .wrap { grid-template-columns: 1fr; }
  .reference-process-grid { grid-template-columns: repeat(2,1fr); }
  .reference-cta-inner { grid-template-columns: 1fr; }
  .reference-cta-copy { justify-self: start; }
  .trust-section { padding-block: 64px; }
  .client-group, .client-track { gap: 32px; }
  .service-grid { gap: 14px; }
  .service-card { min-height: 0; }
  .photo-story-grid { grid-template-columns: 1fr; }
  .photo-card { display: grid; grid-template-columns: minmax(220px,.9fr) 1fr; }
  .photo-card-media { aspect-ratio: auto; min-height: 240px; }
}
@media (max-width: 480px) {
  .brand-image, .brand-logo { width: 178px; }
  .section { padding-block: 72px; }
  .service-card { padding: 28px; }
  .photo-card { display: block; }
  .photo-card-media { aspect-ratio: 16 / 10; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .client-track { animation: none; transform: none; }
  .client-marquee { overflow-x: auto; mask-image: none; }
  .client-controls { display: flex; }
  .client-group[aria-hidden="true"] { display: none; }
  .reveal-ready, .reveal-ready.is-visible { opacity: 1; transform: none; transition: none; }
  .photo-card-media img, .hero-art img { transform: none; transition: none; }
}
