/* DC MENA — scroll-stage site (daylight). A pinned stage scrubs a camera flight between scenes. */
:root {
  --font: "Lexend", "Readex Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-ar: "Readex Pro", "Lexend", system-ui, "Segoe UI", Tahoma, sans-serif;
  --brand: #2A21F2;
  --ink: #0B0B1F;

  --bg: #F4F5F9;
  --bg-2: #FFFFFF;
  --fg: #0B0B1F;
  --fg-2: rgba(11, 11, 31, .74);
  --fg-3: rgba(11, 11, 31, .54);
  --line: rgba(11, 11, 31, .18);
  --line-2: rgba(11, 11, 31, .09);
  --glass: rgba(255, 255, 255, .62);
  --glass-2: rgba(255, 255, 255, .88);
  --accent: #2A21F2;
  --badge-bg: #2A21F2;
  --badge-fg: #FFFFFF;
  --btn-bg: #0B0B1F;
  --btn-fg: #FFFFFF;
  --scrim-a: rgba(244, 245, 249, .92);
  --scrim-b: rgba(244, 245, 249, .52);
  --scrim-c: rgba(244, 245, 249, 0);
  --scrim-full: rgba(244, 245, 249, .68);
  --logo-a: #0B0B1F;
  --logo-b: #2A21F2;
  --dot: rgba(11, 11, 31, .16);
  --dot-hi: #2A21F2;
  --shadow: 0 30px 80px rgba(20, 20, 60, .14);

  --gutter: clamp(16px, 8vw, 116px);
  --gutter-r: clamp(16px, 8vw, 116px);
  --top: clamp(84px, 13.5vh, 126px);
  --bottom: clamp(20px, 5vh, 48px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

html { background: var(--bg); color-scheme: light; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html.case-open, html.case-open body { overflow: hidden; }
*, *::before, *::after { box-sizing: border-box; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[lang="ar"], .ar { font-family: var(--font-ar); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--btn-bg); color: var(--btn-fg); padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 500; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

/* ---------- Type ---------- */
.eyebrow { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-2); }
.h-display { margin: 0; font-size: clamp(42px, min(5.5vw, 9.6vh), 92px); line-height: .98; letter-spacing: -.012em; text-transform: uppercase; }
.h-display .strong { display: block; font-weight: 600; }
.h-display .light { display: block; font-weight: 300; }
.h-scene { margin: 0; font-size: clamp(32px, min(4.3vw, 7.4vh), 66px); font-weight: 300; line-height: 1.05; letter-spacing: -.015em; text-wrap: balance; }
.lede { margin: 0; font-size: clamp(18px, min(2.15vw, 3.9vh), 34px); font-weight: 300; line-height: 1.28; text-wrap: balance; }
.muted { color: var(--fg-2); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.wi { display: inline-block; will-change: transform; }

.wave { width: min(640px, 100%); height: 22px; overflow: visible; margin-top: clamp(8px, 1.6vh, 16px); }
.wave path { fill: none; stroke: var(--fg-2); stroke-width: 1.4; vector-effect: non-scaling-stroke; }

/* ---------- Buttons ---------- */
.btn-outline {
  display: inline-flex; align-items: center; gap: 18px;
  padding: clamp(12px, 1.9vh, 17px) clamp(22px, 2.4vw, 36px);
  border: 2px solid var(--fg); border-radius: 0;
  font-size: clamp(16px, 1.3vw, 19px); font-weight: 400; text-decoration: none; color: var(--fg);
  background: color-mix(in srgb, var(--bg) 22%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.btn-outline svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn-outline:hover { background: var(--fg); color: var(--bg); }
.btn-outline:hover svg { transform: translate(3px, -3px); }
.badge { display: inline-block; margin: 0; padding: clamp(8px, 1.3vh, 11px) clamp(16px, 1.7vw, 24px); background: var(--badge-bg); color: var(--badge-fg); font-size: clamp(14px, 1.45vw, 21px); font-weight: 500; letter-spacing: .005em; }
.chip { display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 400; color: var(--fg-2); white-space: nowrap; }

/* ---------- Fixed chrome ---------- */
.chrome {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: calc(env(safe-area-inset-top, 0px) + clamp(16px, 4.9vh, 44px)) clamp(16px, 4.7vw, 68px) 0;
  pointer-events: none;
}
.chrome > * { pointer-events: auto; position: relative; z-index: 1; }
.chrome::before { content: ""; position: absolute; inset: 0 0 auto 0; height: calc(env(safe-area-inset-top, 0px) + 150px); background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 35%, transparent 100%); opacity: 0; transition: opacity .4s ease; pointer-events: none; }
html.past-stage .chrome::before { opacity: .96; }
.controls { display: flex; align-items: center; gap: 10px; }
.talk { display: inline-flex; align-items: center; padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); font-size: 13px; font-weight: 500; text-decoration: none; transition: background-color .25s, color .25s; }
.talk:hover { background: var(--btn-bg); color: var(--btn-fg); }
.brandlock { display: flex; align-items: center; gap: clamp(14px, 1.9vw, 28px); text-decoration: none; }
.logo { width: clamp(132px, 12.6vw, 182px); height: auto; }
.logo .lg-a { fill: var(--logo-a); }
.logo .lg-b { fill: var(--logo-b); }
.brandmeta { margin: 0; padding-left: clamp(14px, 1.9vw, 28px); border-left: 1px solid var(--line); font-size: 11.5px; font-weight: 500; line-height: 1.7; letter-spacing: .01em; white-space: nowrap; }

.dots { position: fixed; right: clamp(12px, 1.9vw, 28px); top: 50%; transform: translateY(-50%); z-index: 45; display: flex; flex-direction: column; gap: 4px; }
.dot { position: relative; width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; }
.dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--fg-2); transition: background-color .3s, border-color .3s, transform .3s; }
.dot[aria-current="true"]::before { background: var(--fg); border-color: var(--fg); transform: scale(1.15); }
.dot .tip { position: absolute; right: 32px; top: 50%; transform: translate(6px, -50%); padding: 5px 10px; border-radius: 999px; background: var(--glass-2); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.dot:hover .tip, .dot:focus-visible .tip { opacity: 1; transform: translate(0, -50%); }


/* ---------- Stage ---------- */
.stage { position: relative; height: calc(100vh + var(--steps, 6) * 140vh); height: calc(100svh + var(--steps, 6) * 140svh); }
.stage-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.flow { position: absolute; inset: 0; z-index: 0; background: var(--bg); overflow: hidden; }
.flow > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); opacity: 0; transition: opacity .35s ease; will-change: opacity; }
.flow > .on { opacity: 1; }
.flow > .instant { transition: none; }
.flow-still { z-index: 1; }
.flow-loop { z-index: 2; }
.flow-fly { z-index: 3; }
.flow-xfade { z-index: 4; transition: none; }
.scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--scrim-a) 0%, var(--scrim-b) 44%, var(--scrim-c) 74%),
    linear-gradient(180deg, var(--scrim-b) 0%, var(--scrim-c) 24%, var(--scrim-c) 66%, var(--scrim-a) 100%);
}
.scrim { transition: opacity .6s ease; }
.scrim-full { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--scrim-full); opacity: 0; transition: opacity .6s ease; }
.stage.is-flying .scrim { opacity: .25; }
.stage.is-flying .scrim-full, .stage.is-flying .scrim-left { opacity: 0 !important; }
.scrim-left { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .8s ease;
  background: linear-gradient(90deg, var(--scrim-a) 0%, var(--scrim-a) 28%, var(--scrim-b) 58%, var(--scrim-c) 84%); }
