/* Immersync — site styles
   Concept: "Founder-led authority". Light, quiet pages with one deep-ink band per page.
   Asymmetric 12-column grid; proof (results, people, credentials) sits beside the claims.
   Marigold is reserved for primary actions and the single most important figure. */

:root {
  /* Colour: two neutrals + one accent */
  --ink: #0F1C2E;          /* deep neutral: text, ink bands, footer */
  --ink-2: #172840;        /* raised surface on ink */
  --paper: #F5F4F0;        /* light neutral: alternate sections */
  --white: #FFFFFF;        /* base surface */
  --accent: #F2A93B;       /* marigold: CTAs and key highlights only */
  --accent-press: #E0962A;
  --muted: #4A5565;        /* secondary text on light (7:1 on paper) */
  --muted-inv: #AAB5C3;    /* secondary text on ink (8:1) */
  --line: #E3E1DA;         /* dividers on light */
  --line-inv: #2B3C54;     /* dividers on ink */

  /* Type */
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --t-display: clamp(2.6rem, 5.4vw, 4.85rem);
  --t-h2: clamp(2rem, 3.5vw, 3.1rem);
  --t-h3: clamp(1.35rem, 1.8vw, 1.6rem);
  --t-lede: clamp(1.125rem, 1.4vw, 1.3rem);
  --t-body: 1.0625rem;
  --t-small: 0.9rem;

  /* Space */
  --gap: clamp(20px, 2.4vw, 36px);
  --section: clamp(56px, 6.5vw, 96px);
  --max: 1280px;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* Reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
p, ul, ol, dl, figure, blockquote { margin: 0; }
:where(ul[class], ol[class], nav ul, .footer-bottom ul) { list-style: none; padding: 0; margin: 0; }
dd { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.on-ink :focus-visible, .site-footer :focus-visible { outline-color: var(--accent); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: var(--white); padding: 12px 18px; text-decoration: none; border-radius: var(--radius); }
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

/* Layout */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .container { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); }
}
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.section { padding-block: var(--section); }
.section--paper { background: var(--paper); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.on-ink { background: var(--ink); color: var(--white); }

/* Type helpers */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--accent); flex: none; }
.on-ink .eyebrow { color: var(--muted-inv); }
.display { font-size: var(--t-display); }
.h2 { font-size: var(--t-h2); }
.h3 { font-size: var(--t-h3); }
.lede { font-size: var(--t-lede); line-height: 1.55; color: var(--muted); max-width: 40em; }
.on-ink .lede { color: var(--muted-inv); }
.prose { max-width: 38em; display: grid; gap: 1.1em; }
.prose p { color: var(--muted); }
.on-ink .prose p { color: var(--muted-inv); }
em.hl { font-style: italic; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none;
  background: var(--accent); color: var(--ink);
  border: 1px solid var(--accent); border-radius: var(--radius);
  cursor: pointer; transition: background-color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--accent-press); border-color: var(--accent-press); }
