/* Case study detail page. Layout follows the approved case study template (v0.1, 3 Nov 2026);
   side gutters and section rhythm come from design-system.css so edges line up with the header and footer. */

body.has-case-study-exact main { padding-top: 0 !important; }
body.has-case-study-exact .site-header.exact-header { position: sticky; }

.case-study-exact {
  --cs-line: #22315f;
  --cs-line-2: #1b2950;
  --cs-deep: #000922;
  --cs-card: #16204a;
  --cs-orange: #ef6c00;
  --cs-ease: cubic-bezier(.2,0,.2,1);
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: #00102f;
  color: #fff;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  line-height: normal;
}
.case-study-exact *, .case-study-exact *::before, .case-study-exact *::after { box-sizing: border-box; }
.case-study-exact a { color: #fff; text-decoration: none; }
.case-study-exact a:hover { color: var(--cs-orange); }
.case-study-exact :where(h1, h2, h3, p, blockquote, figure, ol, ul) { margin: 0; }
.case-study-exact ::selection { background: var(--cs-orange); color: #fff; }
.case-study-exact [data-arrow-glyph] { display: inline-block; transition: transform 180ms var(--cs-ease); }
.case-study-exact a:hover [data-arrow-glyph] { transform: translateX(8px); }
.case-study-exact .case-study-exact__back:hover [data-arrow-glyph] { transform: translateX(-8px); }

.case-study-exact__gradient, .case-study-exact__radial { position: absolute; inset: 0 0 auto; pointer-events: none; z-index: -1; }
.case-study-exact__gradient { height: 2000px; background: linear-gradient(180deg,#000e2a 0%,#001235 30%,#00102f 100%); }
.case-study-exact__radial { height: 1600px; background: radial-gradient(120% 60% at 50% 16%,rgba(21,101,192,.12) 0%,rgba(0,16,47,0) 68%); }
.case-study-exact > section { position: relative; z-index: 2; }

.case-study-exact__overline,
.case-study-exact__kicker,
.case-study-exact__chapter-number,
.case-study-exact__tech-label,
.case-study-exact__card small { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.case-study-exact__overline { display: block; font-size: 11px; color: rgba(255,255,255,.45); }

/* 01 Hero */
.case-study-exact__hero { height: 74vh; min-height: 620px; overflow: hidden; }
.case-study-exact__hero-media { position: absolute; inset: 0; }
.case-study-exact__hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.case-study-exact__hero-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg,rgba(0,9,34,.94) 0%,rgba(0,9,34,.55) 42%,rgba(0,16,47,.28) 100%); }
.case-study-exact__hero.is-without-image { height: auto; min-height: 520px; }
.case-study-exact__hero.is-without-image .case-study-exact__hero-shade { display: none; }
.case-study-exact__hero-inner { position: relative; z-index: 2; height: 100%; min-height: inherit; padding: 48px var(--section-pad-inline) 72px; display: flex; flex-direction: column; justify-content: space-between; gap: 64px; }
.case-study-exact__back { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,.75) !important; }
.case-study-exact__back:hover { color: #fff !important; }
.case-study-exact__kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; color: var(--cs-orange); }
.case-study-exact__kicker i { width: 6px; height: 6px; background: var(--cs-orange); }
.case-study-exact__kicker b { font-weight: inherit; }
.case-study-exact__kicker span { color: rgba(255,255,255,.5); }
.case-study-exact__hero h1 { margin-top: 20px; max-width: 960px; font-size: clamp(40px,5vw,68px); line-height: 1.08; font-weight: 400; letter-spacing: -.025em; overflow-wrap: anywhere; }
.case-study-exact__hero [data-hero-word] { display: block; overflow: hidden; padding-bottom: 6px; }
.case-study-exact__hero [data-hero-inner] { display: block; line-height: 1.16; }
.case-study-exact__summary { margin-top: 24px; max-width: 640px; font-size: 19px; line-height: 1.6; font-weight: 300; color: rgba(255,255,255,.75); text-wrap: pretty; }

/* Facts bar */
.case-study-exact__facts { background: var(--cs-deep); border-top: 1px solid var(--cs-line-2); border-bottom: 1px solid var(--cs-line-2); }
.case-study-exact__facts-grid { display: grid; grid-template-columns: repeat(var(--fact-count,3),minmax(0,1fr)); padding: 0 var(--section-pad-inline); }
.case-study-exact__facts-grid[style*="--fact-count:3"] { grid-template-columns: 1fr 1fr 1.6fr; }
.case-study-exact__fact { display: flex; flex-direction: column; gap: 12px; padding: 44px 40px; min-width: 0; }
.case-study-exact__fact:first-child { padding-left: 0; }
.case-study-exact__fact + .case-study-exact__fact { border-left: 1px solid var(--cs-line-2); }
.case-study-exact__fact-value { font-size: 20px; line-height: 1.4; }
.case-study-exact__fact > i { display: block; width: 24px; height: 2px; background: var(--cs-orange); }

/* 02 Body */
.case-study-exact__body { padding: 120px var(--section-pad-inline) 0; }
.case-study-exact__body-grid { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 96px; align-items: start; }
.case-study-exact__aside { position: sticky; top: 150px; display: flex; flex-direction: column; gap: 32px; }
.case-study-exact__toc, .case-study-exact__highlight { display: flex; flex-direction: column; padding-top: 20px; border-top: 1px solid var(--cs-line); }
.case-study-exact__toc { gap: 12px; }
.case-study-exact__toc .case-study-exact__overline { margin-bottom: 4px; }
.case-study-exact__toc a { display: flex; align-items: baseline; gap: 12px; font-size: 15px; color: rgba(255,255,255,.5); transition: color 160ms; }
.case-study-exact__toc a span { font-size: 11px; font-weight: 500; color: rgba(255,255,255,.4); transition: color 160ms; }
.case-study-exact__toc a:hover, .case-study-exact__toc a.is-on { color: #fff; }
.case-study-exact__toc a.is-on span { color: var(--cs-orange); }
.case-study-exact__highlight { gap: 8px; }
.case-study-exact__highlight strong { font-size: 16px; line-height: 1.4; font-weight: 400; }
.case-study-exact__highlight > span:last-child:not(.case-study-exact__overline) { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.5); }

.case-study-exact__content { max-width: 760px; display: flex; flex-direction: column; }
.case-study-exact__chapter { scroll-margin-top: 120px; display: flex; flex-direction: column; gap: 34px; }
.case-study-exact__chapter + .case-study-exact__chapter { margin-top: 120px; }
.case-study-exact__chapter > header { display: flex; flex-direction: column; gap: 18px; padding-top: 28px; border-top: 1px solid var(--cs-line); }
.case-study-exact__chapter-number { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,.45); }
.case-study-exact__chapter-number b { font-weight: 500; color: var(--cs-orange); }
.case-study-exact__chapter h2 { font-size: 44px; line-height: 1.1; font-weight: 400; letter-spacing: -.02em; }
.case-study-exact__lead p { font-size: 26px; line-height: 1.55; font-weight: 300; text-wrap: pretty; }
.case-study-exact__copy { display: flex; flex-direction: column; gap: 34px; }
.case-study-exact__lead { display: flex; flex-direction: column; gap: 24px; }
.case-study-exact__copy p { font-size: 17px; line-height: 1.85; color: rgba(255,255,255,.72); text-wrap: pretty; }
.case-study-exact__copy strong, .case-study-exact__lead strong { font-weight: 500; color: #fff; }
.case-study-exact__outcomes { list-style: none; padding: 0; margin-top: 6px; }
.case-study-exact__outcomes li { display: flex; align-items: baseline; gap: 24px; padding: 28px 0; border-top: 1px solid var(--cs-line); font-size: 22px; line-height: 1.4; }
.case-study-exact__outcomes li:last-child { border-bottom: 1px solid var(--cs-line); }
.case-study-exact__outcomes li span { flex: 0 0 auto; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.4); }

/* 03 Testimonial */
.case-study-exact__quote-section { padding: 180px var(--section-pad-inline) 0; }
.case-study-exact__quote { width: 760px; max-width: 100%; margin: 0 auto; padding: 56px 64px 64px; text-align: center; background: rgba(255,255,255,.02); border: 1px solid var(--cs-line); }
.case-study-exact__quote-mark { display: block; font-size: 30px; line-height: 1; font-weight: 500; color: var(--cs-orange); }
.case-study-exact__quote > i { display: block; width: 192px; max-width: 60%; height: 1px; margin: 20px auto 0; background: rgba(255,255,255,.35); }
.case-study-exact__quote blockquote { margin-top: 44px; display: flex; flex-direction: column; gap: 20px; }
.case-study-exact__quote blockquote p { font-size: 24px; line-height: 1.5; font-weight: 300; font-style: italic; text-wrap: pretty; }
.case-study-exact__quote figcaption { margin-top: 44px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.case-study-exact__quote figcaption span { font-size: 15px; }
.case-study-exact__quote figcaption small { font-size: 13px; color: rgba(255,255,255,.62); }

/* 04 Technologies */
.case-study-exact__tech { padding: 140px var(--section-pad-inline) 0; }
.case-study-exact__tech-row { display: flex; align-items: center; gap: 56px; padding-top: 48px; border-top: 1px solid var(--cs-line-2); }
.case-study-exact__tech-label { flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; font-size: 11px; }
.case-study-exact__tech-label span:first-child { color: var(--cs-orange); }
.case-study-exact__tech-label span:last-child { color: rgba(255,255,255,.45); }
.case-study-exact__tech-divider { flex: 0 0 auto; width: 1px; height: 48px; background: var(--cs-line); }
.case-study-exact__chips { display: flex; flex-wrap: wrap; gap: 16px; padding: 0; list-style: none; }
.case-study-exact__chips li { display: flex; align-items: center; gap: 12px; padding: 14px 22px; background: rgba(255,255,255,.043); font-size: 14px; color: rgba(255,255,255,.86); }
.case-study-exact__chips li i { width: 6px; height: 6px; background: var(--cs-orange); }

/* 05 More case studies */
.case-study-exact__related { padding: 200px var(--section-pad-inline) 0; }
.case-study-exact__related-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.case-study-exact__related-head h2 { font-size: 44px; line-height: 1.1; font-weight: 400; letter-spacing: -.02em; }
.case-study-exact__related-head a { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.case-study-exact__cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 48px; margin-top: 72px; }
.case-study-exact__card { display: block; min-width: 0; transition: transform 200ms var(--cs-ease); }
.case-study-exact__card:hover { transform: translateY(-6px); color: #fff !important; }
.case-study-exact__card-image { position: relative; overflow: hidden; aspect-ratio: 16/10; background: var(--cs-card); border: 1px solid var(--cs-line); transition: box-shadow 200ms, border-color 200ms; }
.case-study-exact__card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.case-study-exact__card:hover .case-study-exact__card-image { box-shadow: rgba(0,13,59,.55) 0 18px 40px; border-color: #33437a; }
.case-study-exact__card small { display: block; margin-top: 24px; color: rgba(255,255,255,.5); }
.case-study-exact__card h3 { margin-top: 14px; font-size: 22px; line-height: 1.3; font-weight: 400; }
.case-study-exact__card p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.62); text-wrap: pretty; }
.case-study-exact__card > span { margin-top: 22px; font-size: 18px; }

/* 06 Contact */
.case-study-exact__contact { padding: 220px var(--section-pad-inline); text-align: center; }
.case-study-exact__contact h2 { font-size: 96px; line-height: 1.02; font-weight: 400; letter-spacing: -.025em; }
.case-study-exact__contact h2 i { display: inline-block; width: .16em; height: .16em; margin-left: .14em; background: var(--cs-orange); transform: translateY(-.02em); }
.case-study-exact__contact > p { margin: 28px auto 0; max-width: 560px; font-size: 19px; line-height: 1.65; color: rgba(255,255,255,.7); text-wrap: pretty; }
.case-study-exact__contact .enquiry-form { margin-top: 44px; }

@media (max-width: 1100px) {
  .case-study-exact__body-grid { grid-template-columns: minmax(0,1fr); gap: 56px; }
  .case-study-exact__aside { position: static; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 980px) {
  .case-study-exact__body { padding-top: 88px; }
  .case-study-exact__quote-section, .case-study-exact__tech { padding-top: 112px; }
  .case-study-exact__related { padding-top: 140px; }
  .case-study-exact__contact { padding-top: 160px; padding-bottom: 160px; }
  .case-study-exact__cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .case-study-exact__hero { min-height: 560px; }
  .case-study-exact__hero-inner { padding-top: 32px; padding-bottom: 48px; }
  .case-study-exact__facts-grid, .case-study-exact__facts-grid[style*="--fact-count:3"] { grid-template-columns: minmax(0,1fr); }
  .case-study-exact__fact { padding: 28px 0; }
  .case-study-exact__fact + .case-study-exact__fact { border-left: 0; border-top: 1px solid var(--cs-line-2); }
  .case-study-exact__aside { grid-template-columns: minmax(0,1fr); }
  .case-study-exact__chapter + .case-study-exact__chapter { margin-top: 88px; }
  .case-study-exact__chapter h2, .case-study-exact__related-head h2 { font-size: 34px; }
  .case-study-exact__lead p { font-size: 21px; }
  .case-study-exact__outcomes li { font-size: 19px; gap: 18px; }
  .case-study-exact__quote { padding: 40px 24px 48px; }
  .case-study-exact__quote blockquote p { font-size: 20px; }
  .case-study-exact__tech-row { flex-direction: column; align-items: flex-start; gap: 24px; }
  .case-study-exact__tech-divider { display: none; }
  .case-study-exact__cards { grid-template-columns: minmax(0,1fr); }
  .case-study-exact__related-head { flex-direction: column; align-items: flex-start; }
  .case-study-exact__contact { padding-top: 140px; padding-bottom: 140px; }
  .case-study-exact__contact h2 { font-size: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .case-study-exact *, .case-study-exact *::before, .case-study-exact *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
body.motion-disabled .case-study-exact .exact-cursor-glow { display: none; }