.stage[data-scene="numbers"] .scrim-left,
.stage[data-scene="built-for"] .scrim-left,
.stage[data-scene="offices"] .scrim-left { opacity: 1; }
.stage[data-scene="services"] .scrim-full,
.stage[data-scene="work"] .scrim-full,
.stage[data-scene="partners"] .scrim-full { opacity: 1; }

.scenes { position: absolute; inset: 0; z-index: 2; }
.scene { position: absolute; inset: 0; display: flex; align-items: center; padding: var(--top) var(--gutter-r) var(--bottom) var(--gutter); pointer-events: none; }
.scene-anim { width: 100%; pointer-events: auto; will-change: transform, opacity; }
.scene-fit { transform-origin: 0 50%; }

.scroll-cue { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(16px, 3.6vh, 34px)); z-index: 3; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; padding: 0; border: 0; background: none; color: var(--fg-2); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: opacity .4s; }
.scroll-cue span.ring { width: 44px; height: 44px; border: 1.5px solid var(--fg-2); border-radius: 50%; display: grid; place-items: center; }
.scroll-cue svg { width: 14px; height: 14px; animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
.scroll-cue.gone { opacity: 0; pointer-events: none; }

/* Scene: hero */
.hero { display: grid; gap: clamp(14px, 3.2vh, 30px); justify-items: start; max-width: 62rem; }
.hero .lede { margin-top: clamp(0px, 1vh, 8px); max-width: 25em; }

/* Scene: numbers */
.numbers, .builtfor, .offices-text { display: grid; gap: clamp(10px, 2vh, 18px); max-width: 60rem; }
.stats { list-style: none; margin: clamp(18px, 5vh, 52px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 40px); max-width: 74rem; }
.stat { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.stat-v { font-size: clamp(40px, min(4.6vw, 8vh), 74px); font-weight: 300; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-l { font-size: clamp(13px, 1.1vw, 16px); color: var(--fg-2); line-height: 1.4; max-width: 16em; }

/* Scene: built for */
.aud { list-style: none; margin: clamp(16px, 4.2vh, 44px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 3.4vw, 52px); max-width: 60rem; }
.aud li { display: grid; grid-template-columns: 14px 1fr; gap: 14px; padding: clamp(12px, 2.3vh, 22px) 0; border-top: 1px solid var(--line); }
.aud li::before { content: ""; width: 8px; height: 8px; margin-top: .55em; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.aud strong { display: block; font-size: clamp(17px, 1.55vw, 23px); font-weight: 500; line-height: 1.25; }
.aud span { display: block; margin-top: 4px; font-size: clamp(14px, 1.15vw, 17px); color: var(--fg-2); line-height: 1.45; }

/* Scene header row (services, work, partners) */
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.row-head .eyebrow { padding-bottom: .6em; }
.full { width: 100%; max-width: 84rem; }

/* Scene: services */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.7vw, 26px); margin-top: clamp(14px, 3.6vh, 38px); }
.card { display: flex; flex-direction: column; gap: 0; padding: clamp(10px, 1.1vw, 16px); border: 1px solid var(--line); border-radius: 14px; background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.card-img { aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; background: var(--bg-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-img img { transform: scale(1.04); }
.card h3 { margin: clamp(10px, 2vh, 20px) 0 0; font-size: clamp(18px, 1.7vw, 25px); font-weight: 500; line-height: 1.2; }
.card p { margin: 8px 0 clamp(2px, 1vh, 10px); font-size: clamp(13px, 1.06vw, 15.5px); line-height: 1.5; color: var(--fg-2); }
.also { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 8px; margin-top: clamp(12px, 2.6vh, 28px); }
.also .lbl { margin-right: 6px; font-size: 14px; font-weight: 400; color: var(--fg-2); }
@media (max-height: 820px) and (min-width: 768px) { .card-img { aspect-ratio: 4 / 3; } }
@media (max-height: 680px) and (min-width: 768px) { .card-img { aspect-ratio: 16 / 9; } }

/* Scene: work */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.7vw, 26px); margin-top: clamp(14px, 3.4vh, 36px); }
.case-card { display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); transition: border-color .3s, transform .5s var(--ease); }
.case-card:hover { border-color: var(--fg-2); transform: translateY(-3px); }
.case-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.case-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.case-card:hover .case-cover img { transform: scale(1.04); }
.case-meta { display: grid; gap: 6px; padding: clamp(12px, 1.9vh, 18px) clamp(14px, 1.2vw, 18px) clamp(14px, 2.1vh, 20px); }
.case-meta .k { font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); }
.case-meta h3 { margin: 0; font-size: clamp(17px, 1.45vw, 22px); font-weight: 400; line-height: 1.25; text-wrap: balance; }
.case-meta .go { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 13.5px; font-weight: 500; color: var(--accent); }
.case-meta .go svg { width: 13px; height: 13px; transition: transform .3s var(--ease); }
.case-card:hover .go svg { transform: translate(3px, -3px); }
.tag-live { position: absolute; right: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(5, 6, 13, .7); color: #fff; font-size: 11px; font-weight: 500; letter-spacing: .06em; }
.tag-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 10px #3DDC84; }

.cover-type { position: absolute; inset: 0; display: grid; align-content: space-between; padding: clamp(14px, 1.4vw, 22px); color: #fff; overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(140, 135, 255, .55) 0%, rgba(140, 135, 255, 0) 55%),
    linear-gradient(150deg, #2A21F2 0%, #17127F 55%, #0B0A2E 100%); }
.cover-type::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.2px); background-size: 14px 14px; -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 60%); mask-image: linear-gradient(200deg, #000 0%, transparent 60%); pointer-events: none; }
.cover-type .ct-logo { display: block; height: clamp(22px, 2.4vw, 34px); width: auto; max-width: 70%; filter: brightness(0) invert(1); }
.cover-type .ct-big { display: flex; align-items: baseline; gap: 10px; font-size: clamp(54px, 6.4vw, 104px); font-weight: 300; line-height: .9; letter-spacing: -.03em; }
.cover-type .ct-big small { font-size: .26em; font-weight: 400; letter-spacing: .02em; }
.cover-type .ct-small { font-size: clamp(13px, 1.05vw, 16px); font-weight: 500; }
.cover-type .ct-note { font-size: 12px; opacity: .78; }
.cover-type > * { position: relative; z-index: 1; }

.archive { display: grid; grid-template-columns: auto repeat(4, minmax(0, 1fr)); align-items: center; gap: clamp(10px, 1.4vw, 20px); margin-top: clamp(12px, 2.8vh, 28px); }
.archive .lbl { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); max-width: 9em; line-height: 1.4; }
.arch { display: grid; grid-template-columns: clamp(52px, 5.6vw, 86px) 1fr; align-items: center; gap: 12px; margin: 0; min-width: 0; }
.arch img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-2); }
.arch figcaption { font-size: 13px; line-height: 1.35; color: var(--fg-2); min-width: 0; }