.btn:active { transform: translateY(1px); }
.btn--quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--quiet:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.on-ink .btn--quiet { color: var(--white); border-color: rgba(255,255,255,.45); }
.on-ink .btn--quiet:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn .arrow, .link-arrow .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(4px); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; text-decoration: none;
  padding-bottom: 3px; border-bottom: 1px solid currentColor;
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
@supports (backdrop-filter: blur(1px)) { .site-header { background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(12px); } }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(15, 28, 46, .35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.brand { display: inline-flex; flex: none; }
.brand img { height: 26px; width: auto; }
.primary-nav ul { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.primary-nav a { text-decoration: none; font-weight: 500; font-size: 0.975rem; color: var(--muted); padding-block: 8px; position: relative; transition: color .2s; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.primary-nav a:hover { color: var(--ink); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav a[aria-current="page"] { color: var(--ink); }
.header-cta { min-height: 44px; padding: 10px 20px; font-size: 0.95rem; }
.nav-toggle { display: none; align-items: center; gap: 10px; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; font: 600 0.95rem var(--sans); color: var(--ink); cursor: pointer; }
.nav-toggle .bars { width: 18px; height: 12px; position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after, .nav-toggle .bars span { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .25s, opacity .2s; }
.nav-toggle .bars::before { top: 0; } .nav-toggle .bars span { top: 5px; } .nav-toggle .bars::after { top: 10px; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-5px) rotate(-45deg); }
.mobile-only { display: none; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .primary-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -24px rgba(15,28,46,.4); display: none; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px max(20px, env(safe-area-inset-right, 0px)) 24px max(20px, env(safe-area-inset-left, 0px)); }
  .primary-nav li { border-bottom: 1px solid var(--line); }
  .primary-nav a { display: block; padding: 16px 0; font-size: 1.1rem; color: var(--ink); }
  .primary-nav a::after { display: none; }
  .primary-nav .mobile-only { display: block; border-bottom: 0; padding-top: 20px; }
  .primary-nav .mobile-only .btn { width: 100%; color: var(--ink); padding: 14px 26px; }
}

/* Home hero */
.hero { padding-block: clamp(32px, 4vw, 56px) clamp(56px, 6vw, 88px); position: relative; overflow: hidden; }
.hero .grid { align-items: center; row-gap: 56px; }
.hero-copy { grid-column: 1 / span 6; display: grid; gap: 26px; align-content: start; }
.hero-copy .display { max-width: 12em; }
.hero-copy .lede { max-width: 30em; }
.hero-copy .actions { margin-top: 6px; }
.hero-visual { grid-column: 8 / -1; position: relative; padding-bottom: 150px; }

/* Illustrative workspace (decorative) */
.ui { background: var(--paper); border-radius: 6px; padding: 18px; box-shadow: 0 30px 60px -40px rgba(15, 28, 46, .45); }
.ui-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ui-title { font-weight: 600; font-size: 0.9rem; }
.ui-pill { font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--white); display: inline-flex; gap: 6px; align-items: center; }
.ui-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.ui-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; padding-top: 14px; }
.ui-list { display: grid; gap: 8px; align-content: start; }
.ui-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--white); border-radius: 4px; padding: 10px 12px; }
.ui-avatar { width: 22px; height: 22px; border-radius: 50%; background: #D9DDE3; }
.ui-lines { display: grid; gap: 5px; }
.ui-lines i { display: block; height: 6px; border-radius: 3px; background: #D9DDE3; }
.ui-lines i:first-child { background: #B7BEC8; width: 70%; }
.ui-lines i:last-child { width: 45%; }
.ui-tag { font-size: 0.68rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--paper); color: var(--muted); white-space: nowrap; }
.ui-tag--done { background: #E4EFE8; color: #24553A; }
.ui-card { background: var(--white); border-radius: 4px; padding: 12px; display: grid; gap: 6px; align-content: start; }
.ui-label { font-size: 0.7rem; font-weight: 600; color: var(--muted); }
.ui-card svg { width: 100%; height: auto; display: block; }
.ui-suggest { grid-column: 1 / -1; background: var(--white); border-radius: 4px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; font-size: 0.78rem; color: var(--muted); border-left: 3px solid var(--accent); }
.ui-suggest b { color: var(--ink); font-weight: 600; }

.hero-visual .proof-card { position: absolute; left: -40px; bottom: 0; width: min(300px, 80%); box-shadow: 0 24px 48px -28px rgba(15, 28, 46, .6); }
.proof-card { background: var(--ink); color: var(--white); padding: 26px 28px; border-radius: var(--radius); display: grid; gap: 10px; position: relative; }
.proof-card .proof-logo { height: 16px; width: auto; opacity: .9; }
.proof-card .proof-figure, .proof-figure { font-family: var(--serif); font-size: clamp(3.4rem, 5vw, 4.4rem); line-height: .9; letter-spacing: -0.03em; color: var(--accent); }
.proof-figure small { font-size: .5em; letter-spacing: 0; margin-left: 2px; }
.proof-card p { color: var(--muted-inv); font-size: 0.95rem; line-height: 1.5; }
.proof-card .link-arrow { color: var(--white); width: fit-content; font-size: 0.92rem; }

/* Logo wall */
.logo-wall { padding-block: clamp(40px, 5vw, 64px); background: var(--paper); }
.logo-wall-inner { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.logo-wall h2 { font-family: var(--sans); font-size: var(--t-small); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }
.logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 40px; align-items: center; justify-items: center; }
.logos img { opacity: .78; transition: opacity .25s; }
.logos li:hover img { opacity: 1; }
.logo--paymentevolution { height: 20px; width: auto; }
.logo--telecompute { height: 20px; width: auto; }
.logo--iprorealty { height: 40px; width: auto; }
.logo--bacteriabar { height: 48px; width: auto; }
.partner-mark { padding-left: 32px; border-left: 1px solid var(--line); }
.partner-mark img { height: 40px; width: auto; }

/* Split section header */
.split-head { grid-column: 1 / span 5; display: grid; gap: 20px; align-content: start; }
.split-body { grid-column: 7 / -1; min-width: 0; }
.sticky-head { position: sticky; top: 120px; }

/* Service grid (home) */
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 56px; border-top: 1px solid var(--line); }
.service-cell { padding: 32px 28px 8px 0; display: grid; gap: 14px; align-content: start; }
.service-cell + .service-cell { padding-left: 28px; border-left: 1px solid var(--line); }
.service-cell h3 { font-size: 1.35rem; }
.service-cell p { color: var(--muted); }
.service-cell .link-arrow { font-size: 0.92rem; margin-top: 4px; width: fit-content; border-bottom-color: var(--line); }
.service-cell .link-arrow:hover { border-bottom-color: currentColor; }
.icon { width: 40px; height: 40px; color: var(--ink); }
.icon .acc { fill: var(--accent); stroke: none; }
.icon .acc-s { stroke: var(--accent); }

/* Proof band (home) */
.proof-band { padding-block: var(--section); }
.proof-band .grid { row-gap: 56px; }
.proof-intro { grid-column: 1 / span 5; display: grid; gap: 22px; align-content: start; }
.proof-graphic { grid-column: 7 / -1; align-self: center; }
.quotes { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); border-top: 1px solid var(--line-inv); padding-top: 40px; }
.quote { display: grid; gap: 18px; align-content: space-between; }
.quote blockquote p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; }
.quote figcaption { color: var(--muted-inv); font-size: var(--t-small); }
.quote figcaption strong { color: var(--white); font-weight: 600; display: block; font-size: 0.98rem; }

