/* Immersync — site styles
   Concept: one surface. Every page opens on deep ink with the lattice (many routes converging into one system),
   then settles into quiet, light pages where proof sits beside the claims.
   Two neutrals + one accent. Marigold is reserved for actions and the single most important figure. */

:root {
  --ink: #0F1C2E;
  --ink-2: #172840;
  --ink-3: #1F3350;
  --paper: #F4F3EF;
  --white: #FFFFFF;
  --accent: #F2A93B;
  --accent-press: #E0962A;
  --muted: #4A5565;
  --muted-inv: #A9B6C6;
  --line: #E2E0D9;
  --line-inv: #2A3C55;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --t-display: clamp(2.75rem, 5.6vw, 5.1rem);
  --t-h2: clamp(1.9rem, 3.2vw, 2.9rem);
  --t-h3: clamp(1.3rem, 1.7vw, 1.55rem);
  --t-lede: clamp(1.125rem, 1.35vw, 1.275rem);
  --t-body: 1.0625rem;
  --t-small: 0.9rem;

  --gap: clamp(20px, 2.4vw, 36px);
  --section: clamp(64px, 7vw, 112px);
  --max: 1280px;
  --radius: 3px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --mark-bg: var(--white);
  color-scheme: light;
}
.on-ink, .hero, .page-hero, .case-hero, .site-header, .site-footer, .case-card { --mark-bg: var(--ink); }
.section--paper, .uae-strip, .logo-wall { --mark-bg: var(--paper); }
.mark { width: 9px; height: 9px; border: 1.5px solid var(--accent); background: var(--accent); box-shadow: inset 0 0 0 2px var(--mark-bg); flex: none; display: inline-block; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
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.06; letter-spacing: -0.018em; 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-header :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(--accent); color: var(--ink); padding: 12px 18px; text-decoration: none; border-radius: var(--radius); font-weight: 600; }
.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); }
.on-ink { background: var(--ink); color: var(--white); }

/* Type helpers */
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; font-weight: 500; color: var(--muted); letter-spacing: .01em; }
/* The mark: the hero core, reduced to a 9px port. Used wherever the system labels itself. */
.eyebrow::before { content: ""; width: 9px; height: 9px; border: 1.5px solid var(--accent); background: var(--accent); box-shadow: inset 0 0 0 2px var(--mark-bg); 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; }
.label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 28px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; letter-spacing: .005em;
  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: rgba(15, 28, 46, .45); }
.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,.4); }
.on-ink .btn--quiet:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn .arrow { display: none; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none;
  padding-bottom: 3px; border-bottom: 1px solid rgba(15, 28, 46, .3);
  transition: border-color .2s;
}
.link-arrow:hover { border-bottom-color: currentColor; }
.on-ink .link-arrow { border-bottom-color: rgba(255,255,255,.35); }
.on-ink .link-arrow:hover { border-bottom-color: var(--accent); }
.link-arrow .arrow { font-family: var(--sans); transition: transform .25s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* Header: ink, one surface with the hero */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--ink); color: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line-inv); box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .6); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: inline-flex; flex: none; }
.brand img { height: 26px; width: auto; }
.primary-nav ul { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.primary-nav a { text-decoration: none; font-weight: 500; font-size: 0.975rem; color: var(--muted-inv); padding-block: 8px; position: relative; transition: color .2s; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.primary-nav a:hover { color: var(--white); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav a[aria-current="page"] { color: var(--white); }
.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-inv); border-radius: var(--radius); padding: 10px 14px; font: 600 0.95rem var(--sans); color: var(--white); 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(--ink); border-top: 1px solid var(--line-inv); border-bottom: 1px solid var(--line-inv); box-shadow: 0 24px 40px -24px rgba(0,0,0,.7); 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-inv); }
  .primary-nav a { display: block; padding: 16px 0; font-size: 1.1rem; color: var(--white); }
  .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: full-bleed ink, lattice behind the right two thirds */