/* Scene: partners */
.plogo { display: block; width: var(--lw, 60%); max-width: 100%; height: auto; max-height: 100%; object-fit: contain; }
.recent-row { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: center; gap: clamp(8px, 1vw, 16px); }
.recent { display: flex; align-items: center; gap: clamp(8px, 1vw, 16px); margin-top: clamp(14px, 3.2vh, 34px); padding: clamp(8px, 1.2vh, 12px) clamp(12px, 1.2vw, 18px); border: 1px solid var(--line); border-radius: 14px; background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.recent .lbl { display: flex; align-items: center; gap: 8px; padding-right: clamp(6px, 1vw, 14px); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); }
.recent .lbl::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.recent .cell { height: clamp(46px, 8.6vh, 84px); display: grid; place-items: center; color: var(--fg); }
.recent .cell .plogo { max-height: 80%; }
.logo-text { font-size: clamp(13px, 1.2vw, 17px); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; text-align: center; line-height: 1.1; }
.logo-text small { display: block; margin-top: 4px; font-size: 9.5px; font-weight: 400; letter-spacing: .08em; color: var(--fg-3); }
.wall { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-top: clamp(10px, 2.2vh, 22px); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.wall .cell { height: clamp(44px, 8vh, 80px); display: grid; place-items: center; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); transition: background-color .3s; }
.wall .cell .plogo { max-height: 72%; filter: grayscale(1) brightness(.74) contrast(1.35); opacity: .86; transition: filter .35s, opacity .35s; }
.wall .cell:hover { background: var(--glass-2); }
.wall .cell:hover .plogo, .wall .cell:focus-within .plogo { filter: none; opacity: 1; }

