/* Design details taken from the AI-Studio mockups (assets/aistudio): headline font, Approach timeline,
   photo banners, light Insights fade, footer wave. Loaded after art.css, before motion/responsive. */

:root { --font-display: 'Montserrat', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif; }

/* ---- Section headlines: lighter, wider Montserrat like the mockups (the hero keeps Poppins) ---- */
h2,
.section-headline-light,
.section-headline-dark,
.bottom-banner-dark h3,
.contact-title,
.legal-section h2 { font-family: var(--font-display); }

.section-headline-light,
.section-headline-dark { font-weight: 500; letter-spacing: -0.03em; }

@media (min-width: 1024px) {
  .section-headline-light { font-size: 58px; }
  .section-headline-dark { font-size: 56px; }
}

@media (min-width: 1280px) {
  .section-headline-light { font-size: 62px; }
  .section-headline-dark { font-size: 60px; }
}

/* ---- Dark banners: photo / earth strip fading into the banner ---- */
.banner-img {
  position: absolute;
  top: 0;
  height: 100%;
  width: min(34%, 520px);
  filter: brightness(0.85);
  max-width: none;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 60%);
  mask-image: linear-gradient(90deg, transparent 0, #000 60%);
}

.banner-r { right: 0; }
.banner-l { left: 0; }
/* a flipped image keeps its mask in the image's own space, so the fade ends up on the correct side */
.banner-flip { transform: scaleX(-1); }
.banner-wide { width: min(52%, 800px); }
.banner-wave { mix-blend-mode: screen; opacity: 0.9; object-position: right bottom; }

@media (max-width: 1023px) {
  .banner-img { width: 100%; opacity: 0.3; -webkit-mask-image: none; mask-image: none; }
  .banner-wide { width: min(52%, 800px); }
.banner-wave { opacity: 0.45; }
}

[dir='rtl'] .banner-r { right: auto; left: 0; transform: scaleX(-1); }
[dir='rtl'] .banner-l { left: auto; right: 0; transform: none; }

/* ---- Insights: dark photo header fading to a light band behind the article cards ---- */
.insights-bg {
  background: #020914 !important;
}

@media (max-width: 1023px) {
  .insights-bg { background: #020914 !important; }
}

/* ---- Footer: dotted wave along the bottom edge ---- */
.footer-glow::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 170px;
  background: url('../assets/photos/wave.jpg') center bottom / cover no-repeat;
  mix-blend-mode: screen;
  opacity: 0.85;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 50%);
  mask-image: linear-gradient(180deg, transparent 0, #000 50%);
}

/* ---- Approach: horizontal timeline (numbers, ringed icons, connecting arrows) ---- */
.timeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2.75rem;
}

.tl-step { padding: 0 1.6rem 0 0; min-width: 0; }
.tl-step + .tl-step { padding-left: 1.75rem; border-left: 1px solid rgba(255, 255, 255, 0.1); }
.tl-step:last-child { padding-right: 0; }

.tl-head { display: flex; align-items: center; gap: 0.9rem; min-height: 4rem; margin-left: -0.15rem; }

.tl-num {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.3vw, 42px);
  font-weight: 300;
  line-height: 1;
  color: rgba(255, 255, 255, 0.42);
}

.tl-icon {
  position: relative;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: radial-gradient(circle, #072648, #04152b);
  box-shadow: 0 0 22px rgba(0, 170, 255, 0.28);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.tl-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: center; animation: tlSpin 14s linear infinite; }
.tl-glyph { position: relative; width: 1.45rem; height: 1.45rem; }
.tl-step:hover .tl-icon { box-shadow: 0 0 30px rgba(0, 210, 255, 0.5); transform: scale(1.06); }

@keyframes tlSpin { to { transform: rotate(360deg); } }

.tl-line {
  position: relative;
  flex: 1;
  min-width: 1rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 200, 255, 0.75), rgba(0, 200, 255, 0.28));
}

.tl-step:last-child .tl-line { background: linear-gradient(90deg, rgba(0, 200, 255, 0.55), transparent); }

.tl-arrow {
  position: absolute;
  right: 0;
  top: 50%;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  translate: 0 -50%;
  border-radius: 50%;
  border: 1px solid rgba(0, 200, 255, 0.7);
  background: #020914;
  color: #d8f3ff;
}

.tl-arrow svg { width: 0.8rem; height: 0.8rem; }
.tl-step:last-child .tl-arrow { display: none; }