/* Result bars (drawn to scale: after = 20% of before) */
.result-bars { display: grid; gap: 18px; padding: clamp(24px, 3vw, 40px); background: var(--ink-2); border-radius: var(--radius); }
.rb-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.rb-head .proof-figure { font-size: clamp(3.6rem, 6vw, 5.2rem); }
.rb-head p { color: var(--muted-inv); max-width: 16em; text-align: right; }
.rb-head .proof-figure { color: var(--accent); text-align: left; }
.result-bars .rb-head p:not(.proof-figure) { color: var(--muted-inv); }
.rb-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; }
.rb-label { font-size: 0.85rem; font-weight: 600; color: var(--muted-inv); }
.rb-track { height: 14px; border-radius: 7px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.rb-fill { display: block; height: 100%; width: var(--w); border-radius: 7px; background: #5B6B80; transform-origin: left; transition: transform 1.1s var(--ease); }
.rb-fill--accent { background: var(--accent); }
.result-bars figcaption { font-size: 0.82rem; color: var(--muted-inv); }
.js .is-pending .rb-fill { transform: scaleX(.15); }
.case-result-graphic { margin-top: 8px; }

/* Approach (real sequence) */
.steps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: 56px; counter-reset: step; }
.step { display: grid; gap: 14px; align-content: start; padding-top: 24px; border-top: 2px solid var(--ink); }
.step::before { counter-increment: step; content: "Step " counter(step); font-size: 0.8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.step h3 { font-size: var(--t-h3); }
.step p { color: var(--muted); }

/* Facts row */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); padding-block: 24px; border-block: 1px solid var(--line); }
.fact b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.fact span { display: block; margin-top: 8px; font-size: var(--t-small); color: var(--muted); }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); margin-top: 56px; }
.quote-card { background: var(--paper); border-radius: var(--radius); padding: clamp(28px, 3vw, 44px); display: grid; gap: 28px; align-content: space-between; }
.section--paper .quote-card { background: var(--white); }
.quote-card--lead { grid-column: 1 / span 7; grid-row: span 2; }
.quote-card--side { grid-column: 8 / -1; }
.quote-card blockquote p { font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; }
.quote-card--lead blockquote p { font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.38; }
.quote-card blockquote p::before { content: "\201C"; }
.quote-card blockquote p::after { content: "\201D"; }
.quote-card figcaption { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); }
.quote-card figcaption strong { display: block; font-weight: 600; }
.quote-card figcaption span { color: var(--muted); font-size: var(--t-small); }
.quote-card figcaption img { height: 22px; width: auto; opacity: .8; }
.quote-card figcaption img.logo--bacteriabar { height: 40px; }
.quote-card figcaption img.logo--telecompute { height: 16px; }

