/* Mashreq NEO case study. Shared pieces: case-study.css, case-contact.css. */

:root {
  --accent: #ff6a00;
  --cs-ink: #15110f;
  --cs-muted: #5f5650;
  --cs-faint: #8a8079;
  --cs-line: rgb(21 17 15 / 12%);
  --cs-bg: #faf7f3;
  --cs-dark: #15110f;
  --cf-dots: rgb(255 106 0 / 16%);
  --cf-glow: rgb(255 106 0 / 22%);
  --cf-wash-a: rgb(250 247 243 / 85%);
  --cf-wash-b: rgb(250 247 243 / 40%);
  --cf-shadow: rgb(80 30 0 / 25%);
  --cf-btn: #15110f;
  --cf-btn-fg: #faf7f3;
  --cf-chip-on-fg: #faf7f3;
  --cf-sent: #15110f;
  --cf-sent-fg: #ff6a00;
}

a:hover { color: var(--accent); }
.mq-head { column-gap: 64px; }
.cs-s--dark { color: #faf7f3; }
.cs-s--dark .cs-kicker { color: rgb(250 247 243 / 55%); }

/* ---------- hero ---------- */

.mq-hero { overflow: clip; padding-block: 96px 112px; background: #f4efe9; }
.mq-hero__art { position: absolute; top: 50%; right: 0; width: 54vw; max-width: none; height: auto; max-height: 100%; object-fit: contain; object-position: right center; transform: translateY(-50%); pointer-events: none; }
.mq-hero__grid { position: relative; }
.mq-hero__copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 26px; max-width: min(640px, 42vw); }
.mq-hero__logo { align-self: flex-start; width: auto; height: 40px; }
.mq-hero__title { font-weight: 600; font-size: clamp(36px, 3.8vw, 64px); line-height: 1.06; letter-spacing: -.035em; text-wrap: balance; }
.mq-hero__lead { max-width: 600px; }
.mq-hero__facts { display: flex; flex-direction: column; max-width: 600px; margin: 12px 0 0; }
.mq-hero__facts div { padding: 18px 0; border-top: 1px solid var(--cs-line); }
.mq-hero__facts dt { margin-bottom: 4px; font-weight: 600; font-size: 18px; color: #e85a00; }
.mq-hero__facts dd { margin: 0; font-size: 15px; color: #3d3530; }

/* ---------- overview ---------- */

.mq-overview { display: flex; align-items: flex-end; min-height: 100vh; overflow: clip; }
.mq-overview__media { position: absolute; inset: 0; overflow: hidden; }
.mq-overview__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(21 17 15 / 25%) 0%, rgb(21 17 15 / 35%) 40%, rgb(21 17 15 / 92%) 100%); }
.mq-overview .cs-kicker { color: rgb(250 247 243 / 70%); }
.mq-overview__title { font-weight: 600; font-size: clamp(34px, 4vw, 68px); line-height: 1.02; letter-spacing: -.04em; color: var(--white); text-wrap: balance; }
.mq-overview__text { display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.65; color: rgb(255 255 255 / 88%); }

/* ---------- requirements ---------- */

.mq-req { overflow: clip; background: #f2ece5; }
.mq-req__inner { z-index: 1; }
.mq-req__head { margin-bottom: 48px; }
.mq-req__grid { gap: 32px 56px; align-items: start; }
.mq-acc { display: flex; flex-direction: column; gap: 10px; }
.mq-acc__item { padding: 22px 24px; border-radius: 18px; background: var(--white); box-shadow: 0 0 0 1px rgb(21 17 15 / 6%); transition: background-color .3s ease, color .3s ease; }
.mq-acc__item h3 { font-weight: 600; font-size: 17px; }
.mq-acc__item .cs-acc__icon { background: #f2ece5; }
.mq-acc__item p { max-width: 520px; padding-top: 12px; font-size: 15px; line-height: 1.6; opacity: .85; }
.mq-acc__item.is-open { background: #15110f; color: #faf7f3; }
.mq-acc__item.is-open .cs-acc__icon { background: var(--accent); }
.mq-req__art { display: flex; align-items: center; min-width: 0; margin: 0; }
.mq-req__art img { width: 100%; }
.mq-req__mark { position: absolute; right: 0; bottom: -.18em; left: 0; font-weight: 700; font-size: clamp(90px, 16vw, 280px); line-height: 1; letter-spacing: -.05em; text-align: center; color: rgb(255 106 0 / 7%); pointer-events: none; }

/* ---------- challenges + solution ---------- */

.mq-cs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.mq-card { display: flex; flex-direction: column; gap: 20px; padding: clamp(28px, 3.4vw, 52px); border-radius: 28px; }
.mq-card .cs-kicker { margin-bottom: 16px; }
.mq-card--challenge { background: #1f1915; }
.mq-card--solution { gap: 0; background: linear-gradient(150deg, #ffb000 0%, #ff6a00 55%, #e8432a 100%); color: #15110f; }
.mq-card--solution .cs-kicker { color: rgb(21 17 15 / 65%); }
.mq-card__title { font-weight: 600; font-size: clamp(28px, 2.6vw, 42px); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.mq-card--solution .mq-card__title { margin-bottom: 14px; }
.mq-card__text { max-width: 520px; font-size: 16px; line-height: 1.6; color: rgb(250 247 243 / 68%); }
.mq-card--solution .mq-card__text { color: rgb(21 17 15 / 80%); }
.mq-points { display: flex; flex-direction: column; margin-top: 12px; }
.mq-points li { display: flex; gap: 14px; align-items: baseline; padding: 18px 0; border-top: 1px solid rgb(250 247 243 / 12%); font-size: 16px; line-height: 1.55; color: rgb(250 247 243 / 88%); }
.mq-points li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }
.mq-cs__side { display: flex; flex-direction: column; gap: 20px; }
.mq-products { display: grid; flex: 1; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.mq-product { display: flex; flex-direction: column; overflow: clip; border: 1px solid rgb(250 247 243 / 14%); border-radius: 24px; }
.mq-product__copy { padding: 24px 24px 18px; }
.mq-product h3 { margin-bottom: 8px; font-weight: 600; font-size: 19px; }
.mq-product p { font-size: 14px; line-height: 1.55; color: rgb(250 247 243 / 65%); }
.mq-product img { width: calc(100% - 24px); margin: auto 0 0 24px; border-radius: 12px 0 0; }
.mq-cs__note { max-width: 900px; margin: 48px auto 0; font-size: 16px; line-height: 1.65; text-align: center; color: rgb(250 247 243 / 68%); }

/* ---------- key features ---------- */

.mq-features { overflow-x: clip; }
.mq-features__inner { display: flex; flex-direction: column; gap: clamp(56px, 6vw, 96px); }
.mq-features__head { max-width: 820px; margin: 0 auto; text-align: center; }
.mq-features__head .cs-h2 { margin-bottom: 16px; }
.mq-prod { display: grid; gap: clamp(24px, 3vw, 48px); align-items: center; overflow: clip; border-radius: 32px; }
.mq-prod--exec { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); padding: clamp(28px, 4vw, 72px) 0 clamp(28px, 4vw, 72px) clamp(28px, 4vw, 72px); background: #efedea; }
.mq-prod--gpt { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 4vw, 72px); padding: clamp(28px, 4vw, 72px); background: #000; color: #faf7f3; }
.mq-prod__copy { display: flex; flex-direction: column; gap: 16px; }
.mq-prod__tag { width: fit-content; padding: 6px 14px; border-radius: 999px; background: var(--accent); color: var(--white); font-weight: 600; font-size: 12px; letter-spacing: 1px; }
.mq-prod__tag--light { background: #faf7f3; color: #15110f; }
.mq-prod__title { font-weight: 600; font-size: clamp(24px, 2.2vw, 36px); line-height: 1.12; letter-spacing: -.02em; }
.mq-prod__lead { max-width: 520px; font-size: 16px; line-height: 1.65; color: var(--cs-muted); }
.mq-prod--gpt .mq-prod__lead { color: rgb(250 247 243 / 70%); }
.mq-prod__art { position: relative; min-width: 0; margin: calc(-1 * clamp(28px, 4vw, 72px)) 0; }
.mq-prod__art img { width: 100%; }
.mq-prod__gpt-art { position: relative; align-self: center; aspect-ratio: 1420 / 956; margin: 0 0 0 calc(-1 * clamp(28px, 4vw, 72px)); overflow: hidden; }
.mq-prod__gpt-art img { position: absolute; top: 0; left: 0; width: auto; max-width: none; height: 100%; mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%); }
.mq-prod__gpt-art::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 22%; background: linear-gradient(90deg, transparent, #000); }
.mq-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 32px; margin-top: 8px; }
.mq-feats li { display: flex; flex-direction: column; gap: 4px; padding: 16px 0 16px 20px; border-top: 1px solid rgb(21 17 15 / 10%); position: relative; }
.mq-feats li::before { content: ''; position: absolute; top: 24px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.mq-feats h4 { font-weight: 600; font-size: 16px; }
.mq-feats p { font-size: 14px; line-height: 1.55; color: var(--cs-muted); }
.mq-prod--gpt .mq-feats li { border-color: rgb(250 247 243 / 12%); }
.mq-prod--gpt .mq-feats p { color: rgb(250 247 243 / 65%); }

/* ---------- process, tech, impact ---------- */

.mq-process { display: flex; align-items: flex-end; overflow: clip; padding-top: max(26vw, 290px); }
.mq-process__art { position: absolute; top: 0; left: 50%; width: max(100%, 1100px); max-width: none; height: auto; transform: translateX(-50%); pointer-events: none; }
.mq-process__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, transparent 22%, rgb(21 17 15 / 90%) 46%, #15110f 60%); }
.mq-process__inner { display: flex; flex-direction: column; gap: 40px; text-shadow: 0 2px 16px rgb(0 0 0 / 45%); }
.mq-process .cs-kicker { color: rgb(250 247 243 / 75%); }
.mq-process .cs-lead { color: rgb(255 255 255 / 85%); }
.mq-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mq-steps li { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 20px; background: rgb(21 17 15 / 50%); box-shadow: inset 0 0 0 1px rgb(250 247 243 / 14%); backdrop-filter: blur(10px); }
.mq-steps h3 { font-weight: 600; font-size: 17px; }
.mq-steps p { font-size: 14px; line-height: 1.55; color: rgb(250 247 243 / 75%); }
.mq-tech { background: #f2ece5; }
.mq-tech__rows { display: flex; flex-direction: column; gap: 16px; }
.mq-tech .cs-tool { box-shadow: 0 18px 40px -30px rgb(80 30 0 / 35%), 0 0 0 1px rgb(21 17 15 / 5%); }
.mq-tech .cs-tool img { width: 36px; height: 36px; }
.mq-impact { overflow: clip; }
.mq-impact::before { content: ''; position: absolute; top: -20%; right: -10%; width: 60%; height: 80%; background: radial-gradient(closest-side, rgb(255 106 0 / 20%), transparent); pointer-events: none; }
.mq-impact__grid { gap: 40px 64px; align-items: stretch; }
.mq-impact__copy { display: flex; flex-direction: column; gap: 32px; }
.mq-impact__title { margin-bottom: 16px; }
.mq-impact__points,
.mq-impact__points li { border-color: rgb(250 247 243 / 12%); }
.mq-impact__points li::before { background: var(--accent); }

.mq-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 20px;
  min-height: 420px;
  overflow: clip;
  padding: clamp(28px, 3.4vw, 56px);
  border-radius: 28px;
  background: radial-gradient(rgb(255 255 255 / 20%) 1.2px, transparent 1.3px) 0 0 / 22px 22px, linear-gradient(150deg, #ffb000 0%, #ff6a00 50%, #e8432a 100%);
  color: #15110f;
}
.mq-cta__art { position: absolute; top: -14%; right: -12%; width: 62%; aspect-ratio: 1; object-fit: contain; opacity: .9; pointer-events: none; }
.mq-cta__title { position: relative; max-width: 440px; font-weight: 600; font-size: clamp(28px, 2.8vw, 46px); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.mq-cta__text { position: relative; max-width: 420px; font-size: 16px; line-height: 1.6; color: rgb(21 17 15 / 82%); }

@media (max-width: 1100px) {
  .mq-hero__art { position: relative; top: auto; width: calc(100% + var(--gutter)); max-height: none; margin: 24px calc(-1 * var(--gutter)) 0 0; transform: none; }
  .mq-hero { display: flex; flex-direction: column-reverse; }
  .mq-hero__copy { max-width: none; }
  .mq-cs { grid-template-columns: 1fr; }
  .mq-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .mq-prod--exec,
  .mq-prod--gpt { grid-template-columns: 1fr; }
  .mq-prod--exec { padding-right: clamp(28px, 4vw, 72px); }
  .mq-prod__art { margin: 0; }
}

@media (max-width: 720px) {
  .mq-hero { padding-block: 64px; }
  .mq-steps { grid-template-columns: 1fr; }

  /* The copy covers most of the photo on a phone, so the shade darkens early. */
  .mq-overview__shade { background: linear-gradient(180deg, rgb(21 17 15 / 30%) 0%, rgb(21 17 15 / 88%) 28%, #15110f 50%); }
  .mq-req__mark { font-size: 21vw; }
}