.tl-title { margin-top: 1.5rem; font-family: var(--font-display); font-size: 21px; font-weight: 500; color: #fff; }
.tl-bar { width: 1.9rem; height: 2px; margin: 0.65rem 0 1rem; background: var(--cyan-primary); }
.tl-desc { font-size: 13.5px; line-height: 1.65; color: #cbd5e1; }

.tl-list { list-style: none; margin-top: 1.1rem; }

.tl-list li {
  position: relative;
  padding-left: 1.05rem;
  font-size: 13px;
  line-height: 2;
  color: #e2e8f0;
}

.tl-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan-accent);
}

@media (max-width: 1023px) {
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 1.5rem; }
  .tl-step,
  .tl-step + .tl-step,
  .tl-step:last-child { padding: 0; border-left: 0; }
  .tl-step:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid rgba(255, 255, 255, 0.1); }
}

@media (max-width: 639px) {
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tl-step,
  .tl-step:nth-child(even) { padding: 1.5rem 0; border-left: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .tl-step:last-child { border-bottom: 0; }
  .tl-line { background: linear-gradient(90deg, rgba(0, 200, 255, 0.6), transparent) !important; }
  .tl-arrow { display: none; }
}

[dir='rtl'] .tl-step { padding: 0 0 0 1.6rem; }
[dir='rtl'] .tl-step + .tl-step { padding-right: 1.75rem; border-left: 0; border-right: 1px solid rgba(255, 255, 255, 0.1); }
[dir='rtl'] .tl-line { transform: scaleX(-1); }
[dir='rtl'] .tl-arrow { right: auto; left: 0; transform: scaleX(-1); }
[dir='rtl'] .tl-list li { padding-left: 0; padding-right: 1.05rem; }
[dir='rtl'] .tl-list li::before { left: auto; right: 0; }

@media (prefers-reduced-motion: reduce) { .tl-ring { animation: none; } }

/* ---- Section photos, laid out like the mockups ----
   Photo fills the right side and the full height of the section. The left edge melts into the
   background with a long, eased fade (no hard line); the bottom only fades in its last few percent. */
.bg-photo {
  top: 0;
  right: 0;
  width: var(--pw, 62%);
  height: var(--ph, 100%);
  max-width: 1180px;
  object-fit: cover;
  object-position: var(--pp, 50% 50%);
  filter: none;
  --m-x: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.04) 2%, rgba(0, 0, 0, 0.16) 5%, rgba(0, 0, 0, 0.36) 8%, rgba(0, 0, 0, 0.6) 11%, rgba(0, 0, 0, 0.8) 14%, rgba(0, 0, 0, 0.94) 17%, #000 20%);
  --m-y: linear-gradient(180deg, #000 0%, #000 var(--pb, 90%), transparent 100%);
  -webkit-mask-image: var(--m-x), var(--m-y);
  -webkit-mask-composite: source-in;
  mask-image: var(--m-x), var(--m-y);
  mask-composite: intersect;
}

#about .bg-photo { --pw: 52%; --ph: auto; --pb: 80%; }
#contact .bg-photo { --pw: 54%; --ph: auto; --pb: 74%; }
.contact-hero .bg-photo { --pw: 50%; --pb: 100%; }
#expertise .bg-photo { --pw: 54%; --ph: auto; --pb: 74%; }
#industries .bg-photo { --pw: 54%; --ph: auto; --pb: 74%; }
#solutions .bg-photo { --pw: 54%; --ph: auto; --pb: 72%; }
#approach .bg-photo { --pw: 54%; --ph: auto; --pb: 42%; }
#global-perspective .bg-photo { --pw: 52%; --ph: auto; --pb: 72%; }
#insights .bg-photo { --pw: 54%; --ph: auto; --pb: 72%; }

@media (max-width: 1023px) {
  .bg-photo,
  #about .bg-photo,
  #contact .bg-photo { --pw: 100%; --ph: 100%; --pb: 93%; --pf: 0%; opacity: 0.28; }
}

/* ---- Banner row (text | icon features | button), as in the Industries and Approach mockups ---- */
.banner-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem 2.5rem; }
.banner-copy { flex: 1 1 300px; max-width: 460px; }
.banner-btn { margin-inline-start: auto; }

@media (min-width: 1024px) { .banner-row { flex-wrap: nowrap; } }

.banner-feats { list-style: none; display: flex; align-items: stretch; }

.banner-feats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  width: 7.6rem;
  padding: 0.25rem 0.9rem;
  text-wrap: balance;
  text-align: center;
  font-size: 12px;
  line-height: 1.35;
  color: #e2e8f0;
}

.banner-feats li + li { border-inline-start: 1px solid rgba(0, 180, 255, 0.3); }
.banner-feats svg { transition: transform var(--transition-base); }
.banner-feats li:hover svg { transform: translateY(-3px); }