/* UAE strip */
.uae-strip { background: var(--paper); padding-block: clamp(40px, 5vw, 64px); }
.uae-strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.uae-strip p { font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.3; max-width: 30em; }
.uae-strip p span { display: block; font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

/* CTA band */
.cta-band { padding-block: clamp(56px, 6.5vw, 96px); }
.cta-band .grid { row-gap: 40px; align-items: end; }
.cta-copy { grid-column: 1 / span 7; display: grid; gap: 24px; }
.cta-contact { grid-column: 9 / -1; display: grid; gap: 20px; }
.contact-lines { display: grid; gap: 16px; }
.contact-lines dt { font-size: 0.8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-inv); }
.contact-lines dd { margin: 4px 0 0; font-size: 1.05rem; }
.contact-lines a { text-decoration: none; border-bottom: 1px solid var(--line-inv); }
.contact-lines a:hover { border-bottom-color: var(--accent); }

/* Inner page hero */
.page-hero { padding-block: clamp(40px, 5vw, 72px) clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero .grid { row-gap: 32px; align-items: end; }
.page-hero-copy { grid-column: 1 / span 8; display: grid; gap: 24px; }
.page-hero-aside { grid-column: 10 / -1; display: grid; gap: 12px; padding-left: 24px; border-left: 2px solid var(--accent); color: var(--muted); font-size: 0.98rem; }
.page-hero-aside strong { color: var(--ink); font-weight: 600; }

/* In-page index */
.page-index { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 8px; }
.page-index a { text-decoration: none; font-size: 0.9rem; font-weight: 500; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; transition: border-color .2s, background-color .2s; }
.page-index a:hover { border-color: var(--ink); }

/* Service detail */
.service-detail { padding-block: clamp(72px, 9vw, 120px); border-bottom: 1px solid var(--line); }
.service-detail:last-of-type { border-bottom: 0; }
.service-detail .grid { row-gap: 40px; }
.service-detail-head { grid-column: 1 / span 5; display: grid; gap: 20px; align-content: start; }
.service-detail-head .icon { width: 48px; height: 48px; }
.service-detail-head .count { font-size: 0.8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.service-detail-body { grid-column: 7 / -1; display: grid; gap: 36px; min-width: 0; }
.deliverables { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); max-width: 36em; }
.deliverables li { padding: 16px 0 16px 22px; border-bottom: 1px solid var(--line); position: relative; }
.deliverables li::before { content: ""; position: absolute; left: 0; top: 1.55em; width: 10px; height: 2px; background: var(--accent); }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; }
.platforms li { font-size: 0.875rem; font-weight: 500; padding: 6px 12px; background: var(--paper); border-radius: 999px; }
.label { font-size: 0.8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Microsoft band (services) */
.ms-badge { height: 40px; width: auto; margin-top: 8px; opacity: .9; }
.product-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); align-content: start; }
.product { padding: 24px 0 28px; border-top: 1px solid var(--line-inv); display: grid; gap: 8px; align-content: start; }
.product h3 { font-size: 1.45rem; color: var(--white); }
.product p { color: var(--muted-inv); max-width: 28em; }
.product--link { grid-column: 1 / -1; padding-bottom: 0; }
.product--link .link-arrow { color: var(--white); width: fit-content; }
.page-hero-aside a { color: var(--ink); }