/* Scene: offices */
.offices { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(20px, 4vw, 64px); width: 100%; max-width: 84rem; }
.office-list { list-style: none; margin: clamp(14px, 3vh, 30px) 0 0; padding: 0; }
.office { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 16px; padding: clamp(10px, 1.9vh, 18px) 0; border-top: 1px solid var(--line); cursor: default; }
.office:last-child { border-bottom: 1px solid var(--line); }
.office .city { font-size: clamp(19px, 1.8vw, 27px); font-weight: 400; line-height: 1.15; }
.office .city em { margin-left: 10px; font-style: normal; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); vertical-align: middle; }
.office .time { font-size: clamp(15px, 1.3vw, 19px); font-variant-numeric: tabular-nums; }
.office .addr { font-size: clamp(13px, 1.05vw, 15px); color: var(--fg-2); }
.office .tz { font-size: 12px; color: var(--fg-3); text-align: right; font-variant-numeric: tabular-nums; }
.map-wrap { position: relative; }
.map-wrap::before { content: ""; position: absolute; inset: -6% -4%; background: radial-gradient(closest-side, var(--scrim-a) 0%, var(--scrim-b) 55%, transparent 100%); pointer-events: none; }
.map { position: relative; }
.map { width: 100%; height: auto; overflow: visible; -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); }
.map .d { fill: none; stroke: var(--dot); stroke-width: 5; stroke-linecap: round; }
.map .dh { fill: none; stroke: var(--dot-hi); stroke-width: 5; stroke-linecap: round; opacity: .8; }
.map .arc { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 4 6; opacity: .85; }
.map .pin .core { fill: var(--fg); }
.map .pin .halo { fill: var(--accent); opacity: .25; transform-box: fill-box; transform-origin: center; animation: halo 2.6s ease-out infinite; }
.map .pin text { fill: var(--fg); font-family: var(--font); font-size: 30px; font-weight: 500; paint-order: stroke; stroke: var(--bg); stroke-width: 7px; stroke-linejoin: round; }
.map .pin.hq .core { fill: var(--accent); }
.map .pin.is-hot text { fill: var(--accent); }
.map .pin.is-hot .core { fill: var(--accent); }
@keyframes halo { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(2.4); opacity: 0; } }

