/* ITMAM References — homepage + projects list. itmam.com light ground, navy band for clients. */
:root {
  --bg: #f5f7fb;
  --white: #fff;
  --ink: #081226;
  --ink-2: #2c3a54;
  --mut: #5d6b85;
  --hair: #e3e9f2;
  --navy: #0b1f4b;
  --navy-deep: #040d24;
  --royal: #1e5eff;
  --sky: #38bdf8;
  --dga: #34387e;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --f-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --f-ar: "Tajawal", "Segoe UI", system-ui, sans-serif;
  --maxw: 1520px;
  --gut: clamp(20px, 6vw, 112px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; }
body { background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--f-body); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--royal); }
.wrap { width: min(var(--maxw), 100% - 2 * var(--gut)); margin-inline: auto; }
.mono { font: 500 11.5px/1.5 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--royal); }
.eyebrow--light { color: var(--sky); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.lede { font-size: 17px; color: var(--ink-2); max-width: 520px; }
.h2 { font: 600 clamp(36px, 5vw, 64px)/1.02 var(--f-display); letter-spacing: -.03em; margin-top: 14px; }
.h2--light { color: #f2f6ff; }
.h2--light em { color: var(--sky); }
.ar { font-family: var(--f-ar); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: transform .35s var(--ease), background .3s, border-color .3s, color .3s; }
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: linear-gradient(100deg, #1747c9, var(--royal) 60%, #1b63e6); color: #fff; }
.btn--line { border: 1px solid rgba(8, 18, 38, .22); }
.btn--line:hover { border-color: var(--royal); color: var(--royal); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ===== NAV ===== */
.nav { position: fixed; inset: 0 0 auto; z-index: 40; height: 72px; display: flex; align-items: center; gap: 28px; padding: 0 max(var(--gut), calc((100% - var(--maxw)) / 2)); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.nav.is-solid { background: rgba(245, 247, 251, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--hair); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__word { font: 700 23px/1 var(--f-display); letter-spacing: .06em; }
.brand__lambda { color: var(--royal); }
.brand__tag { font: 400 19px/1 var(--f-serif); font-style: italic; color: var(--mut); }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; color: var(--ink-2); }
.nav__links a { position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1.5px; background: var(--royal); transition: right .4s var(--ease); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { right: 0; }

/* ===== 1 · BANNER ===== */
.banner { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: 40px; padding: 110px max(var(--gut), calc((100% - var(--maxw)) / 2)) 70px; overflow: hidden; }
.banner__glow { position: absolute; right: -10vw; top: 10%; width: 60vw; height: 60vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(56, 189, 248, .28), rgba(30, 94, 255, .1) 50%, transparent); pointer-events: none; }
.banner__copy { position: relative; z-index: 2; }
.banner__title { font: 600 clamp(38px, 3.4vw, 64px)/1.04 var(--f-display); letter-spacing: -.04em; margin: 22px 0 22px; }
.banner__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.banner__title .line > span { display: inline-block; }
.swap { position: relative; display: inline-grid !important; }
.swap__w { grid-area: 1 / 1; font-size: 1.1em; line-height: 1; white-space: nowrap; }
.swap__w:not(.is-on) { visibility: hidden; }
.anim .swap__w { visibility: visible; }

.banner__stage { position: relative; z-index: 1; perspective: 1600px; }
.dev { position: relative; transform-style: preserve-3d; }
.dev__lid { padding: 2.2% 2.2% 3%; border-radius: 18px 18px 6px 6px; background: linear-gradient(160deg, #1f2b45, #0a1122 60%); box-shadow: 0 50px 100px -40px rgba(11, 31, 75, .55); }
.dev__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; background: #1b1f4a; }
.dev__screen img { width: 100%; }
.slice { position: absolute; left: 0; right: 0; top: calc(var(--a) / 10 * 1%); height: calc((var(--b) - var(--a)) / 10 * 1%); overflow: hidden; display: none; }
.slice img { margin-top: calc(var(--a) / -16 * 1%); }
.anim .slice { display: block; }
.dev__live { position: absolute; left: 0; top: 0; }
.dev__live.is-running { animation: devscroll 24s ease-in-out infinite alternate; }
@keyframes devscroll { 0%, 6% { transform: translateY(0); } 94%, 100% { transform: translateY(-69%); } }
.dev__base { height: 14px; margin: 0 -5%; border-radius: 0 0 22px 22px; background: linear-gradient(#c4cde0, #6f7b96 60%, #3c465e); }

.chip { position: absolute; z-index: 3; display: grid; gap: 2px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .92); border: 1px solid var(--hair); box-shadow: 0 18px 40px -20px rgba(11, 31, 75, .45); font-size: 13px; color: var(--mut); }
.chip b { font: 600 18px/1.1 var(--f-display); color: var(--ink); }
.chip--a { left: -4%; top: 8%; display: flex; align-items: center; gap: 8px; font: 600 12px/1 var(--f-mono); letter-spacing: .1em; color: var(--ink); }
.chip--a .dot { color: #16a34a; }
.chip--b { right: -3%; top: 38%; }
.chip--c { left: 8%; bottom: -6%; }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 24px; height: 38px; margin-left: -12px; border: 1.5px solid rgba(8, 18, 38, .35); border-radius: 12px; }
.scroll-cue i { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); animation: cue 1.6s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* 3D ring (ring.js adds .is-3d once WebGL is running; until then the laptop above stays) */
.ring, .ring-cap, .ring-hint { display: none; }
.banner__stage.is-3d { height: min(76svh, 700px); margin-right: calc(-1 * max(var(--gut), (100vw - var(--maxw)) / 2)); }
.banner__stage.is-3d .dev, .banner__stage.is-3d .chip { display: none; }
.banner__stage.is-3d .ring { display: block; position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.banner__stage.is-3d .ring:active { cursor: grabbing; }
.banner__stage.is-3d .ring-cap { display: grid; gap: 4px; position: absolute; left: 4%; bottom: 4%; z-index: 2; min-width: 280px; padding: 14px 18px; border-radius: 16px; background: rgba(255, 255, 255, .9); border: 1px solid var(--hair); box-shadow: 0 20px 44px -24px rgba(11, 31, 75, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ring-cap b { font: 600 19px/1.2 var(--f-display); letter-spacing: -.01em; }
.ring-cap__go { justify-self: start; margin-top: 4px; font-weight: 600; font-size: 14px; color: var(--royal); }
.ring-cap__go:hover { text-decoration: underline; }
.banner__stage.is-3d .ring-hint { display: block; position: absolute; right: 6%; bottom: 5%; font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }

/* Λ portal (portal.js adds .is-portal; without WebGL the light 2D banner above stays) */
.banner.is-portal { display: block; height: 100svh; min-height: 600px; padding: 0; overflow: hidden; background: #040d24; }
.banner.is-portal > .banner__glow, .banner.is-portal > .banner__stage { display: none; }
.portal-pin { position: relative; height: 100%; overflow: hidden; display: grid; align-items: center; padding: 72px max(var(--gut), calc((100% - var(--maxw)) / 2)) 40px; }
.portal-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.portal-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(3, 10, 29, .94) 0%, rgba(3, 10, 29, .82) 30%, rgba(3, 10, 29, 0) 56%); }
.is-portal .banner__copy { position: relative; z-index: 2; max-width: 540px; pointer-events: none; will-change: transform, opacity; }
.is-portal .banner__copy a { pointer-events: auto; }
.is-portal .banner__title { color: #f2f6ff; }
.is-portal .banner__title em { color: var(--sky); }
.is-portal .eyebrow { color: var(--sky); }
.is-portal .lede { color: #b6c4e2; }
.is-portal .btn--line { border-color: rgba(242, 246, 255, .4); color: #f2f6ff; }
.is-portal .btn--line:hover { border-color: var(--sky); color: var(--sky); }
.is-portal .ring-cap { display: grid; gap: 4px; position: absolute; right: max(var(--gut), calc((100% - var(--maxw)) / 2)); bottom: 40px; z-index: 2; min-width: 300px; padding: 14px 18px; border-radius: 16px; background: rgba(8, 20, 52, .62); border: 1px solid rgba(148, 184, 255, .25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #f2f6ff; }
.is-portal .ring-cap .mono { color: #9fb0d2; }
.is-portal .ring-cap__go { color: var(--sky); }
.is-portal .scroll-cue { z-index: 2; border-color: rgba(242, 246, 255, .45); }
.is-portal .scroll-cue i { background: #f2f6ff; }
body.on-dark .nav:not(.is-solid) .brand__word, body.on-dark .nav:not(.is-solid) .nav__links { color: #f2f6ff; }
body.on-dark .nav:not(.is-solid) .brand__tag { color: #9fb0d2; }
body.on-dark .nav:not(.is-solid) .brand__lambda { color: var(--sky); }
body.on-dark .nav:not(.is-solid) .btn--ink { background: #f2f6ff; color: var(--ink); }
body.on-dark .nav.is-solid { background: rgba(3, 10, 29, .78); border-color: rgba(148, 184, 255, .18); }
body.on-dark .nav.is-solid .brand__word, body.on-dark .nav.is-solid .nav__links { color: #f2f6ff; }
body.on-dark .nav.is-solid .btn--ink { background: #f2f6ff; color: var(--ink); }

/* ===== 2 · CLIENTS ===== */
.clients { background: linear-gradient(var(--navy-deep), var(--navy)); color: #f2f6ff; padding: 140px 0 110px; overflow: hidden; }
.clients__head { margin-bottom: 44px; }
.clients__note { margin-top: 34px; font-size: 15px; color: #b6c4e2; }
.clients__note b { font: 600 28px/1 var(--f-display); color: #fff; margin-right: 6px; }

/* clients: featured work + logo wall */
.clients__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 8px 40px; }
.clients__head .eyebrow { flex-basis: 100%; }
.clients__count { font: 500 14px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #9fb0d2; }
.clients__count b { font: 600 44px/1 var(--f-display); letter-spacing: -.02em; color: #fff; margin-right: 8px; text-transform: none; }

.wall { position: relative; }
.wall::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(56, 189, 248, .14), transparent 70%); }
.wall:hover::before { opacity: 1; }
.wall__grid { position: relative; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); border-top: 1px solid rgba(148, 184, 255, .12); border-left: 1px solid rgba(148, 184, 255, .12); overflow: hidden; transition: max-height .8s var(--ease); }
.wall__grid.is-collapsed { max-height: 360px; }
/* fade as an overlay, not a mask: a mask would isolate the grid and stop logos blending into the navy */
.wall__fade { position: absolute; left: 0; right: 0; height: 110px; margin-top: -110px; pointer-events: none; background: linear-gradient(rgba(11, 31, 75, 0), #0b1f4b); transition: opacity .4s; }
.wall__grid:not(.is-collapsed) + .wall__fade { opacity: 0; }
.cw { position: relative; height: 120px; display: grid; place-items: center; border-right: 1px solid rgba(148, 184, 255, .12); border-bottom: 1px solid rgba(148, 184, 255, .12); transition: background .3s; }
.cw img { max-width: 72%; max-height: 56%; object-fit: contain; filter: brightness(0) invert(1); opacity: .74; transition: filter .3s, opacity .3s, transform .4s var(--ease); }
.cw--solid img { filter: grayscale(1) invert(1) contrast(1.15); mix-blend-mode: screen; opacity: .85; }
.cw__crop { width: 74%; aspect-ratio: 337 / 94; overflow: hidden; filter: grayscale(1) contrast(2.2) brightness(.95); mix-blend-mode: screen; opacity: .9; transition: filter .3s, transform .4s var(--ease); }
.cw__crop img { width: 474.8%; max-width: none; max-height: none; margin: -10.98% 0 0 -346.9%; filter: none; opacity: 1; }
.cw__name { position: absolute; left: 6px; right: 6px; bottom: 8px; text-align: center; font-size: 12px; line-height: 1.2; color: var(--ink-2); opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .3s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw:hover { background: #fff; }
.cw:hover img { filter: none; mix-blend-mode: normal; opacity: 1; transform: translateY(-7px); }
.cw:hover .cw__crop { filter: none; mix-blend-mode: normal; transform: translateY(-7px); }
.cw:hover .cw__name { opacity: 1; transform: none; }
.wall__more { display: flex; justify-content: center; margin-top: 26px; }
.btn--light { border-color: rgba(242, 246, 255, .4); color: #f2f6ff; }
.btn--light:hover { border-color: var(--sky); color: var(--sky); }

/* ===== project cards (projects page) ===== */
.pcard { flex: none; width: min(520px, 78vw); display: grid; grid-template-rows: auto 1fr; border-radius: 26px; background: var(--white); border: 1px solid var(--hair); overflow: hidden; box-shadow: 0 30px 60px -44px rgba(11, 31, 75, .5); transform-origin: 50% 100%; }
.pcard__media { position: relative; display: block; margin: 12px 12px 0; aspect-ratio: 16 / 10.5; border-radius: 18px; overflow: hidden; background: var(--dga); }
.pcard__img { position: absolute; inset: 0; }
.pcard__img img { width: 100%; transition: transform 6s var(--ease); }
.pcard--real:not(.pcard--shot):hover .pcard__img img { transform: translateY(-40%); }
.pcard--shot .pcard__media { background: #fff; }
.pcard--shot .pcard__img img { height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.pcard--shot:hover .pcard__img img { transform: scale(1.05); }
.pcard__play { position: absolute; right: 14px; bottom: 14px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .94); font: 600 13px/1 var(--f-display); color: var(--ink); transform: translateY(8px); opacity: 0; transition: all .35s var(--ease); }
.pcard--real:hover .pcard__play { transform: none; opacity: 1; }
.pcard__ph { position: absolute; inset: 0; display: grid; place-items: center; background: repeating-linear-gradient(135deg, rgba(30, 94, 255, .05) 0 14px, transparent 14px 28px), #eef2f9; border: 1px dashed #c9d4e6; border-radius: 18px; }
.pcard__ph span { font: 600 84px/1 var(--f-display); color: #7d8aa5; letter-spacing: -.04em; }
.pcard__body { display: grid; align-content: start; gap: 6px; padding: 20px 24px 26px; }
.pcard__body h3, .pcard__body h2 { font: 600 26px/1.15 var(--f-display); letter-spacing: -.02em; }
.pcard__body .ar { font-size: 17px; font-weight: 700; color: var(--dga); text-align: left; }
.pcard__body p { color: var(--ink-2); font-size: 15px; }
.pcard--ph { opacity: .85; }
.pcard--ph h3, .pcard--ph h2 { color: var(--mut); }
.pcard--all { width: min(300px, 60vw); display: grid; align-content: center; justify-items: start; gap: 10px; padding: 34px; background: var(--ink); color: #fff; border-color: var(--ink); transition: background .35s; }
.pcard--all .mono { color: #9fb0d2; }
.pcard--all b { font: 600 38px/1 var(--f-display); letter-spacing: -.03em; }
.pcard__arrow { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--royal); font-size: 24px; margin-top: 10px; transition: transform .4s var(--ease); }
.pcard--all:hover { background: var(--navy); }
.pcard--all:hover .pcard__arrow { transform: translateX(8px); }

/* ===== HOW WE BUILD (wireframe → design → build → live) ===== */
.banner__stage { display: grid; gap: 16px; }
.bsteps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bsteps button { position: relative; width: 100%; display: grid; gap: 2px; padding: 12px 0 0; text-align: left; color: var(--mut); transition: color .3s; }
.bsteps button::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: var(--hair); }
.bsteps button::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; border-radius: 2px; background: var(--royal); transform: scaleX(var(--p, 0)); transform-origin: left; }
.bsteps li.is-on button, .bsteps button:hover { color: var(--ink); }
.bsteps b { font: 600 16px/1.2 var(--f-display); }
.bsteps .mono { font-size: 11px; }
.bsteps li.is-on .mono { color: #1747c9; }
.bcap { min-height: 1.6em; font-size: 14px; color: var(--ink-2); }

.bstage { position: relative; display: grid; place-items: center; }
.bsheet { grid-area: 1 / 1; position: relative; width: min(100%, calc((100svh - 290px) * 1.564)); aspect-ratio: 1600 / 1023; background: var(--white); outline: 1px solid var(--hair); outline-offset: 10px; border-radius: 6px; box-shadow: 0 30px 60px -40px rgba(11, 31, 75, .35); }
.bsheet__img { position: absolute; inset: 0; overflow: hidden; border-radius: 6px; clip-path: inset(0 0 var(--hide, 0%) 0); }
.bsheet__img img { width: 100%; }
.bsheet__scan { position: absolute; left: -14px; right: -14px; top: var(--scan, 0%); height: 2px; background: var(--royal); box-shadow: 0 0 0 1px rgba(30, 94, 255, .18); opacity: 0; }
.bsheet__scan::before { content: "RENDER"; position: absolute; right: 0; top: -20px; font: 500 11px/1 var(--f-mono); letter-spacing: .16em; color: #1747c9; }
.bsheet__wire { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; }
.bwf > * { fill: none; stroke: var(--navy); stroke-width: 3; }
.bwf path { stroke: var(--royal); stroke-width: 2; }
.blabels { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.blabels span { position: absolute; white-space: nowrap; padding: 4px 7px; border-radius: 4px; background: var(--white); border: 1px solid rgba(30, 94, 255, .3); font: 500 11px/1 var(--f-mono); letter-spacing: .1em; color: #1747c9; box-shadow: 0 6px 14px -8px rgba(11, 31, 75, .35); }

.bdev { grid-area: 1 / 1; position: relative; z-index: 2; width: min(100%, 760px); display: none; }
.bdev__lid { position: relative; padding: 2.2% 2.2% 3%; border-radius: 18px 18px 6px 6px; border: 1.5px solid var(--navy); background: transparent; transition: background 1s, border-color 1s, box-shadow 1s; }
.bdev__cam { position: absolute; top: 1%; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; border: 1px solid var(--navy); }
.bdev__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--navy); border-radius: 3px; background: var(--white); }
.bdev__screen img { width: 100%; }
.bdev__base { height: 16px; margin: 0 -5%; border: 1.5px solid var(--navy); border-top: 0; border-radius: 0 0 24px 24px; transition: background 1s, border-color 1s; }
.bdev.is-inked .bdev__lid { background: linear-gradient(160deg, #1f2b45, #0a1122 60%); border-color: transparent; box-shadow: 0 50px 100px -40px rgba(11, 31, 75, .55); }
.bdev.is-inked .bdev__screen { border-color: transparent; }
.bdev.is-inked .bdev__base { background: linear-gradient(#c4cde0, #6f7b96 60%, #3c465e); border-color: transparent; }
.bdev__scroll.is-running { animation: bdevscroll 8s ease-in-out infinite alternate; }
@keyframes bdevscroll { 0%, 6% { transform: translateY(0); } 94%, 100% { transform: translateY(-2.4%); } }
.blive { position: absolute; top: 12px; right: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; background: var(--royal); color: #fff; font: 600 11px/1 var(--f-mono); letter-spacing: .14em; opacity: 0; transition: opacity .5s; }
.blive::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.bdev.is-inked .blive { opacity: 1; }

/* script-on start states (the finished design shows if scripts never run) */
.anim .bsheet__wire, .anim .blabels { opacity: 1; }
.anim .bdev { display: block; opacity: 0; }

/* ===== 3 · PROJECTS — stacked client-coloured cards ===== */
.work { position: relative; padding: 140px 0 60px; }
.work__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 40px; }
.work__count { font: 600 18px/1 var(--f-mono); color: var(--mut); white-space: nowrap; }
.work__count b { font-size: 44px; color: var(--ink); letter-spacing: -.02em; }
.stack { position: relative; padding-bottom: 6vh; }
.scard { position: sticky; top: calc(92px + var(--i) * 16px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 44px; align-items: center;
  min-height: min(66svh, 580px); margin-bottom: 7vh; padding: 34px; border-radius: 30px; background: var(--bg); color: var(--fg);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .35) inset, 0 40px 80px -50px rgba(11, 31, 75, .55); transform-origin: 50% 0; will-change: transform; }
.scard__media { display: block; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); transition: transform .5s var(--ease); }
.scard__media:hover { transform: translateY(-4px); }
.scard__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #eef1f6; border-bottom: 1px solid #dde3ec; }
.scard__bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfd6e2; }
.scard__bar b { margin: 0 auto; padding: 3px 14px; border-radius: 999px; background: #fff; font: 500 12px/1.3 var(--f-mono); color: #5d6b85; }
.scard__shot { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.scard__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.scard__media:hover .scard__shot img { transform: scale(1.04); }
.scard__shot--tall img { height: auto; object-fit: initial; transition: transform 7s ease-in-out; }
.scard__media:hover .scard__shot--tall img { transform: translateY(-62%); }
.scard__body { display: grid; align-content: center; gap: 10px; }
.scard__n { font: 600 64px/1 var(--f-display); letter-spacing: -.04em; color: var(--acc); }
.scard__body .mono { color: var(--mut); }
.scard__body h3 { font: 600 clamp(28px, 3vw, 40px)/1.08 var(--f-display); letter-spacing: -.025em; }
.scard__body .ar { font-family: var(--f-ar); font-size: 19px; font-weight: 700; color: var(--fg); opacity: .9; text-align: left; }
.scard__body p { color: var(--mut); font-size: 15.5px; max-width: 440px; }
.scard__go { justify-self: start; margin-top: 8px; display: inline-flex; align-items: center; height: 46px; padding: 0 22px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg); font-weight: 600; font-size: 15px; transition: transform .35s var(--ease); }
.scard__go:hover { transform: translateY(-2px); }
.scard--all { --bg: var(--ink); --fg: #fff; display: grid; grid-template-columns: 1fr; place-content: center; justify-items: start; gap: 12px; min-height: 44svh; margin-bottom: 0; padding: 48px; }
.scard--all .mono { color: #9fb0d2; }
.scard--all b { font: 600 clamp(44px, 6vw, 84px)/1 var(--f-display); letter-spacing: -.04em; }
.scard__arrow { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--royal); font-size: 26px; transition: transform .4s var(--ease); }
.scard--all:hover .scard__arrow { transform: translateX(10px); }

/* ===== 4 · ALL PROJECTS CTA ===== */
.all { display: grid; justify-items: center; text-align: center; gap: 18px; padding: 150px 0 160px; }
.all__title { font: 600 clamp(42px, 6.4vw, 96px)/1 var(--f-display); letter-spacing: -.04em; }
.magnet { position: relative; display: inline-flex; align-items: center; gap: 14px; height: 74px; padding: 0 36px; margin-top: 20px; border-radius: 999px; border: 1.5px solid var(--ink); overflow: hidden; font: 600 19px/1 var(--f-display); isolation: isolate; }
.magnet__fill { position: absolute; inset: 0; z-index: -1; background: var(--ink); border-radius: inherit; transform: translateY(101%); transition: transform .55s var(--ease); }
.magnet:hover .magnet__fill, .magnet:focus-visible .magnet__fill { transform: none; }
.magnet:hover, .magnet:focus-visible { color: #fff; }
.magnet__arrow { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--royal); color: #fff; transition: transform .45s var(--ease); }
.magnet:hover .magnet__arrow { transform: translateX(6px) rotate(-45deg); }
.magnet__txt, .magnet__arrow { pointer-events: none; }

/* ===== FOOTER ===== */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 24px 0 40px; border-top: 1px solid var(--hair); font-size: 13px; color: var(--mut); }
.foot b { color: var(--ink); }
.foot small { color: var(--royal); }

/* ===== PROJECTS PAGE ===== */
.plist { padding: 150px 0 110px; }
.plist__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 40px; margin-bottom: 34px; }
.plist__title { font: 600 clamp(44px, 6.4vw, 92px)/1 var(--f-display); letter-spacing: -.04em; margin-top: 14px; }
.plist__total { font: 600 15px/1 var(--f-mono); color: var(--mut); }
.plist__total b { font-size: 44px; color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--hair); background: var(--white); font-size: 14px; color: var(--ink-2); transition: all .3s; }
.filter:hover { border-color: var(--royal); color: var(--royal); }
.filter.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter sup { font: 500 10px var(--f-mono); margin-left: 4px; opacity: .7; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid .pcard { width: auto; }
.grid .pcard.is-out { display: none; }
.empty { display: none; padding: 40px; text-align: center; color: var(--mut); border: 1px dashed var(--hair); border-radius: 20px; }
.empty.is-on { display: block; }

/* ===== PHONE ===== */
/* ===== PROJECT PAGES ===== */
.pj-hero { padding: 128px 0 0; background: linear-gradient(var(--bg-p) 0, var(--bg-p) calc(100% - 180px), var(--bg) calc(100% - 180px)); color: var(--fg-p); }
.pj-hero__in { padding-bottom: 46px; }
.pj-crumb { font: 500 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mut-p); margin-bottom: 28px; }
.pj-crumb a { color: var(--fg-p); border-bottom: 1px solid currentColor; }
.pj-crumb span { margin: 0 8px; opacity: .6; }
.pj-hero__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 50px; align-items: end; }
.pj-n { display: block; font: 600 72px/1 var(--f-display); letter-spacing: -.04em; color: var(--acc-p); }
.pj-title { font: 600 clamp(40px, 5.6vw, 82px)/1 var(--f-display); letter-spacing: -.04em; margin: 10px 0 10px; }
.pj-ar { font: 700 clamp(20px, 2.2vw, 28px)/1.4 var(--f-ar); text-align: left; opacity: .92; }
.pj-intro { margin-top: 16px; max-width: 560px; font-size: 18px; color: var(--mut-p); }
.pj-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pj-btn { background: var(--fg-p); color: var(--bg-p); }
.pj-btn--line { background: transparent; color: var(--fg-p); border: 1px solid currentColor; }
.pj-facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid color-mix(in srgb, var(--fg-p) 25%, transparent); }
.pj-facts div { padding: 14px 12px 12px 0; border-bottom: 1px solid color-mix(in srgb, var(--fg-p) 18%, transparent); }
.pj-facts div:first-child { grid-column: 1 / -1; }
.pj-facts dt { font: 500 11px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mut-p); }
.pj-facts dd { margin-top: 4px; font: 500 16px/1.35 var(--f-display); }

.pj-browser { display: block; width: 100%; padding: 0; border: 0; text-align: left; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 1px 0 rgba(11, 31, 75, .06), 0 40px 80px -46px rgba(11, 31, 75, .55); }
.pj-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; background: #eef1f6; border-bottom: 1px solid #dde3ec; }
.pj-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfd6e2; }
.pj-bar b { margin: 0 auto; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 14px; border-radius: 999px; background: #fff; font: 500 12px/1.3 var(--f-mono); color: #5d6b85; }
.pshot { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #f0f3f8; }
.pshot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pshot--crop { aspect-ratio: 1600 / calc(var(--y1) - var(--y0)); background: #2f347a; }
.pshot--crop img { height: auto; object-fit: initial; margin-top: calc(var(--y0) / -16 * 1%); }
.pj-browser--hero .pshot { aspect-ratio: 16 / 8.4; }
.pj-browser--hero .pshot--crop { aspect-ratio: 1600 / 840; }

.pj-over { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 90px; padding: 130px 0 90px; }
.pj-over__text p:not(.eyebrow) { margin-top: 18px; font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.pj-over__list ul { list-style: none; margin-top: 18px; border-top: 1px solid var(--hair); }
.pj-over__list li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--hair); font-size: 15.5px; color: var(--ink); }
.pj-over__list li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--royal); }

.pj-pages { padding: 70px 0 110px; }
.pj-pages__head { margin-bottom: 34px; }
.pj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 28px; }
.pj-card figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 12px; }
.pj-card figcaption b { font: 600 18px/1.3 var(--f-display); }
.pj-card figcaption a { font-size: 14px; font-weight: 600; color: #1747c9; white-space: nowrap; }
.pj-zoom { cursor: zoom-in; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.pj-zoom:hover { transform: translateY(-5px); box-shadow: 0 1px 0 rgba(11, 31, 75, .06), 0 50px 90px -46px rgba(11, 31, 75, .65); }
.pj-zoom .pshot img { transition: transform 1.2s var(--ease); }
.pj-zoom:hover .pshot img { transform: scale(1.03); }

.pj-next { display: block; background: var(--bg-n); color: var(--fg-n); transition: filter .3s; }
.pj-next__in { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 20px; padding: 90px 0; }
.pj-next .mono { grid-column: 1; color: inherit; opacity: .75; }
.pj-next b { grid-column: 1; font: 600 clamp(32px, 4.6vw, 64px)/1 var(--f-display); letter-spacing: -.035em; }
.pj-next__arrow { grid-column: 2; grid-row: 1 / 3; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: var(--fg-n); color: var(--bg-n); font-size: 28px; transition: transform .45s var(--ease); }
.pj-next:hover .pj-next__arrow { transform: translateX(10px); }
.pj .foot { margin-top: 0; padding-top: 24px; }

.lb { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 40px 20px; background: rgba(4, 13, 36, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lb[hidden] { display: none; }
.lb__fig { width: min(1180px, 100%); max-height: 100%; overflow: auto; border-radius: 16px; background: #fff; }
.lb__img .pshot { aspect-ratio: auto; }
.lb__img .pshot img { height: auto; object-fit: initial; }
.lb__img .pshot--crop { aspect-ratio: 1600 / calc(var(--y1) - var(--y0)); }
.lb__fig figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--hair); }
.lb__fig figcaption b { font: 600 17px/1.3 var(--f-display); }
.lb__fig figcaption a { font-weight: 600; color: #1747c9; }
.lb__close { position: fixed; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--ink); font-size: 18px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }

/* project pages in orbit around the client's logo: one pinned screen, scroll turns the ring */
.orb { position: relative; background: var(--bg-p); color: var(--fg-p); }
.orb.is-pinned { height: calc(100svh + var(--n) * 33vh); }
.orb__pin { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); align-items: center; gap: 72px; min-height: 100svh; padding: 96px max(var(--gut), calc((100% - var(--maxw)) / 2)) 28px; overflow: hidden; }
.orb.is-pinned .orb__pin { position: sticky; top: 0; height: 100svh; }
.orb__stage { position: relative; z-index: 1; height: min(100%, 780px); min-height: 460px; perspective: 1500px; touch-action: pan-y; cursor: grab; user-select: none; }
.orb__stage.is-drag { cursor: grabbing; }
.orb__ring { position: absolute; left: 50%; top: 50%; width: 82%; height: 60%; translate: -50% -50%; border: 1px solid color-mix(in srgb, var(--fg-p) 26%, transparent); border-radius: 50%; pointer-events: none; }
.orb__logo { position: absolute; left: 50%; top: 50%; z-index: 50; width: clamp(150px, 12vw, 200px); aspect-ratio: 1; translate: -50% -50%; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .35), 0 0 0 10px color-mix(in srgb, #fff 16%, transparent); overflow: hidden; }
.orb__logo > img { width: 78%; height: auto; }
.orb__logo--dark { background: #2f346e; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .4), 0 0 0 2px var(--acc-p), 0 0 0 12px color-mix(in srgb, #fff 10%, transparent); }
.orb__crop { width: 86%; aspect-ratio: 337 / 94; overflow: hidden; }
.orb__crop img { width: 474.8%; max-width: none; margin: -10.98% 0 0 -346.9%; }
.orb__items { list-style: none; }
.orb__item { display: block; width: clamp(180px, 13vw, 230px); padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.orb__card { display: block; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 30px 60px -22px rgba(0, 0, 0, .5); transition: box-shadow .3s; }
.orb__card .pj-bar { height: 18px; }
.orb__items li.is-front .orb__card { box-shadow: 0 0 0 3px var(--acc-p), 0 30px 60px -22px rgba(0, 0, 0, .5); }
.orb__card .pshot, .orb__card .pshot--crop { aspect-ratio: 16 / 10; }
.orb__card .pshot--crop img { margin-top: calc(var(--y0) / -16 * 1%); }
.orb__item:hover .orb__card, .orb__item:focus-visible .orb__card { box-shadow: 0 0 0 3px var(--acc-p), 0 30px 60px -22px rgba(0, 0, 0, .5); }
/* before the script runs (or without it) the pages sit in a plain grid */
.orb__stage:not(.is-live) { height: auto; cursor: auto; }
.orb__stage:not(.is-live) .orb__ring, .orb__stage:not(.is-live) .orb__logo { display: none; }
.orb__stage:not(.is-live) .orb__items { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.orb__stage:not(.is-live) .orb__item { width: 100%; }
.orb__stage.is-live .orb__items li { position: absolute; left: 50%; top: 50%; transform-origin: 0 0; }
.orb__stage.is-live .orb__item { translate: -50% -50%; }
.orb__info { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 22px; max-width: 560px; justify-self: end; width: 100%; }
.orb__kicker { display: flex; align-items: center; gap: 10px; font: 500 12px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--acc-p); }
.orb__kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.orb__count { font: 500 13px/1 var(--f-mono); letter-spacing: .12em; color: var(--mut-p); }
.orb__title { margin-top: 10px; font: 600 clamp(34px, 3.6vw, 52px)/1.04 var(--f-display); letter-spacing: -.03em; }
.orb__path { text-align: left; margin-top: 8px; font: 500 13px/1.4 var(--f-mono); color: var(--acc-p); }
.orb__desc { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--mut-p); min-height: 5em; }
.orb__ctrl { display: flex; align-items: center; gap: 14px; }
.orb__arrow { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--fg-p) 40%, transparent); background: transparent; color: var(--fg-p); font-size: 18px; cursor: pointer; transition: background .25s, color .25s, opacity .25s; }
.orb__arrow:hover, .orb__arrow:focus-visible { background: var(--fg-p); color: var(--bg-p); }
.orb__arrow:disabled { opacity: .3; pointer-events: none; }
.orb__steps { flex: 1; display: flex; gap: 6px; }
.orb__steps button { flex: 1; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.orb__steps button::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; translate: 0 -50%; border-radius: 3px; background: color-mix(in srgb, var(--fg-p) 22%, transparent); transition: background .3s, height .3s; }
.orb__steps button[aria-current="true"]::before { background: var(--acc-p); height: 5px; }
.orb__steps button:hover::before { background: color-mix(in srgb, var(--fg-p) 55%, transparent); }
.orb__hint { font-size: 13px; color: var(--mut-p); }

/* pop-up: the full page + its description */
.pv { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: rgba(6, 12, 30, .72); backdrop-filter: blur(6px); }
.pv[hidden] { display: none; }
.pv__panel { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 340px; width: min(1240px, 100%); height: min(860px, calc(100svh - 48px)); border-radius: 16px; overflow: hidden; background: #fff; color: var(--ink, #0b1f4b); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .6); }
.pv__view { display: flex; flex-direction: column; min-height: 0; background: #eef1f6; }
.pv__view .pj-bar { flex: none; }
.pv__scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.pv__scroll.is-short { display: flex; flex-direction: column; justify-content: center; }
.pv__panel { transition: height .35s var(--ease); }
.pv__scroll img { display: block; width: 100%; height: auto; }
.pv__scroll .pshot--crop { display: block; }
.pv__info { display: flex; flex-direction: column; gap: 14px; padding: 56px 32px 32px; overflow-y: auto; }
.pv__n { font: 500 12px/1.4 var(--f-mono); letter-spacing: .12em; color: var(--mut, #5b6b8c); }
.pv__title { font: 600 30px/1.15 var(--f-display); letter-spacing: -.02em; }
.pv__desc { font-size: 16px; line-height: 1.6; color: #3c4a68; }
.pv__live { align-self: flex-start; background: var(--bg-p); color: var(--fg-p); }
.pv__live[hidden] { display: none; }
.pv__nav { margin-top: auto; display: flex; gap: 10px; }
.pv__nav button { flex: 1; padding: 12px; border-radius: 10px; border: 1px solid #d5dbe7; background: #fff; font: 500 14px var(--f-display); cursor: pointer; }
.pv__nav button:hover, .pv__nav button:focus-visible { border-color: var(--bg-p); }
.pv__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #0b1f4b; color: #fff; font-size: 16px; cursor: pointer; }

@media (max-width: 900px) {
  .orb__pin { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; align-items: stretch; gap: 10px; padding: 72px var(--gut) 18px; }
  .orb__stage { height: auto; min-height: 0; }
  .orb__ring { width: 74%; height: 58%; }
  .orb__logo { width: 88px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .35), 0 0 0 6px color-mix(in srgb, #fff 16%, transparent); }
  .orb__item { width: 28vw; }
  .orb__info { gap: 12px; max-width: none; }
  .orb__kicker, .orb__hint { display: none; }
  .orb__now { display: grid; grid-template-columns: 1fr auto; align-items: baseline; }
  .orb__count { grid-column: 2; grid-row: 1; }
  .orb__title { grid-column: 1; grid-row: 1; margin: 0; font-size: 26px; }
  .orb__path { grid-column: 1 / -1; margin-top: 2px; }
  .orb__desc { grid-column: 1 / -1; margin-top: 6px; font-size: 14.5px; min-height: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .orb__acts .btn { width: 100%; justify-content: center; }
  .pv { padding: 0; }
  .pv__panel { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; height: 100svh; border-radius: 0; }
  .pv__info { padding: 18px 18px 20px; gap: 8px; max-height: 42svh; }
  .pv__title { font-size: 22px; }
  .pv__desc { font-size: 14.5px; }
  .pv__close { top: 8px; right: 8px; }
  .pj-hero { padding-top: 88px; background: linear-gradient(var(--bg-p) 0, var(--bg-p) calc(100% - 90px), var(--bg) calc(100% - 90px)); }
  .pj-hero__grid, .pj-over { grid-template-columns: 1fr; gap: 28px; }
  .pj-n { font-size: 52px; }
  .pj-intro, .pj-over__text p:not(.eyebrow) { font-size: 16px; }
  .pj-over { padding-top: 56px; }
  .pj-grid { grid-template-columns: 1fr; gap: 26px; }
  .pj-next__in { padding: 44px 0; }
  .pj-next__arrow { width: 54px; height: 54px; }
  .scard { grid-template-columns: 1fr; gap: 18px; min-height: 0; padding: 18px; border-radius: 24px; top: calc(76px + var(--i) * 10px); margin-bottom: 5vh; }
  .scard__n { font-size: 40px; }
  .scard__body h3 { font-size: 26px; }
  .scard__body p { font-size: 14.5px; }
  .scard--all { min-height: 30svh; padding: 30px; }
  .work { padding-top: 80px; }
  .nav__links { display: none; }
  .nav { justify-content: space-between; }
  .banner { grid-template-columns: 1fr; padding-top: 100px; gap: 46px; }
  .banner__title { font-size: clamp(38px, 11vw, 60px); }
  .chip { padding: 9px 12px; font-size: 12px; }
  .chip b { font-size: 15px; }
  .chip--a { left: 0; top: -8%; }
  .chip--b { right: 0; }
  .scroll-cue { display: none; }
  .banner__stage.is-3d { height: 66svh; margin: 0 -16px; }
  .portal-pin { align-items: start; padding-top: 92px; }
  .portal-scrim { background: linear-gradient(180deg, rgba(3, 10, 29, .95) 0%, rgba(3, 10, 29, .8) 30%, rgba(3, 10, 29, 0) 48%); }
  .is-portal .banner__copy .lede { display: none; }
  .is-portal .btns { margin-top: 18px; }
  .is-portal .banner__title { font-size: clamp(34px, 9.5vw, 48px); }
  .is-portal .lede { font-size: 14.5px; }
  .is-portal .ring-cap { left: 16px; right: 16px; bottom: 18px; min-width: 0; }
  .banner__stage.is-3d .ring-cap { left: 16px; right: 16px; bottom: 0; min-width: 0; }
  .banner__stage.is-3d .ring-hint { display: none; }
  .wall__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wall__grid.is-collapsed { max-height: 360px; }
  .cw { height: 90px; }
  .clients__count b { font-size: 34px; }
  .grid { grid-template-columns: 1fr; }
  .bsheet { width: 100%; }
  .bsteps b { font-size: 13px; }
  .blabels span { font-size: 9px; padding: 3px 5px; }
  .bdev { width: 88%; }
}
@media (prefers-reduced-motion: reduce) {
  .dev__live.is-running, .scroll-cue i { animation: none; }
}

/* ITMAM logo (from itmam.com): black wordmark on light pages, white on dark ones */
.brand__logo { display: block; height: 38px; width: auto; }
.brand__logo--light { display: none; }
.on-dark .brand__logo--dark { display: none; }
.on-dark .brand__logo--light { display: block; }
.foot__brand { display: inline-flex; align-items: center; gap: 12px; }
.foot__logo { height: 26px; width: auto; }
.foot__logo--light { display: none; }
.um .foot__logo--dark { display: none; }
.um .foot__logo--light { display: block; }
@media (max-width: 900px) { .brand__logo { height: 30px; } }