.case-hero { padding-block: clamp(56px, 8vw, 104px) 0; }
.case-hero .grid { row-gap: 32px; }
.case-hero-copy { grid-column: 1 / span 8; display: grid; gap: 24px; }
.case-meta { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); padding-block: 28px; margin-top: 24px; border-block: 1px solid var(--line); }
.case-meta dt { font-size: 0.8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.case-meta dd { margin: 6px 0 0; font-weight: 500; }
.case-section { padding-block: clamp(56px, 7vw, 96px); }
.case-section .grid { row-gap: 28px; }
.case-section h2 { grid-column: 1 / span 4; font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.case-section .case-content { grid-column: 6 / -1; display: grid; gap: 24px; min-width: 0; }
.case-content p { color: var(--muted); max-width: 40em; }
.check-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.check-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.check-list li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' fill='none' stroke='%23F2A93B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.check-list strong { display: block; font-weight: 600; }
.check-list span { color: var(--muted); }
.check-list--inv { border-top-color: var(--line-inv); margin-top: 8px; }
.check-list--inv li { border-bottom-color: var(--line-inv); }
.check-list--inv li::before { background-color: var(--ink-2); }
.check-list--inv strong { color: var(--white); }
.check-list--inv span { color: var(--muted-inv); }
.result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.result { padding-top: 24px; border-top: 2px solid var(--white); display: grid; gap: 10px; align-content: start; }
.result .figure { font-family: var(--serif); font-size: clamp(2.2rem, 3.2vw, 3.2rem); line-height: 1; }
.result .figure--accent { color: var(--accent); }
.result p { color: var(--muted-inv); }
.pull-quote { grid-column: 2 / span 10; text-align: left; }
.pull-quote blockquote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.28; text-wrap: balance; }
.pull-quote figcaption { margin-top: 24px; color: var(--muted); }
.pull-quote figcaption strong { color: var(--ink); }

/* Client work index */
.case-card { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); background: var(--ink); color: var(--white); border-radius: var(--radius); overflow: hidden; }
.case-card-body { grid-column: 1 / span 7; padding: clamp(32px, 4vw, 56px); display: grid; gap: 22px; align-content: start; }
.case-card-body .proof-logo { height: 20px; width: auto; opacity: .9; }
.case-card-body p { color: var(--muted-inv); max-width: 34em; }
.case-card-figure { grid-column: 8 / -1; background: var(--ink-2); padding: clamp(32px, 4vw, 56px); display: grid; align-content: end; gap: 12px; }
.case-card-figure .proof-figure { font-size: clamp(5rem, 9vw, 8rem); }
.case-card-figure p { color: var(--muted-inv); max-width: 20em; }
.client-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.client-grid li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 24px; display: grid; gap: 18px; justify-items: center; text-align: center; }
.client-grid .logo-box { height: 56px; display: grid; place-items: center; }
.client-grid span { font-size: var(--t-small); color: var(--muted); }