.hero { position: relative; background: var(--ink); color: var(--white); overflow: hidden; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-canvas.is-ready { opacity: 1; }
.hero .container { position: relative; z-index: 1; min-height: clamp(560px, 76vh, 760px); display: grid; align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.hero-copy { grid-column: 1 / span 6; display: grid; gap: 28px; align-content: center; max-width: 36rem; }
.hero-copy .tagline { font-weight: 600; font-size: clamp(1.05rem, 1.4vw, 1.2rem); letter-spacing: .02em; color: var(--white); }
.hero-copy .tagline { display: flex; align-items: center; gap: 14px; }
.hero-copy .tagline span { width: 9px; height: 9px; border: 1.5px solid var(--accent); background: var(--accent); box-shadow: inset 0 0 0 2px var(--ink); flex: none; display: inline-block; }
.hero-copy .display { max-width: 11.5em; letter-spacing: -0.022em; }
.hero-copy .lede { max-width: 30em; color: var(--muted-inv); }
.hero-copy .actions { margin-top: 8px; }
.hero .btn--quiet { border-color: rgba(255,255,255,.4); color: var(--white); }
.hero .btn--quiet:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* Inner page hero: the same ink surface, a quiet lattice */
.page-hero { position: relative; background: var(--ink); color: var(--white); overflow: hidden; isolation: isolate; }
.page-hero .container { position: relative; z-index: 1; padding-block: clamp(56px, 7vw, 104px) clamp(56px, 6.5vw, 88px); }
.page-hero .grid { row-gap: 32px; align-items: end; }
.page-hero-copy { grid-column: 1 / span 8; display: grid; gap: 24px; }
.page-hero-copy .lede { color: var(--muted-inv); }
.page-hero-aside { grid-column: 10 / -1; display: grid; gap: 12px; padding-left: 24px; border-left: 2px solid var(--accent); color: var(--muted-inv); font-size: 0.98rem; }
.page-hero-aside strong { color: var(--white); font-weight: 600; }
.page-hero-aside a { color: var(--white); }
.page-hero .eyebrow { color: var(--muted-inv); }

/* 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 rgba(255,255,255,.28); border-radius: 999px; transition: border-color .2s, background-color .2s; color: var(--white); }
.page-index a:hover { border-color: var(--accent); }

/* Logo wall */
.logo-wall { padding-block: clamp(36px, 4.5vw, 56px); background: var(--paper); border-bottom: 1px solid var(--line); }
.logo-wall-inner { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.logo-wall h2 { font-family: var(--sans); font-size: var(--t-small); font-weight: 500; color: var(--muted); line-height: 1.4; max-width: 12em; }
.logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 40px; align-items: center; justify-items: center; }
.logos img { opacity: .72; filter: grayscale(1); transition: opacity .25s, filter .25s; }
.logos li:hover img { opacity: 1; filter: none; }
.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; }

/* Services (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: 36px 28px 8px 0; display: grid; gap: 14px; align-content: start; position: relative; }
.service-cell::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border: 1.5px solid var(--accent); background: var(--accent); box-shadow: inset 0 0 0 2px var(--mark-bg); }
.service-cell + .service-cell { padding-left: 28px; border-left: 1px solid var(--line); }
.service-cell + .service-cell::before { left: 28px; }
.service-cell h3 { font-size: 1.5rem; }
.service-cell p { color: var(--muted); }
.service-cell .link-arrow { font-size: 0.92rem; margin-top: 4px; width: fit-content; }

/* 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.25rem; 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) */
.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; }
.result-bars { display: grid; gap: 18px; padding: clamp(24px, 3vw, 40px); background: var(--ink-2); border: 1px solid var(--line-inv); 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:not(.proof-figure) { color: var(--muted-inv); max-width: 16em; text-align: right; }
.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: 12px; border-radius: 6px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.rb-fill { display: block; height: 100%; width: var(--w); border-radius: 6px; background: #55667D; 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); }

/* Approach (a 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: 1px solid var(--ink); position: relative; }
.step::after { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border: 1.5px solid var(--accent); background: var(--accent); box-shadow: inset 0 0 0 2px var(--mark-bg); }
.step::before { counter-increment: step; content: "Step " counter(step); font-size: 0.85rem; font-weight: 600; 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(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 3vw, 44px); display: grid; gap: 28px; align-content: space-between; }
.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); border-block: 1px solid var(--line); padding-block: clamp(36px, 4.5vw, 56px); }
.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.9rem; font-weight: 500; color: var(--muted); margin-bottom: 6px; }

/* CTA band */
.cta-band { padding-block: clamp(64px, 7.5vw, 112px); border-bottom: 1px solid var(--line-inv); }
.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.85rem; font-weight: 600; 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); }