/* ---------- Closing (normal flow) ---------- */
.closing { position: relative; z-index: 5; overflow: hidden; background: var(--bg); padding-block: clamp(96px, 16vh, 150px) calc(env(safe-area-inset-bottom, 0px) + 36px); }
.closing-bg { position: absolute; inset: 0; z-index: 0; }
.closing-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; }
.closing-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(244,245,249,0) 0%, var(--scrim-b) 22%, var(--scrim-a) 62%, var(--bg) 100%); }
.closing-inner { position: relative; z-index: 1; width: 100%; max-width: 84rem; margin: 0 auto; padding-inline: var(--gutter); display: grid; gap: clamp(36px, 6vh, 64px); }
.why { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 56px); padding: clamp(24px, 4vw, 52px); border: 1px solid var(--line); background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.why h2 { margin: 0; font-size: clamp(36px, 4.6vw, 68px); font-weight: 300; line-height: 1.02; letter-spacing: -.02em; }
.why ul { list-style: none; margin: 0; padding: 0 0 0 clamp(0px, 3vw, 44px); border-left: 1px solid var(--line); display: grid; gap: clamp(10px, 1.6vh, 16px); }
.why li { font-size: clamp(16px, 1.6vw, 23px); line-height: 1.35; }
.why li strong { font-weight: 600; }
.mission { margin: 0 auto; max-width: 52rem; text-align: center; font-size: clamp(20px, 2.1vw, 30px); line-height: 1.35; text-wrap: balance; }
.rule { height: 1px; border: 0; margin: 0; background: var(--line); }
.cta { display: grid; justify-items: center; gap: 16px; text-align: center; }
.cta-title { margin: 0; font-size: clamp(22px, 2.4vw, 32px); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.cta-text { margin: 0 0 8px; font-size: clamp(18px, 2vw, 28px); text-wrap: balance; }
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; font-size: 14px; color: var(--fg-2); }
.social { display: flex; gap: 8px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; transition: background-color .25s, color .25s; }
.social a:hover { background: var(--fg); color: var(--bg); }
.social svg { width: 17px; height: 17px; }
.contact-line { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.contact-line a { text-decoration: none; }
.contact-line a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer .copy { color: var(--fg-3); }

/* ---------- Case study overlay ---------- */
.case { position: fixed; inset: 0; z-index: 80; background: var(--bg); color: var(--fg); }
.case-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.case-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(env(safe-area-inset-top, 0px) + 14px) clamp(16px, 4.7vw, 68px) 14px; background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line-2); }
.case-bar button, .case-bar a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer; }
.case-bar button:hover, .case-bar a:hover { background: var(--btn-bg); color: var(--btn-fg); }
.case-bar svg { width: 13px; height: 13px; }
.case-bar .crumb { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-body { width: 100%; max-width: 84rem; margin: 0 auto; padding: clamp(28px, 6vh, 64px) var(--gutter) clamp(48px, 8vh, 96px); display: grid; gap: clamp(28px, 5vh, 56px); }
.case-head { display: grid; gap: 18px; max-width: 58rem; }
.case-head h1 { margin: 0; font-size: clamp(36px, 5vw, 76px); font-weight: 300; line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
.case-head .ar-title { text-align: left; font-family: var(--font-ar); font-size: clamp(22px, 2.4vw, 34px); font-weight: 400; color: var(--fg-2); }
.case-head .sum { margin: 0; font-size: clamp(18px, 1.8vw, 24px); line-height: 1.45; color: var(--fg-2); max-width: 44rem; }
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.fact { padding: 16px 18px 16px 0; border-bottom: 1px solid var(--line); }
.fact dt { font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.fact dd { margin: 6px 0 0; font-size: 15.5px; line-height: 1.45; }
.case-hero { margin: 0; }
.case-hero .frame { position: relative; aspect-ratio: 21 / 9; overflow: hidden; border-radius: 16px; background: var(--bg-2); }
.case-hero img { width: 100%; height: 100%; object-fit: cover; }
.case-hero figcaption, .gal figcaption, .note { margin-top: 10px; font-size: 13px; color: var(--fg-3); }
.case-hero .cover-type { border-radius: 16px; }
.case-hero .cover-type .ct-big { font-size: clamp(80px, 12vw, 190px); }
.case-hero .cover-type .ct-logo { height: clamp(34px, 4vw, 60px); }
.case-hero .cover-type .ct-small { font-size: clamp(16px, 1.8vw, 26px); }
.case-hero .cover-type .ct-note { font-size: 14px; }
.case-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.case-sec h2 { margin: 0 0 12px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.case-sec p, .case-sec li { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.6; }
.case-sec p { margin: 0; }
.case-sec ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.case-sec li { position: relative; padding-left: 20px; }
.case-sec li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1.5px; background: var(--accent); }
.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.phases li { position: relative; padding: 18px 16px 18px 0; }
.phases li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.phases .when { display: block; font-size: 13px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.phases .what { display: block; margin-top: 4px; font-size: 20px; font-weight: 400; }
.results { display: grid; gap: 8px; padding: clamp(20px, 3vw, 36px); border: 1px dashed var(--line); border-radius: 16px; }
.results h2 { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.results p { margin: 0; font-size: clamp(16px, 1.4vw, 20px); color: var(--fg-2); }
.results .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; }
.results .num { font-size: clamp(36px, 4vw, 60px); font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; }
.gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.gal figure { margin: 0; }
.gal .wide { grid-column: span 2; }
.gal img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; background: var(--bg-2); }
.gal .wide img { aspect-ratio: auto; height: calc(100% - 30px); }
.case-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.case-foot .next { display: grid; gap: 6px; text-decoration: none; }
.case-foot .next span { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.case-foot .next strong { font-size: clamp(20px, 2vw, 28px); font-weight: 400; }
.case-foot .next:hover strong { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Static layout (reduced motion / no animation library) ---------- */
html.is-static .stage { height: auto; }
html.is-static .stage-pin { position: relative; height: auto; overflow: visible; }
html.is-static .flow { position: fixed; }
html.is-static .scrim, html.is-static .scrim-full, html.is-static .scrim-left { position: fixed; }
html.is-static .scenes { position: relative; }
html.is-static .scene { position: relative; min-height: 100vh; min-height: 100svh; }
html.is-static .scroll-cue { display: none; }
html.is-static .scene-anim { opacity: 1 !important; visibility: visible !important; transform: none !important; }
html.is-static .scene-fit { transform: none !important; width: auto !important; }
html.is-static .wave path { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- Tablet / phone ---------- */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: clamp(16px, 3vh, 28px); }
  .brandmeta { display: none; }
  .archive { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .archive .lbl { grid-column: 1 / -1; max-width: none; }
  .arch { grid-template-columns: 1fr; }
  .recent { flex-direction: column; align-items: stretch; }
  .recent .lbl { padding-right: 0; }
}
@media (max-width: 767px) {
  :root { --gutter: 20px; --gutter-r: 20px; --top: calc(env(safe-area-inset-top, 0px) + 78px); --bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); }
  .dots { display: none; }
  .chrome { padding-top: calc(env(safe-area-inset-top, 0px) + 14px); align-items: center; }
  .chrome .brandlock { order: -1; }
  .logo { width: 118px; }
    .seg .t { display: none; }
  .talk { padding: 9px 13px; }
  .scene { align-items: flex-start; }
  .scene-fit { transform-origin: 0 0; }
  .scrim { background:
      linear-gradient(180deg, var(--scrim-a) 0%, var(--scrim-b) 38%, var(--scrim-c) 58%, var(--scrim-b) 82%, var(--scrim-a) 100%); }
  .hero { gap: 16px; padding-top: 2vh; }
  .h-display { font-size: clamp(38px, 11.6vw, 56px); }
  .h-scene { font-size: clamp(28px, 8.4vw, 40px); }
  .lede { font-size: clamp(18px, 5vw, 22px); }
  .badge { font-size: 14px; }
  .stats { gap: 18px 16px; margin-top: 22px; }
  .stat-v { font-size: clamp(38px, 11vw, 52px); }
  .aud { grid-template-columns: 1fr; margin-top: 18px; }
  .aud li { padding: 12px 0; }
  .row-head { flex-direction: column-reverse; align-items: flex-start; gap: 8px; }
  .row-head .eyebrow { padding-bottom: 0; }
  .cards, .cases { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
  .cards::-webkit-scrollbar, .cases::-webkit-scrollbar { display: none; }
  .card, .case-card { flex: 0 0 78%; scroll-snap-align: start; }
  .card-img { aspect-ratio: 16 / 11; }
  .case-cover { aspect-ratio: 16 / 11; }
  .swipe-hint { display: flex; }
  .also { gap: 6px; }
  .also .lbl { width: 100%; font-size: 13px; }
  .chip { font-size: 12px; padding: 5px 10px; }
  .archive { display: flex; overflow-x: auto; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; flex-wrap: nowrap; }
  .archive .lbl { display: none; }
  .arch { flex: 0 0 42%; grid-template-columns: 56px 1fr; }
  .recent { padding: 8px 12px; gap: 4px; }
  .recent-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 10px; }
  .recent .cell { height: 44px; }
  .wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wall .cell { height: clamp(38px, 5.4vh, 48px); }
  .offices { grid-template-columns: 1fr; gap: 6px; }
  .map-wrap { order: -1; margin: -6px 0 -14px; }
  .map-wrap::before { inset: 0; background: radial-gradient(closest-side, var(--scrim-b), transparent); }
  .map { max-height: 30vh; width: auto; margin: 0 auto;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%), linear-gradient(180deg, #000 68%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%), linear-gradient(180deg, #000 68%, transparent 100%);
    mask-composite: intersect; }
  .map .pin text { font-size: 34px; }
  .scrim-left { background: linear-gradient(180deg, var(--scrim-a) 0%, var(--scrim-full) 45%, var(--scrim-a) 100%); }
  .office { padding: 9px 0; }
  .office .tz { display: none; }
  .scroll-cue span.ring { width: 38px; height: 38px; }
  .why { grid-template-columns: 1fr; }
  .why ul { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 18px; }
  .footer { flex-direction: column; align-items: flex-start; }
  .case-sections { grid-template-columns: 1fr; }
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gal .wide { grid-column: 1 / -1; }
  .case-hero .frame { aspect-ratio: 4 / 3; }
  .case-bar .crumb { display: none; }
}
.swipe-hint { display: none; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--fg-3); }
.swipe-hint svg { width: 16px; height: 16px; }

/* ---------- Work scene while no case study is published ---------- */
.cases.portfolio { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.case-card.is-static { margin: 0; cursor: default; }
.case-card.is-static:hover { border-color: var(--line); transform: none; }
.case-card.is-static:hover .case-cover img { transform: none; }
.cases.portfolio .case-cover { aspect-ratio: 4 / 3; }
.work-note { margin: clamp(12px, 2.6vh, 26px) 0 0; font-size: 15px; color: var(--fg-2); }
.work-note a { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; font-weight: 500; color: var(--accent); text-decoration: none; }
.work-note a svg { width: 12px; height: 12px; transition: transform .3s var(--ease); }
.work-note a:hover svg { transform: translate(3px, -3px); }
@media (max-width: 1080px) {
  .cases.portfolio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cases.portfolio .case-cover { aspect-ratio: 16 / 9; }
}
@media (max-width: 767px) {
  .cases.portfolio .case-cover { aspect-ratio: 4 / 3; }
  .work-note { font-size: 14px; }
}

/* ---------- AI assistant ---------- */
.chat-launch {
  position: fixed; right: clamp(16px, 2vw, 28px); bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(16px, 3vh, 28px)); z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px;
  border: 0; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 500; letter-spacing: .005em; cursor: pointer;
  box-shadow: 0 14px 34px rgba(42, 33, 242, .32), 0 2px 6px rgba(11, 11, 31, .12);
  opacity: 0; transform: translateY(12px) scale(.96);
  transition: opacity .5s var(--ease), transform .5s var(--ease), background-color .25s, bottom .3s var(--ease);
}
.chat-launch.in { opacity: 1; transform: none; }
.chat-launch:hover { background: #1d15c9; }
.chat-launch .cl-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.chat-launch .cl-icon svg { width: 16px; height: 16px; }
html.chat-open .chat-launch { opacity: 0; pointer-events: none; transform: translateY(12px) scale(.96); }
html.consent-open .chat-launch { bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(16px, 3vh, 28px) + var(--consent-h, 0px) + 12px); }
html.case-open .chat-launch { display: none; }

.chat-panel {
  position: fixed; right: clamp(16px, 2vw, 28px); bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(16px, 3vh, 28px)); z-index: 61;
  display: flex; flex-direction: column; width: min(392px, calc(100vw - 32px)); height: min(640px, calc(100vh - 48px)); height: min(640px, calc(100dvh - 48px));
  background: var(--bg-2); color: var(--fg); border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(20, 20, 60, .22), 0 4px 14px rgba(20, 20, 60, .08);
  animation: chat-in .35s var(--ease);
}
.chat-panel[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 12px 16px; border-bottom: 1px solid var(--line-2); }
.ch-mark { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--ink); color: var(--accent); }
.ch-mark svg { width: 20px; height: 20px; color: #5b53ff; }
.ch-titles { flex: 1; min-width: 0; }
.ch-title { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.25; }
.ch-sub { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; font-size: 12px; color: var(--fg-3); }
.ch-dot { width: 7px; height: 7px; border-radius: 50%; background: #1bb46b; box-shadow: 0 0 0 3px rgba(27, 180, 107, .16); }
.ch-close { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--fg-2); }
.ch-close:hover { background: var(--bg); color: var(--fg); }
.ch-close svg { width: 16px; height: 16px; }
.chat-note { margin: 0; padding: 8px 16px; font-size: 11.5px; line-height: 1.4; color: var(--fg-3); background: var(--bg); border-bottom: 1px solid var(--line-2); }
.chat-note a { color: var(--fg-2); }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; padding: 16px; scroll-behavior: smooth; }
.chat-log:focus-visible { outline-offset: -3px; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; font-weight: 300; overflow-wrap: anywhere; }
.msg p { margin: 0; }
.msg p + p, .msg p + ul, .msg ul + p { margin-top: 6px; }
.msg ul { margin: 4px 0 0; padding-inline-start: 18px; }
.msg li + li { margin-top: 2px; }
.msg a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.msg-ai { align-self: flex-start; background: var(--bg); border: 1px solid var(--line-2); border-end-start-radius: 6px; }
.msg-user { align-self: flex-end; background: var(--accent); color: #fff; border-end-end-radius: 6px; font-weight: 400; }
.msg-err { background: #fff4f2; border-color: rgba(200, 60, 40, .22); }
.msg :dir(rtl) { font-family: var(--font-ar); }
.msg-user :dir(rtl) { text-align: right; }
.typing { display: inline-flex; gap: 5px; align-items: center; padding: 14px 16px; }
.typing span:not(.sr-only) { width: 7px; height: 7px; border-radius: 50%; background: var(--fg-3); animation: chat-dot 1.2s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.chat-suggest[hidden] { display: none; }
.chat-suggest .chip { cursor: pointer; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; transition: border-color .2s, background-color .2s; }
.chat-suggest .chip:hover { border-color: var(--accent); background: rgba(42, 33, 242, .05); }
.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 10px calc(env(safe-area-inset-bottom, 0px) + 10px) 14px; border-top: 1px solid var(--line-2); background: var(--bg-2); }
.chat-form textarea { flex: 1; min-width: 0; resize: none; max-height: 132px; padding: 10px 2px; border: 0; background: transparent; font: inherit; font-size: 15px; font-weight: 300; line-height: 1.45; color: var(--fg); outline: none; }
.chat-form textarea::placeholder { color: var(--fg-3); }
.chat-send { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer; transition: background-color .2s, opacity .2s; }
.chat-send:hover:not(:disabled) { background: var(--accent); }
.chat-send:disabled { opacity: .28; cursor: default; }
.chat-send svg { width: 16px; height: 16px; }
.chat-panel.is-busy .chat-form textarea { opacity: .8; }

/* cookie notice */
.consent {
  position: fixed; left: clamp(16px, 2vw, 28px); bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(16px, 3vh, 28px)); z-index: 62;
  display: flex; align-items: center; gap: 14px 18px; max-width: min(520px, calc(100vw - 32px)); padding: 12px 12px 12px 18px;
  background: var(--glass-2); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 18px 44px rgba(20, 20, 60, .14);
  font-size: 13px; line-height: 1.45; color: var(--fg-2);
}
.consent p { margin: 0; }
.consent a { color: var(--fg); }
.consent-actions { display: flex; gap: 8px; flex: none; }
.consent button { cursor: pointer; border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 500; border: 1px solid var(--line); background: transparent; }
.consent .c-yes { background: var(--ink); border-color: var(--ink); color: #fff; }
.consent .c-yes:hover { background: var(--accent); border-color: var(--accent); }

/* closing: open the assistant */
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.btn-text { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; border: 0; background: none; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--accent); }
.btn-text svg { width: 16px; height: 16px; }
.btn-text:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer .legal { color: var(--fg-3); text-decoration: none; }
.footer .legal:hover { color: var(--fg); }
.work-note button { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-weight: 500; color: var(--accent); }
.work-note button svg { width: 12px; height: 12px; transition: transform .3s var(--ease); }
.work-note button:hover svg { transform: translate(3px, -3px); }

@media (max-width: 767px) {
  .chat-launch { padding: 0; width: 54px; height: 54px; justify-content: center; right: 16px; }
  .chat-launch .cl-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .chat-launch .cl-icon { width: auto; height: auto; background: none; }
  .chat-launch .cl-icon svg { width: 22px; height: 22px; }
  .chat-panel { inset: 0 0 auto 0; right: 0; bottom: auto; width: 100%; height: 100vh; height: 100dvh; border-radius: 0; border: 0; animation: none; }
  .chat-head { padding-top: calc(env(safe-area-inset-top, 0px) + 12px); }
  .msg { max-width: 90%; font-size: 15px; }
  html.chat-open, html.chat-open body { overflow: hidden; }
  .consent { left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); flex-direction: column; align-items: stretch; max-width: none; padding: 14px; }
  .consent-actions button { flex: 1; padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-panel { animation: none; }
  .chat-log { scroll-behavior: auto; }
  .typing span:not(.sr-only) { animation: none; opacity: .6; }
}

/* ---------- What we do: more than four focus cards ---------- */
.cards.many { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.3vw, 20px); }
.cards.many .card { flex-direction: row; align-items: center; gap: clamp(12px, 1.2vw, 18px); padding: clamp(8px, .8vw, 12px); }
.cards.many .card-img { flex: 0 0 36%; aspect-ratio: 1 / 1; }
.cards.many .card-body { min-width: 0; padding-right: 4px; }
.cards.many .card h3 { margin: 0; font-size: clamp(16px, 1.3vw, 20px); text-wrap: balance; }
.cards.many .card p { margin: 6px 0 0; font-size: clamp(12.5px, .93vw, 14.5px); line-height: 1.45; }
@media (max-width: 899px) and (min-width: 768px) {
  .cards.many { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .cards.many .card { flex-direction: column; align-items: stretch; gap: 0; padding: 10px; }
  .cards.many .card-img { flex: none; aspect-ratio: 16 / 11; }
  .cards.many .card h3 { margin-top: 12px; font-size: 19px; }
  .cards.many .card p { font-size: 13.5px; margin-bottom: 4px; }
}