/* About */
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); border-top: 1px solid var(--line); }
.value { padding: 28px 0 32px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.value h3 { font-size: 1.45rem; }
.value p { color: var(--muted); max-width: 30em; }
.offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.office { padding: clamp(28px, 3vw, 40px); background: var(--paper); border-radius: var(--radius); display: grid; gap: 14px; align-content: start; }
.office h3 { font-size: 1.5rem; }
.office p, .office address { color: var(--muted); font-style: normal; }
.office a { color: var(--ink); }

/* UAE page */
.programmes { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.programme { grid-column: span 4; display: grid; gap: 14px; align-content: start; padding-top: 24px; border-top: 2px solid var(--ink); }
.programme:nth-child(4), .programme:nth-child(5) { grid-column: span 6; }
.programme h3 { font-size: var(--t-h3); }
.programme p { color: var(--muted); max-width: 32em; }
.programme .for { font-size: 0.85rem; font-weight: 600; color: var(--ink); }

/* Contact page */
.contact-layout { row-gap: 56px; }
.contact-form-wrap { grid-column: 1 / span 7; min-width: 0; }
.contact-aside { grid-column: 9 / -1; display: grid; gap: 32px; align-content: start; }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: 0.95rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: 400 1rem/1.5 var(--sans); color: var(--ink);
  background: var(--white); border: 1px solid #C9C6BD; border-radius: var(--radius);
  padding: 13px 14px; min-height: 52px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(242, 169, 59, .45); }
.field [aria-invalid="true"] { border-color: #B42318; }
.field .error { color: #B42318; font-size: 0.9rem; min-height: 0; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-foot p { color: var(--muted); font-size: var(--t-small); max-width: 30em; }
.form-status { grid-column: 1 / -1; padding: 18px 20px; border-radius: var(--radius); background: var(--paper); border-left: 3px solid var(--accent); }
.form-status:empty { display: none; }
.aside-block { display: grid; gap: 10px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.aside-block:last-child { border-bottom: 0; }
.aside-block h2 { font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.aside-block p, .aside-block address { font-style: normal; font-size: 1.05rem; }
.aside-block a { text-decoration: none; border-bottom: 1px solid var(--line); }
.aside-block a:hover { border-bottom-color: var(--ink); }
.expect { display: grid; gap: 14px; counter-reset: ex; }
.expect li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; color: var(--muted); }
.expect li::before { counter-increment: ex; content: counter(ex); width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--white); font-size: 0.8rem; font-weight: 600; display: grid; place-items: center; margin-top: 2px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--muted-inv); border-top: 1px solid var(--line-inv); padding-block: clamp(64px, 7vw, 96px) 32px; }
.footer-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--gap); }
.footer-brand { grid-column: 1 / span 4; display: grid; gap: 20px; align-content: start; }
.footer-brand img.wordmark { height: 26px; width: auto; }
.footer-brand p { max-width: 24em; }
.footer-brand .partner { height: 36px; width: auto; opacity: .9; }
.footer-col { grid-column: span 2; display: grid; gap: 12px; align-content: start; }
.footer-col h2 { font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--white); margin-bottom: 4px; }
.footer-col a { text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-col address { font-style: normal; display: grid; gap: 8px; }
.footer-contact { grid-column: span 4; }
.footer-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line-inv); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: var(--t-small); }
.footer-bottom ul { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

/* Motion — content is always visible at rest; JS adds only a short settle. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { transition: transform .9s var(--ease); }
  .js .reveal.is-pending { transform: translateY(20px); }
  .hero-copy > * { animation: rise .9s var(--ease) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .06s; }
  .hero-copy > *:nth-child(3) { animation-delay: .12s; }
  .hero-copy > *:nth-child(4) { animation-delay: .18s; }
  .hero-visual { animation: rise 1s var(--ease) .2s both; }
  @keyframes rise { from { transform: translateY(16px); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Responsive */
@media (max-width: 1100px) {
  .hero-copy { grid-column: 1 / span 7; }
  .hero-visual { grid-column: 8 / -1; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-cell:nth-child(3) { padding-left: 0; border-left: 0; }
  .service-cell:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 24px; }
  .logo-wall-inner { grid-template-columns: 1fr; gap: 28px; }
  .partner-mark { padding-left: 0; border-left: 0; }
}
@media (max-width: 960px) {
  .hero-copy, .hero-visual, .split-head, .split-body, .proof-intro, .proof-graphic, .cta-copy, .cta-contact, .page-hero-copy, .page-hero-aside, .service-detail-head,
  .service-detail-body, .case-hero-copy, .case-section h2, .case-section .case-content, .pull-quote,
  .contact-form-wrap, .contact-aside, .case-card-body, .case-card-figure { grid-column: 1 / -1; }
  .hero-visual { max-width: 560px; padding-bottom: 0; }
  .hero-visual .proof-card { position: relative; left: auto; bottom: auto; margin: -36px 0 0 20px; }
  .quotes { grid-template-columns: 1fr; gap: 32px; }
  .sticky-head { position: static; }
  .split-head { margin-bottom: 40px; }
  .page-hero-aside { max-width: 36em; }
  .quote-card--lead, .quote-card--side { grid-column: 1 / -1; grid-row: auto; }
  .programme, .programme:nth-child(4), .programme:nth-child(5) { grid-column: span 6; }
  .client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col { grid-column: span 4; }
  .footer-contact { grid-column: span 4; }
  .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .steps, .result-grid, .service-grid { grid-template-columns: 1fr; }
  .service-cell, .service-cell + .service-cell, .service-cell:nth-child(3) { padding: 28px 0 0; border-left: 0; margin-top: 0; }
  .service-cell + .service-cell { border-top: 1px solid var(--line); margin-top: 28px; }
  .ui-body { grid-template-columns: 1fr; }
  .ui-card { display: none; }
  .rb-head p { text-align: left; }
  .facts { grid-template-columns: 1fr 1fr; }
  .deliverables, .values, .offices, .product-list { grid-template-columns: 1fr; }
  .programme, .programme:nth-child(4), .programme:nth-child(5) { grid-column: 1 / -1; }
  .contact-form { grid-template-columns: 1fr; }
  .footer-col, .footer-contact { grid-column: span 6; }
  .footer-contact { grid-column: 1 / -1; }
}
@media (max-width: 440px) {
  .client-grid { grid-template-columns: 1fr; }
  .case-meta { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
}
/* Home hero: abstract connected-systems grid (decorative) */
.hero-visual--sync { padding-bottom: 0; grid-column: 7 / -1; }
@media (max-width: 960px) { .hero-visual--sync { grid-column: 1 / -1; } }
.sync-panel { border-radius: 8px; box-shadow: 0 40px 80px -40px rgba(15, 28, 46, .55); overflow: hidden; }
.sync-svg { display: block; width: 100%; height: auto; }
.g-bg { fill: var(--ink); }
.g-trace { fill: none; stroke: #2E4260; stroke-width: 2; stroke-linejoin: round; }
.g-packet { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 10 140; animation: g-move 2.4s linear infinite; }
.g-joint { fill: #3A5072; }
.g-box { fill: var(--ink-2); stroke: #34496A; stroke-width: 1.2; }
.g-glyph { fill: var(--muted-inv); opacity: .55; }
.g-glyph-ring { fill: none; stroke: var(--muted-inv); stroke-opacity: .55; stroke-width: 1.6; }
.g-node--blink .g-box { animation: g-blink 4s ease-in-out infinite; }
.g-node--mid .g-box { animation-delay: -1.3s; }
.g-node--late .g-box { animation-delay: -2.6s; }
.g-hub-box { fill: #1B2E4A; stroke: var(--accent); stroke-width: 1.6; }
.g-cell { fill: #2E4260; }
.g-cell--pulse { animation: g-cell 2.4s ease-in-out infinite; }
.g-cell--on { fill: var(--accent); }
.g-halo { transform-box: fill-box; transform-origin: center; animation: g-breathe 6s ease-in-out infinite; }
@keyframes g-move { from { stroke-dashoffset: 150; } to { stroke-dashoffset: 0; } }
@keyframes g-blink { 0%, 100% { stroke: #34496A; } 50% { stroke: var(--accent); } }
@keyframes g-cell { 0%, 100% { fill: #2E4260; } 50% { fill: #5D7397; } }
@keyframes g-breathe { 0%, 100% { opacity: .7; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) {
  .g-packet, .g-node--blink .g-box, .g-cell--pulse, .g-halo { animation: none; }
  .g-packet { stroke-dasharray: none; stroke-opacity: .5; }
}

/* Home hero tagline */
.tagline { font-family: var(--sans); font-weight: 600; font-size: clamp(1.3rem, 2.1vw, 1.7rem); line-height: 1.2; letter-spacing: -.005em; color: var(--ink); margin-top: -4px; }
.tagline span { color: var(--accent); }