/* Service detail (services page) */
.service-detail { padding-block: clamp(64px, 8vw, 112px); 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 .h2 { padding-top: 22px; position: relative; }
.service-detail-head .h2::before { content: ""; position: absolute; top: 0; left: 0; width: 9px; height: 9px; border: 1.5px solid var(--accent); background: var(--accent); box-shadow: inset 0 0 0 2px var(--mark-bg); }
.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); }

/* 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; }

/* Case study */
.case-hero { position: relative; background: var(--ink); color: var(--white); overflow: hidden; isolation: isolate; }
.case-hero .container { position: relative; z-index: 1; padding-block: clamp(56px, 7vw, 104px) 0; }
.case-hero .grid { row-gap: 32px; }
.case-hero-copy { grid-column: 1 / span 8; display: grid; gap: 24px; }
.case-hero-copy .lede { color: var(--muted-inv); }
.case-hero .eyebrow { color: var(--muted-inv); }
.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-top: 1px solid var(--line-inv); }
.case-meta dt { font-size: 0.85rem; font-weight: 600; color: var(--muted-inv); }
.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); }
.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; }

/* 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: 1px solid var(--line); 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 #C6C3BA; 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.85rem; font-weight: 600; 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; }

/* Legal pages */
.legal .grid { row-gap: 40px; }
.legal-index { grid-column: 1 / span 3; display: grid; gap: 10px; align-content: start; }
.legal-index a { text-decoration: none; font-size: 0.95rem; color: var(--muted); padding-bottom: 2px; border-bottom: 1px solid transparent; width: fit-content; }
.legal-index a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.legal-body { grid-column: 5 / -1; max-width: 42em; min-width: 0; }
.legal-body h2 { font-size: clamp(1.6rem, 2.3vw, 2rem); margin-top: 2.2em; padding-top: 22px; position: relative; }
.legal-body h2::before { content: ""; position: absolute; top: 0; left: 0; width: 9px; height: 9px; border: 1.5px solid var(--accent); background: var(--accent); box-shadow: inset 0 0 0 2px var(--mark-bg); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; margin-top: 1.6em; }
.legal-body p, .legal-body li { color: var(--muted); margin-top: 0.9em; }
.legal-body ul { padding-left: 1.2em; margin-top: 0.9em; }
.legal-body li { margin-top: 0.5em; }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body address { font-style: normal; margin-top: 1em; line-height: 1.7; }
@media (max-width: 960px) { .legal-index, .legal-body { grid-column: 1 / -1; } .legal-index { display: none; } }

/* Footer */
.site-footer { background: var(--ink); color: var(--muted-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.85rem; font-weight: 600; 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: one orchestrated moment on the hero; everything else is still. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .9s var(--ease) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .08s; }
  .hero-copy > *:nth-child(3) { animation-delay: .16s; }
  .hero-copy > *:nth-child(4) { animation-delay: .24s; }
  @keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .hero-canvas { opacity: 1; }
}

/* Responsive */
@media (max-width: 1100px) {
  .hero-copy { grid-column: 1 / span 7; }
  .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(3)::before { 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, .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 .container { min-height: 0; padding-top: clamp(220px, 40vh, 320px); padding-bottom: 48px; }
  .page-hero .container { padding-top: clamp(44px, 8vw, 72px); padding-bottom: 44px; }
  .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::before { left: 0; }
  .service-cell + .service-cell { border-top: 1px solid var(--line); margin-top: 28px; }
  .rb-head p:not(.proof-figure) { 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%; }
}