@media (max-width: 639px) {
  .banner-feats { width: 100%; }
  .banner-feats li { flex: 1; width: auto; min-width: 0; padding: 0.25rem 0.5rem; }
  .banner-btn { width: 100%; justify-content: center; margin-inline-start: 0; }
}

/* ---- Cards where the photo fills the whole card and the text sits on its dark lower part ---- */
.expertise-practice-card .card-photo-header,
.industry-card .card-photo-header,
.insight-article-card .card-photo-header {
  position: static;
  height: 9.5rem;
  display: flex;
  align-items: flex-end;
  padding: 0 1.25rem 0.35rem;
  background: none;
}

.insight-article-card .card-photo-header { height: 11rem; }

.expertise-practice-card .card-photo-header img,
.industry-card .card-photo-header img,
.insight-article-card .card-photo-header img {
  position: absolute;
  inset: 0;
  z-index: 0;
  height: 100%;
  object-position: center top;
  filter: none;
}

.expertise-practice-card .bottom-gradient,
.industry-card .bottom-gradient,
.insight-article-card .bottom-gradient {
  inset: 0;
  height: auto;
  z-index: 1;
  background: linear-gradient(180deg, rgba(3, 11, 23, 0) 0%, rgba(3, 11, 23, 0.12) 30%, rgba(3, 11, 23, 0.62) 48%, rgba(3, 11, 23, 0.9) 62%, #030b17 82%);
}

.expertise-practice-card .card-photo-header::after,
.industry-card .card-photo-header::after,
.insight-article-card .card-photo-header::after { z-index: 1; }

.expertise-practice-card .icon-badge-box,
.industry-card .icon-badge-box { position: relative; left: auto; bottom: auto; z-index: 2; }

/* ---- Side notes on light photos: no box, just a soft light halo behind the text (mockup) ---- */
.on-photo-light,
div.on-photo-light:not(.section-meta-right) {
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: radial-gradient(closest-side, rgba(248, 250, 252, 0.8), rgba(248, 250, 252, 0.45) 60%, rgba(248, 250, 252, 0));
}

/* Global stats over the globe: frosted dark panel so they read on the bright planet */
.global-stats {
  padding: 1.1rem 1.4rem 1.1rem 1.1rem;
  border-radius: 12px;
  background: rgba(2, 9, 20, 0.62);
  border: 1px solid rgba(0, 180, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.global-stats [class*='text-[8'] { font-size: 10px; color: #e2e8f0; }
.topic-vertical-list { text-shadow: 0 1px 10px rgba(2, 9, 20, 0.95), 0 0 2px rgba(2, 9, 20, 0.9); }

/* ---- Topic list over photos: small dark glass panel so the words always read ---- */
.topic-panel {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(2, 9, 20, 0.6);
  border: 1px solid rgba(0, 180, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.topic-panel .topic-vertical-list { font-size: 10px; color: #e2e8f0; text-shadow: none; }
.topic-panel > div[class*='w-[1px]'] { height: 6.5rem; }

/* ---- Between-section banners: calmer, more editorial ----
   image sits in its own zone (never under the text), muted colours, soft fade on every edge,
   a hairline light rule on top instead of a hard border, gentle depth in the background. */
.bottom-banner-dark {
  border-top: 0;
  background:
    radial-gradient(60% 140% at 50% 0%, rgba(0, 110, 200, 0.08), transparent 70%),
    linear-gradient(180deg, #030c1a 0%, #020914 100%);
  box-shadow: inset 0 18px 30px -24px rgba(0, 0, 0, 0.9);
}

.bottom-banner-dark::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.45) 30%, rgba(0, 200, 255, 0.45) 70%, transparent);
}

.banner-img {
  width: min(28%, 470px);
  filter: brightness(0.78) saturate(0.82) contrast(1.05);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 55%), linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 55%), linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%);
  mask-composite: intersect;
}

.banner-wide { width: min(44%, 760px); }
.banner-wave { filter: none; }

@media (min-width: 1024px) { .banner-offset { padding-inline-start: 25%; } }

@media (max-width: 1023px) {
  .banner-img { width: 100%; opacity: 0.22; -webkit-mask-image: none; mask-image: none; }
}

/* ---- Section photos: never larger than they look good ---- */
@media (min-width: 1024px) { .banner-copy { min-width: 360px; } .banner-copy h3 span { white-space: nowrap; } }

/* side note next to the headline: crisp glass card, no soft white halo */
.side-note {
  padding: 1rem 1.15rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(8, 20, 40, 0.08);
}
