/* Satya Productions — V3 preview. Original layout and motion; Inter throughout. */
:root {
  --bg: #0c0c0b;
  --bg-2: #151514;
  --ink: #f2efe8;
  --ink-2: #c9c6be;
  --muted: #8b8982;
  --line: rgba(242, 239, 232, 0.14);
  --line-2: rgba(242, 239, 232, 0.28);
  --flag: #ffd400;
  --flag-ink: #141300;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in: cubic-bezier(0.55, 0, 0.45, 1);
  --t-letter: 460ms;
  --t-step: 19ms;
  --header-h: 60px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 Inter, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 12px; }
.skip:focus { left: 8px; }
.wrap { padding: 0 var(--gutter); max-width: 1600px; margin: 0 auto; }
.eyebrow { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.025em; line-height: 1.04; margin: 0; }
.h-xl { font-size: clamp(40px, 7.4vw, 112px); letter-spacing: -0.04em; }
.h-l { font-size: clamp(32px, 4.6vw, 68px); letter-spacing: -0.035em; }
.h-m { font-size: clamp(22px, 2.4vw, 32px); }
.lede { font-size: clamp(18px, 1.6vw, 22px); color: var(--ink-2); max-width: 46ch; line-height: 1.45; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
section { padding: clamp(64px, 9vw, 128px) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); flex-wrap: wrap; }
.sec-head .h-l { max-width: 18ch; }

/* Review markers */
.ap, .mv {
  display: inline-block; vertical-align: 0.08em; margin: 0 0.15em; padding: 1px 7px 2px;
  background: var(--flag); color: var(--flag-ink); border-radius: 3px;
  font: 600 11px/1.5 Inter, Arial, sans-serif; letter-spacing: 0.01em; text-transform: none;
  white-space: nowrap; cursor: help; position: relative;
}
.mv { background: transparent; color: var(--flag); box-shadow: inset 0 0 0 1px var(--flag); }
.ap:target, .mv:target { animation: flash 1.4s var(--ease) 2; }
@keyframes flash { 50% { box-shadow: 0 0 0 6px rgba(255, 212, 0, 0.35); } }
.ap[data-note]:hover::after, .ap[data-note]:focus::after {
  content: attr(data-note); position: absolute; left: 0; top: calc(100% + 6px); z-index: 60;
  width: max-content; max-width: min(320px, 80vw); white-space: normal; text-align: left;
  background: #1f1e12; color: #fff6c2; border: 1px solid var(--flag); padding: 8px 10px; border-radius: 4px;
  font-weight: 500; font-size: 12px; line-height: 1.4;
}
.review-pill {
  position: fixed; left: 16px; bottom: 16px; z-index: 40; background: var(--flag); color: var(--flag-ink);
  font-size: 12px; font-weight: 600; padding: 8px 12px; border-radius: 99px; box-shadow: 0 6px 24px rgba(0,0,0,.4);
}
.preview-bar { background: #1a1a10; color: #fff3b0; font-size: 12px; text-align: center; padding: 6px 16px; border-bottom: 1px solid rgba(255,212,0,.25); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  background: rgba(12, 12, 11, 0.72); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.home .site-header { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background .4s, border-color .4s; }
.home.scrolled .site-header { background: rgba(12, 12, 11, 0.8); border-color: var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: 0.22em; font-size: 13px; }
.logo img { height: 22px; width: auto; }
.nav { display: flex; gap: clamp(18px, 2.4vw, 36px); align-items: center; }
.nav a { font-size: 14px; font-weight: 500; color: var(--ink-2); padding: 6px 0; position: relative; }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); }
.nav .cta-link { color: var(--bg); background: var(--ink); padding: 7px 14px; border-radius: 99px; }

/* Letter-by-letter reveal: each glyph has a twin stacked below; hover/focus lifts both one line. */
.split { display: inline-flex; }
.split .l { display: inline-block; overflow: hidden; height: 1.25em; line-height: 1.25; vertical-align: top; }
.split .l > span { display: block; transition: transform var(--t-letter) var(--ease); transition-delay: calc(var(--i) * var(--t-step)); }
.split .l > span + span { color: var(--ink); }
a:hover .split .l > span, a:focus-visible .split .l > span { transform: translateY(-100%); }
.cta-link .split .l > span + span { color: var(--bg); }

.menu-btn { display: none; font-size: 14px; font-weight: 500; padding: 8px 0; }
.menu-btn .bars { display: inline-block; width: 18px; height: 8px; position: relative; margin-left: 10px; vertical-align: middle; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
.menu-btn .bars::before { top: 0; } .menu-btn .bars::after { top: 6.5px; }
.menu-open .menu-btn .bars::before { top: 3.25px; transform: rotate(45deg); }
.menu-open .menu-btn .bars::after { top: 3.25px; transform: rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--bg); padding: calc(var(--header-h) + 32px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  visibility: hidden; opacity: 0; transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.menu-open .mobile-menu { visibility: visible; opacity: 1; transition: opacity .35s var(--ease); }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li { overflow: hidden; border-bottom: 1px solid var(--line); }
.mobile-menu li a { display: block; font-size: clamp(36px, 11vw, 64px); font-weight: 500; letter-spacing: -0.04em; padding: 10px 0 12px; transform: translateY(105%); transition: transform .7s var(--ease); transition-delay: calc(80ms + var(--i) * 55ms); }
.menu-open .mobile-menu li a { transform: none; }
.mobile-menu .foot { color: var(--muted); font-size: 14px; opacity: 0; transition: opacity .6s var(--ease) .45s; }
.menu-open .mobile-menu .foot { opacity: 1; }
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .menu-open { overflow: hidden; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 99px; font-weight: 500; font-size: 15px; border: 1px solid var(--line-2); transition: background .3s, color .3s, border-color .3s; }
.btn:hover { border-color: var(--ink); }
.btn.solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.solid:hover { background: #fff; }
.btn .arr { transition: transform .45s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero */
.hero { position: relative; height: 100svh; min-height: 560px; padding: 0; overflow: hidden; background: #000; }
.hero video, .hero .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 45%, rgba(0,0,0,.72) 100%); pointer-events: none; }
.hero-inner { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 var(--gutter) clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.hero h1 { max-width: 14ch; }
.hero .lede { margin: 18px 0 28px; color: #e9e6de; }
.hero-meta { text-align: right; font-size: 13px; color: var(--ink-2); display: grid; gap: 10px; justify-items: end; }
.hero-meta a:hover { color: var(--ink); }
.pause-btn { font-size: 12px; border: 1px solid var(--line-2); border-radius: 99px; padding: 6px 12px; color: var(--ink-2); }
.hero h1, .hero .lede, .hero .btn-row { animation: rise 1.1s var(--ease) both; }
.hero .lede { animation-delay: .12s; } .hero .btn-row { animation-delay: .22s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@media (max-width: 760px) { .hero-inner { grid-template-columns: 1fr; } .hero-meta { justify-items: start; text-align: left; } }

/* Sector strip */
.sectors { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); transition: background .25s, color .25s, border-color .25s; }
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .n { font-size: 11px; color: inherit; opacity: .6; font-variant-numeric: tabular-nums; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(28px, 3vw, 44px) clamp(12px, 1.6vw, 24px); }
.card { grid-column: span 4; display: block; }
.grid.featured .card:nth-child(1) { grid-column: span 12; }
.grid.featured .card:nth-child(2), .grid.featured .card:nth-child(3) { grid-column: span 6; }
.grid.featured .card:nth-child(n+4) { grid-column: span 3; }
@media (max-width: 980px) { .grid.featured .card:nth-child(n+4) { grid-column: span 6; } }
.card .media { position: relative; aspect-ratio: 16 / 9; background: var(--bg-2); overflow: hidden; border-radius: 2px; }
.grid.featured .card:nth-child(1) .media { aspect-ratio: 21 / 9; }
.card .media img, .card .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .5s; }
.card .media video { opacity: 0; }
.card.playing .media video { opacity: 1; }
.card:hover .media img, .card:hover .media video { transform: scale(1.025); }
.card .meta { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; align-items: baseline; }
.card .client { font-size: 13px; color: var(--muted); }
.card .title { font-size: clamp(17px, 1.4vw, 20px); font-weight: 500; letter-spacing: -0.01em; margin-top: 2px; }
.card .tags { font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; }
.card .method { position: absolute; left: 12px; top: 12px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.pill { font-size: 11px; font-weight: 500; padding: 3px 8px; border-radius: 99px; background: rgba(12,12,11,.66); color: var(--ink); backdrop-filter: blur(6px); }
.card.slot .media { display: grid; place-items: center; border: 1px dashed rgba(255,212,0,.55); background: repeating-linear-gradient(135deg, #12120f 0 14px, #161610 14px 28px); }
.card.slot .media .slot-label { text-align: center; padding: 20px; color: var(--ink-2); font-size: 14px; max-width: 34ch; }
.card[hidden] { display: none; }
@media (max-width: 980px) { .card { grid-column: span 6; } }
@media (max-width: 620px) {
  .card, .grid.featured .card:nth-child(n) { grid-column: span 12; }
  .grid.featured .card:nth-child(1) .media { aspect-ratio: 16 / 9; }
}
.sector-note { border-left: 2px solid var(--flag); padding: 6px 0 6px 16px; margin: 0 0 32px; color: var(--ink-2); max-width: 70ch; font-size: 15px; }
.sector-note[hidden] { display: none; }
.work-toolbar { position: sticky; top: var(--header-h); z-index: 20; background: rgba(12,12,11,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 14px 0; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.work-toolbar .count { font-size: 13px; color: var(--muted); margin-top: 10px; }
@media (max-width: 620px) {
  .work-toolbar .sectors { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scrollbar-width: none; }
  .work-toolbar .sectors::-webkit-scrollbar { display: none; }
  .work-toolbar .chip { flex: none; }
}

/* Services, process */
.svc { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.svc > div { padding: 28px 24px 8px 0; border-right: 1px solid var(--line); padding-left: 24px; }
.svc > div:first-child { padding-left: 0; }
.svc > div:last-child { border-right: 0; }
.svc .num { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.svc h3 { font-size: 22px; margin: 36px 0 12px; }
.svc p { color: var(--ink-2); font-size: 15px; }
.svc .ex { font-size: 13px; color: var(--muted); }
.svc .ex a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
@media (max-width: 980px) { .svc { grid-template-columns: 1fr 1fr; } .svc > div:nth-child(2) { border-right: 0; } .svc > div:nth-child(3) { padding-left: 0; } .svc > div { border-bottom: 1px solid var(--line); } }
@media (max-width: 620px) { .svc { grid-template-columns: 1fr; } .svc > div { border-right: 0; padding-left: 0 !important; } .svc h3 { margin-top: 20px; } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 80px 1fr 1.4fr; gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); align-items: baseline; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .n { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: clamp(20px, 2vw, 28px); }
.steps p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .steps li { grid-template-columns: 40px 1fr; } .steps p { grid-column: 2; } }

/* Logos, quote */
.logos { display: grid; grid-template-columns: repeat(8, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logos div { aspect-ratio: 3 / 2; display: grid; place-items: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18% 20%; }
.logos img { max-height: 34px; width: auto; filter: grayscale(1) brightness(0) invert(.86); opacity: .8; }
.logos img.light { filter: grayscale(1) brightness(1.4); }
@media (max-width: 860px) { .logos { grid-template-columns: repeat(4, 1fr); } }
.quote-slot { margin-top: 48px; border: 1px dashed rgba(255,212,0,.5); padding: 28px; max-width: 860px; }
.quote-slot blockquote { margin: 0 0 12px; font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.02em; line-height: 1.3; color: var(--ink-2); }

/* Pricing */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.4vw, 20px); align-items: stretch; }
.offer { border: 1px solid var(--line); border-radius: 6px; padding: clamp(22px, 2.2vw, 32px); display: flex; flex-direction: column; gap: 18px; background: var(--bg); }
.offer.hl { background: var(--bg-2); border-color: var(--line-2); }
.offer .tag { font-size: 12px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.offer h3 { font-size: clamp(24px, 2.2vw, 32px); }
.offer .price { font-size: clamp(34px, 3.4vw, 48px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.offer .price small { font-size: 15px; color: var(--muted); letter-spacing: 0; font-weight: 400; }
.offer .scope { color: var(--ink-2); font-size: 15px; margin: 0; }
.offer ul { list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--ink-2); }
.offer ul li { padding: 9px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.offer ul li b { font-weight: 500; color: var(--ink); text-align: right; }
.offer .btn { justify-content: center; margin-top: auto; }
.offer details { border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.offer details summary { cursor: pointer; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; color: var(--ink); font-weight: 500; }
.offer details summary::-webkit-details-marker { display: none; }
.offer details summary::after { content: "+"; transition: transform .35s var(--ease); }
.offer details[open] summary::after { transform: rotate(45deg); }
.offer details ul li { display: block; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 99px; padding: 3px; gap: 2px; }
.seg button { font-size: 13px; padding: 6px 14px; border-radius: 99px; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
@media (max-width: 980px) { .offers { grid-template-columns: 1fr; max-width: 640px; } }
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; margin-top: 20px; }
.compare-wrap[hidden] { display: none; }
table.compare { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 14px; }
table.compare th, table.compare td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
table.compare thead th { font-weight: 500; color: var(--ink); background: var(--bg-2); }
table.compare tbody th { font-weight: 500; color: var(--muted); width: 18%; position: sticky; left: 0; background: var(--bg); }
table.compare td { color: var(--ink-2); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font-size: clamp(17px, 1.5vw, 21px); font-weight: 500; display: flex; justify-content: space-between; gap: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 22px; color: var(--ink-2); max-width: 70ch; }
.two-col { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* Big CTA */
.big-cta { border-top: 1px solid var(--line); }
.big-cta a.big { display: block; font-size: clamp(44px, 9vw, 150px); font-weight: 500; letter-spacing: -0.05em; line-height: .95; }
.big-cta a.big .split .l { height: 1.02em; line-height: 1.02; }

/* Project page */
.film { background: #000; }
.film .frame { position: relative; width: 100%; max-height: calc(100svh - var(--header-h)); aspect-ratio: 16 / 9; margin: 0 auto; }
.film .frame.wide { aspect-ratio: 2.39 / 1; }
.film .frame.vertical { aspect-ratio: 9 / 16; width: min(100%, 560px, calc(82vh * 9 / 16)); margin-inline: auto; }
.film video, .film iframe, .film .facade { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.facade { display: block; cursor: pointer; }
.facade img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.facade .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; background: rgba(242,239,232,.92); color: var(--bg); display: grid; place-items: center; font-size: 13px; font-weight: 600; transition: transform .5s var(--ease); }
.facade:hover .play, .facade:focus-visible .play { transform: translate(-50%, -50%) scale(1.08); }
.slot-film { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; border: 1px dashed rgba(255,212,0,.55); background: repeating-linear-gradient(135deg, #12120f 0 14px, #161610 14px 28px); color: var(--ink-2); padding: 24px; }
.proj-head { padding: clamp(40px, 6vw, 88px) 0 clamp(32px, 4vw, 56px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; border-bottom: 1px solid var(--line); }
.proj-head .h-xl { font-size: clamp(40px, 6.4vw, 96px); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; font-size: 14px; }
.facts dt { color: var(--muted); font-size: 12px; margin-bottom: 2px; }
.facts dd { margin: 0; color: var(--ink); }
@media (max-width: 860px) { .proj-head { grid-template-columns: 1fr; } }
.case { display: grid; grid-template-columns: 220px 1fr; gap: 24px clamp(24px, 5vw, 80px); padding: clamp(40px, 5vw, 72px) 0; border-bottom: 1px solid var(--line); }
.case h2 { font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 6px; }
.case .body { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; max-width: 62ch; color: var(--ink-2); }
.case .body ul { margin: 0; padding-left: 1.1em; }
.case .body li { margin-bottom: 6px; }
@media (max-width: 760px) { .case { grid-template-columns: 1fr; } }
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; counter-reset: g; }
.gallery figure { margin: 0; grid-column: span 2; position: relative; counter-increment: g; }
.gallery figure:nth-child(5n+1) { grid-column: span 4; }
.gallery figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--bg-2); }
.gallery figure:nth-child(5n+1) img { aspect-ratio: auto; height: 100%; }
.gallery figcaption { position: absolute; left: 10px; bottom: 8px; font-size: 11px; color: var(--ink); background: rgba(0,0,0,.5); padding: 2px 6px; border-radius: 3px; }
.gallery figcaption::before { content: counter(g, decimal-leading-zero) " "; color: var(--muted); }
@media (max-width: 620px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery figure, .gallery figure:nth-child(5n+1) { grid-column: span 1; } .gallery figure:nth-child(5n+1) img { aspect-ratio: 3 / 2; } }
.subfilms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.subfilms .frame { position: relative; aspect-ratio: 9 / 16; background: #000; }
.subfilms .frame.h { aspect-ratio: 16 / 9; }
.subfilms iframe, .subfilms .facade { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.subfilms p { font-size: 13px; color: var(--muted); margin-top: 8px; }
@media (max-width: 620px) { .subfilms { grid-template-columns: 1fr 1fr; } }
.next-proj { display: flex; justify-content: space-between; gap: 24px; padding: 40px 0; border-bottom: 1px solid var(--line); align-items: center; }
.next-proj a:hover { color: var(--ink-2); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-grid img { width: 100%; border-radius: 2px; }
.cv { list-style: none; margin: 0; padding: 0; }
.cv li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.cv li span:first-child { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* Contact form */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: 7px; font-size: 13px; color: var(--muted); }
.form input, .form select, .form textarea { font: inherit; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; min-height: 48px; width: 100%; }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); outline: none; }
.form [aria-invalid="true"] { border-color: #ff8a65; }
.form .err { color: #ff8a65; font-size: 12px; min-height: 1em; }
@media (max-width: 620px) { .form { grid-template-columns: 1fr; } }
.offer-summary { border: 1px solid var(--line-2); border-radius: 6px; padding: 22px; background: var(--bg-2); position: sticky; top: calc(var(--header-h) + 20px); }
.offer-summary h3 { font-size: 22px; margin: 6px 0 10px; }
.offer-summary ul { margin: 12px 0 0; padding-left: 1.1em; color: var(--ink-2); font-size: 14px; }
.brief-out { margin-top: 32px; border: 1px solid var(--ink); border-radius: 6px; padding: 24px; }
.brief-out[hidden] { display: none; }
.brief-out pre { white-space: pre-wrap; font: 13px/1.6 ui-monospace, Menlo, monospace; color: var(--ink-2); background: #000; padding: 16px; border-radius: 4px; max-height: 420px; overflow: auto; }

/* Review page */
.review-list { list-style: none; padding: 0; margin: 0; }
.review-list li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14px; }
.review-list a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.review-list .ctx { color: var(--muted); font-size: 13px; }
@media (max-width: 620px) { .review-list li { grid-template-columns: 1fr; gap: 4px; } }

/* Footer */
footer.site-footer { border-top: 1px solid var(--line); padding: 48px 0 80px; font-size: 14px; color: var(--muted); }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
footer a:hover { color: var(--ink); }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr 1fr; } }

/* Reveal on scroll */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .split .l > span + span { display: none; }
  a:hover .split .l > span, a:focus-visible .split .l > span { transform: none; }
  .nav a:hover, .nav a:focus-visible { text-decoration: underline; text-underline-offset: 6px; }
  .mobile-menu li a { transform: none; }
  .rv { opacity: 1; transform: none; }
  .card:hover .media img { transform: none; }
}
.offer .seg { align-self: flex-start; }
.offer .price.q { font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -0.02em; line-height: 1.15; }
.logos img[src*="masdar"] { max-height: 56px; filter: grayscale(1) brightness(2.4); }
.case .body:has(.gallery), .case .body:has(.subfilms), .case .body:has(.film) { max-width: none; }
/* Gallery: uniform numbered strip; 2:1 crop removes baked-in letterbox bars from film frames. */
.gallery { grid-template-columns: repeat(3, 1fr); }
.gallery figure, .gallery figure:nth-child(5n+1) { grid-column: span 1; }
.gallery figure img, .gallery figure:nth-child(5n+1) img { aspect-ratio: 2 / 1; height: auto; object-fit: cover; }
@media (max-width: 620px) { .gallery { grid-template-columns: 1fr 1fr; } }
.nav a.cta-link, .nav a.cta-link[aria-current="page"] { color: var(--bg); }
.nav a.cta-link::after { display: none; }
/* Full-screen page heroes (Work, Services, About) share the home hero; header floats over them. */
.has-hero .site-header { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background .4s, border-color .4s; }
.has-hero.scrolled .site-header { background: rgba(12, 12, 11, 0.8); border-color: var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.has-hero .work-toolbar { top: var(--header-h); }
.page-hero .h-xl { font-size: clamp(56px, 12vw, 180px); }
.page-hero .lede { max-width: 44ch; }
.page-hero .hero-meta span { max-width: 34ch; }
.sound-btn { font-size: 12px; border-radius: 99px; padding: 6px 12px; background: var(--ink); color: var(--bg); }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; z-index: 3; transform: translateX(-50%); font-size: 18px; color: var(--ink-2); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 50% { transform: translate(-50%, 6px); } }
@media (max-width: 760px) { .page-hero .hero-meta .btn-row { justify-content: flex-start !important; } .scroll-cue { display: none; } }
.socials { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.socials.big { gap: 0; margin-top: 8px; }
.socials.big li { border-top: 1px solid var(--line); padding: 12px 0; font-size: 18px; }
.socials.big li a::after { content: " ↗"; color: var(--muted); }
.socials.inline { display: flex; gap: 20px; flex-wrap: wrap; }
.socials.inline a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.menu-social { display: flex; gap: 18px; margin-top: 14px; }
.menu-social a { color: var(--ink); }
.form [hidden] { display: none; }
.form label { align-content: start; }
/* Metrics band: segmented rings (after the finance-tab donut), count-up, slow live sweep */
.metrics { padding: clamp(56px, 7vw, 96px) 0; border-bottom: 1px solid var(--line); background: radial-gradient(120% 140% at 50% 0%, #10131c 0%, var(--bg) 70%); }
.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); }
.metric { margin: 0; text-align: center; }
.ring { position: relative; width: min(240px, 70vw); aspect-ratio: 1; margin: 0 auto; }
.ring svg { width: 100%; height: 100%; overflow: visible; }
.ring .seg { opacity: 0; transition: opacity .5s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.metric.in .ring .seg { opacity: 1; }
.ring .sweep { transform-origin: 100px 100px; opacity: 0; transition: opacity .8s var(--ease) .7s; }
.metric.in .ring .sweep { opacity: 1; animation: sweep 18s linear infinite; }
.metric:nth-child(2).in .ring .sweep { animation-duration: 23s; animation-direction: reverse; }
.metric:nth-child(3).in .ring .sweep { animation-duration: 29s; }
@keyframes sweep { to { transform: rotate(360deg); } }
.ring-num { position: absolute; inset: 0; display: grid; place-items: center; }
.ring-num .count { font-size: clamp(30px, 3.2vw, 44px); font-weight: 400; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: #f4f5f8; }
.metric figcaption { margin-top: 18px; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: #a3a6ad; font-weight: 500; }
@media (max-width: 760px) { .metrics-grid { grid-template-columns: 1fr; gap: 48px; } .ring { width: 200px; } }
@media (prefers-reduced-motion: reduce) { .ring .seg, .ring .sweep { opacity: 1; } .metric.in .ring .sweep { animation: none; } }
/* Metrics sit on the hero video: small, translucent rings */
.hero-metrics { display: flex; gap: clamp(14px, 2vw, 28px); margin-bottom: 18px; }
.hero-metrics .metric { width: 96px; }
.hero-metrics .ring { width: 96px; }
.hero-metrics .ring svg { filter: drop-shadow(0 2px 10px rgba(0,0,0,.35)); }
.hero-metrics .ring-num .count { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.hero-metrics figcaption { margin-top: 8px; font-size: 9.5px; letter-spacing: 0.16em; line-height: 1.4; color: #e6e7ea; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.hero-metrics figcaption .ap { display: block; width: max-content; margin: 4px auto 0; letter-spacing: 0; }
.hero-metrics .ap[data-note]:hover::after, .hero-metrics .ap[data-note]:focus::after { top: auto; bottom: calc(100% + 6px); left: auto; right: 0; }
@media (max-width: 760px) { .hero-metrics { gap: 12px; } .hero-metrics .metric, .hero-metrics .ring { width: 84px; } .hero-metrics .ring-num .count { font-size: 16px; } }
.hero-metrics { gap: 6px; }
.hero-metrics .metric { width: 124px; }
.hero-metrics .ring { width: 90px; }
.hero-metrics figcaption { white-space: nowrap; letter-spacing: 0.14em; }
@media (max-width: 760px) { .hero-metrics .metric { width: 104px; } .hero-metrics .ring { width: 76px; } .hero-metrics figcaption { font-size: 8.5px; letter-spacing: 0.08em; } }
/* Now-playing caption that follows the reel */
.now-playing { display: grid; justify-items: end; text-align: right; gap: 2px; min-width: 220px; transition: opacity .45s var(--ease), transform .45s var(--ease); text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.now-playing.out { opacity: 0; transform: translateY(6px); }
.now-playing .np-label { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.now-playing .np-client { font-size: 13px; color: var(--ink-2); }
.now-playing .np-title { font-size: 17px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.now-playing:hover .np-title { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .now-playing { justify-items: start; text-align: left; } }
.hero-metrics figcaption { white-space: normal; text-wrap: balance; }
.hero-metrics .ring-num .count { font-size: 17px; }
.offer .who { font-size: 13px; color: var(--ink); border-left: 2px solid #a9c7ff; padding-left: 10px; margin: 0; line-height: 1.45; }
.legal-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
.legal-row a:hover { color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* Awards band */
.awards { padding: 22px 0; border-bottom: 1px solid var(--line); }
.awards .wrap { display: flex; gap: 20px 28px; align-items: baseline; flex-wrap: wrap; }
.awards ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; color: var(--ink-2); }
.awards li { white-space: nowrap; }
/* Clickable logos */
.logos a { aspect-ratio: 3 / 2; display: grid; place-items: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18% 20%; transition: background .3s; }
.logos a:hover, .logos a:focus-visible { background: var(--bg-2); }
.logos a:hover img { opacity: 1; }
/* WhatsApp */
.wa-btn { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 99px; background: #25d366; color: #062e14; font-size: 14px; font-weight: 600; box-shadow: 0 6px 24px rgba(0,0,0,.4); }
.wa-btn::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #062e14; }
.wa-btn.off { opacity: .9; }
.btn.off { cursor: default; }
.svc h3 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.svc-prices { list-style: none; margin: 0; padding: 0; }
.svc-prices li { border-top: 1px solid var(--line); padding: 16px 0; font-size: 18px; color: var(--ink-2); }
.svc-prices li b { color: var(--ink); font-weight: 500; }
.svc-prices li:last-child { border-bottom: 1px solid var(--line); }
.eyebrow a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- language switch */
.head-end { display: flex; align-items: center; gap: 16px; }
.nav .lang, .lang-m { font-size: 14px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 99px; padding: 5px 12px; }
.nav .lang:hover, .lang-m:hover { color: var(--ink); border-color: var(--ink); }
.lang-m { display: none; }
@media (max-width: 860px) { .lang-m { display: inline-block; } }

/* ---------------------------------------------------------------- Arabic (RTL) */
[dir="rtl"] body { font-family: "IBM Plex Sans Arabic", Inter, "Helvetica Neue", Arial, sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .h-xl, [dir="rtl"] .h-l, [dir="rtl"] .h-m,
[dir="rtl"] .big-cta a.big, [dir="rtl"] .mobile-menu li a, [dir="rtl"] .offer .price { letter-spacing: 0; }
[dir="rtl"] h1, [dir="rtl"] .h-xl { line-height: 1.2; }
[dir="rtl"] .eyebrow, [dir="rtl"] .metric figcaption, [dir="rtl"] .now-playing .np-label, [dir="rtl"] .offer .tag { letter-spacing: 0; text-transform: none; }
[dir="rtl"] .arr { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arr { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .hero-meta { text-align: left; justify-items: end; }
[dir="rtl"] .now-playing { justify-items: start; text-align: left; }
[dir="rtl"] .hero-meta .btn-row { justify-content: flex-start !important; }
@media (max-width: 760px) { [dir="rtl"] .hero-meta { justify-items: start; text-align: right; } [dir="rtl"] .now-playing { text-align: right; } }
[dir="rtl"] .sector-note { border-left: 0; border-right: 2px solid var(--flag); padding: 6px 16px 6px 0; }
[dir="rtl"] .offer .who { border-left: 0; border-right: 2px solid #a9c7ff; padding: 0 10px 0 0; }
[dir="rtl"] .offer ul li b { text-align: left; }
[dir="rtl"] table.compare th, [dir="rtl"] table.compare td { text-align: right; }
[dir="rtl"] table.compare tbody th { left: auto; right: 0; }
[dir="rtl"] .card .tags { text-align: left; }
[dir="rtl"] .svc > div { border-right: 0; border-left: 1px solid var(--line); padding-left: 24px; padding-right: 24px; }
[dir="rtl"] .svc > div:first-child { padding-right: 0; }
[dir="rtl"] .svc > div:last-child { border-left: 0; }
[dir="rtl"] .count, [dir="rtl"] .offer .price, [dir="rtl"] .ring-num { unicode-bidi: isolate; }
[dir="rtl"] .count { direction: ltr; }
[dir="rtl"] .ap[data-note]:hover::after, [dir="rtl"] .ap[data-note]:focus::after { left: auto; right: 0; text-align: right; direction: ltr; }
[dir="rtl"] .gallery figcaption { left: auto; right: 10px; }
[dir="rtl"] .card .method { left: auto; right: 12px; }
[dir="rtl"] .nav a:not(.cta-link):not(.lang):hover { color: var(--ink); }
/* Visually hidden without off-screen offsets (offsets create sideways scroll on RTL pages) */
.skip, .hp { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; overflow: visible; top: 8px; left: 8px; right: auto; }
[dir="rtl"] .skip:focus { left: auto; right: 8px; }
.logos { grid-template-columns: repeat(8, minmax(0, 1fr)); }
@media (max-width: 860px) { .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.logos img { max-width: 100%; height: auto; }

/* ---------------------------------------------------------------- Title Resolve
   Signature move (app.js): display titles arrive as scattered words inside layout guides,
   and scroll typesets them. Guides snap in at the lock, then vanish. */
html.rs .hero h1:not(.sx) { opacity: 0; animation: none; }
.sx-ready .hero h1.sx { animation: none; }
.rs-host { position: relative; width: fit-content; max-width: 100%; text-wrap: balance; }
.rs-w { display: inline-block; will-change: transform, opacity; transform-origin: 50% 62%; }
.rs-guides { position: absolute; inset: -0.16em -0.28em -0.1em; pointer-events: none; }
.rs-c { position: absolute; width: 12px; height: 12px; border: 0 solid rgba(242, 239, 232, 0.5); opacity: var(--g, 0); }
.rs-c.tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.rs-c.tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.rs-c.bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.rs-c.br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.rs-base { position: absolute; left: 0.28em; right: 0.28em; bottom: 0.12em; height: 1px; background: rgba(242, 239, 232, 0.4);
  transform: scaleX(var(--b, 0)); transform-origin: left; opacity: var(--bo, 0); }
[dir="rtl"] .rs-base { transform-origin: right; }

/* ---------------------------------------------------------------- Home scroll build
   scrollcraft.css loads first on the home page only; these rules theme it to the site. */
:root {
  --sc-canvas: #0c0c0b; --sc-surface: #151514; --sc-ink: #f2efe8; --sc-ink-soft: #a9a59c;
  --sc-accent: #f2efe8; --sc-accent-ink: #0c0c0b;
  --sc-font-display: Inter, "Helvetica Neue", Arial, sans-serif; --sc-font-text: Inter, "Helvetica Neue", Arial, sans-serif;
}
.sc-home { background: var(--sc-canvas); }
.sc-home main > [data-sc-act] { padding: 0; }
.sc-home .hero-bed { position: absolute; inset: -9% 0; }
.sc-home .hero .btn-row .btn { white-space: nowrap; }

.act-problem .problem { display: grid; place-items: center; }
.problem-ground { position: absolute; top: 0; bottom: 0; right: 0; width: 56%; overflow: hidden; opacity: 0.34;
  -webkit-mask-image: linear-gradient(to left, #000 35%, transparent); mask-image: linear-gradient(to left, #000 35%, transparent); }
.problem-ground img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; max-width: none; object-fit: cover; }
.problem-lines { position: relative; width: calc(100% - 2 * var(--gutter)); max-width: 1500px; height: 60vh; }
.problem-lines > * { position: absolute; left: 0; top: 50%; translate: 0 -50%; margin: 0; max-width: 17ch;
  font-size: clamp(34px, 5.4vw, 84px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.04; color: var(--ink); text-wrap: balance; }
.problem-lines > .problem-close { max-width: 20ch; }
.problem-close h2 { font-size: inherit; max-width: 14ch; }
.problem-close .lede { margin: 24px 0 0; font-size: clamp(17px, 1.5vw, 21px); letter-spacing: -0.01em; line-height: 1.45; max-width: 46ch; }
.problem-flag { position: absolute; left: var(--gutter); bottom: 24px; margin: 0; z-index: 3; }

.act-method { padding: clamp(88px, 11vw, 160px) 0 !important; }
.method-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 96px); align-items: center; }
.method-copy .lede { margin: 20px 0 40px; }
.method-film { margin: 0; }
.method-film video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; background: var(--bg-2); }
.method-film figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }

.work-stage { display: flex; align-items: center; }
.work-rail { gap: clamp(20px, 2.4vw, 40px); padding: 0 var(--gutter); align-items: center; }
.rail-lead { flex: none; width: min(600px, 84vw); padding-right: clamp(0px, 3vw, 48px); }
.rail-lead .lede { margin: 24px 0 0; }
.rail-nums { display: flex; gap: clamp(24px, 3vw, 48px); margin-top: 36px; flex-wrap: wrap; }
.rail-num .n { display: block; font-size: clamp(28px, 3vw, 46px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.rail-num .l { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }
.work-rail .card { flex: none; width: clamp(300px, 44vw, 760px); }
.rail-end { flex: none; width: min(420px, 80vw); display: grid; gap: 24px; justify-items: start; }
.rail-end .sectors { display: flex; flex-wrap: wrap; gap: 8px; }

.act-offers { padding: clamp(88px, 11vw, 160px) 0 !important; }
.act-offers .trust { margin-bottom: clamp(72px, 9vw, 140px); }
.act-offers .logos { margin-top: 24px; }
.awards-line { margin: 28px 0 0; font-size: 14px; color: var(--muted); max-width: 90ch; }
.act-offers .quote-slot { margin-top: 40px; }

.close-stage { display: grid; align-items: end; }
.close-bed { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.close-stage .sc-scrim { z-index: 2; }
.close-copy { position: relative; z-index: 3; padding: 0 var(--gutter) clamp(56px, 12vh, 128px); }
.close-copy .lede { margin: 22px 0 30px; }
.close-copy .btn-row { flex-wrap: wrap; }
.mag { display: inline-block; }

@media (max-width: 860px) {
  .method-grid { grid-template-columns: 1fr; }
  .problem-ground { width: 100%; opacity: 0.22; }
  .work-rail .card { width: 80vw; }
}

/* ---------------------------------------------------------------- Seamless joins
   No hard lines between sections: media dissolves into the page ground, and section
   dividers become hairlines that fade out at both ends. */
.hero::after { background: linear-gradient(180deg, rgba(12,12,11,.38) 0%, rgba(12,12,11,0) 28%, rgba(12,12,11,0) 46%, rgba(12,12,11,.72) 84%, var(--bg) 100%); }
section[style*="border-top"], footer.site-footer, .awards, .metrics { border-top: 0 !important; border-bottom: 0 !important; position: relative; }
section[style*="border-top"]::before, footer.site-footer::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--line) 22%, var(--line) 78%, transparent); }
.problem-ground {
  -webkit-mask-image: linear-gradient(to left, #000 35%, transparent), linear-gradient(to bottom, transparent, #000 24%, #000 76%, transparent);
  mask-image: linear-gradient(to left, #000 35%, transparent), linear-gradient(to bottom, transparent, #000 24%, #000 76%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.close-bed { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 32%); mask-image: linear-gradient(to bottom, transparent, #000 32%); }
.method-film video { -webkit-mask-image: radial-gradient(140% 140% at 50% 50%, #000 58%, transparent 72%); mask-image: radial-gradient(140% 140% at 50% 50%, #000 58%, transparent 72%); }

/* Stepped lines: outgoing line fades first, the next one eases in after it (Apple pacing). */
.seq-ready > [data-at] { opacity: 0; transform: translate3d(0, 14px, 0);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.seq-ready > [data-at].on { opacity: 1; transform: none;
  transition: opacity 1.1s cubic-bezier(0.25, 0.1, 0.25, 1) 0.35s, transform 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.35s; }
@media (prefers-reduced-motion: reduce) { .seq-ready > [data-at], .seq-ready > [data-at].on { transform: none; transition: opacity 0.4s linear; } }
[data-seq]:not(.seq-ready) > [data-at]:not(:first-child) { opacity: 0; }

/* Problem scene: Getty light-effects loop, full bleed, dissolving top and bottom into the page. */
.problem-ground { left: 0; width: 100%; opacity: 1;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent); }
.problem-ground video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.problem-scrim { --sc-scrim-a: 48%; z-index: 1; }
.problem-lines { z-index: 2; }
@media (max-width: 860px) { .problem-ground { opacity: 0.75; } }

/* Method scene: making-of full screen behind the steps. The video is sized so its 2.39 scope
   area (74.4% of the 16:9 frame) always covers the screen, pushing letterbox bars off-frame. */
.act-method { position: relative; min-height: 165svh; display: grid; align-content: center; }
.method-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent); }
.method-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.method-sticky video { position: absolute; top: 50%; left: 50%; max-width: none;
  width: max(100vw, 239svh); height: auto; aspect-ratio: 16 / 9; translate: -50% -50%; }
.method-shade { position: absolute; inset: 0; --cl: max(0px, calc(50vw - 800px));
  background: linear-gradient(90deg, rgba(12,12,11,.94) 0, rgba(12,12,11,.9) calc(var(--cl) + 720px),
    rgba(12,12,11,.55) calc(var(--cl) + 1000px), rgba(12,12,11,.15) calc(var(--cl) + 1300px), rgba(12,12,11,0) calc(var(--cl) + 1600px)); }
[dir="rtl"] .method-shade { transform: scaleX(-1); }
.act-method .method-grid { position: relative; z-index: 1; display: block; }
.method-copy { max-width: 640px; }
@media (max-width: 860px) {
  .method-shade { background: linear-gradient(180deg, rgba(12,12,11,.55), rgba(12,12,11,.85) 40%, rgba(12,12,11,.9)); }
}

/* Selected work: light-effects loop behind the rail, and each film frame backlit by it.
   .glow is a ring on the frame edge (lit on the side facing the light) plus a soft spill. */
.work-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent); }
.work-rail { position: relative; z-index: 1; }
.work-rail .card { position: relative; }
.work-rail .card .media { position: relative; z-index: 1; }
.glow { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 16 / 9; pointer-events: none; border-radius: 2px; }
.glow::after { content: ""; position: absolute; z-index: 2; inset: -1px; border-radius: 3px; padding: 2px;
  background: radial-gradient(circle 640px at var(--lx, 50%) var(--ly, 50%),
    rgba(225, 248, 255, min(1, calc(var(--gi, 0) * 1.6))) 0%, rgba(130, 218, 255, calc(var(--gi, 0) * 1.1)) 40%,
    rgba(120, 214, 255, calc(var(--gi, 0) * 0.25)) 85%, rgba(120, 214, 255, 0) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.glow::before { content: ""; position: absolute; inset: -44px; pointer-events: none; filter: blur(30px);
  background: radial-gradient(circle 560px at calc(var(--lx, 50%) * 0.86 + 7%) calc(var(--ly, 50%) * 0.8 + 10%),
    rgba(110, 208, 255, calc(var(--gi, 0) * 0.85)), rgba(110, 208, 255, calc(var(--gi, 0) * 0.25)) 45%, transparent 75%); }
.work-rail .card .glow::before { z-index: -1; }

/* Method film: dissolve on the film itself (not just the section), so the frame edge never shows
   when the sticky film releases; Selected work overlaps its tail so the two films cross-dissolve. */
.method-bg { -webkit-mask-image: none; mask-image: none; }
.method-sticky { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%); }
.act-method { z-index: 0; }
.sc-home .act-work { margin-top: -35vh; position: relative; z-index: 1; }
.work-bg { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 30%, #000 80%, transparent 100%); }

/* Offers: light-leak loop full bleed behind "Three ways to work with us", dissolving at both ends. */
.offers-scene { position: relative; padding: clamp(72px, 10vw, 140px) 0; }
.offers-bg { position: absolute; top: -18vh; bottom: -18vh; left: calc(50% - 50vw); width: 100vw; z-index: 0; pointer-events: none; }
.offers-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24%, #000 76%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 24%, #000 76%, transparent 100%); }
.offers-sticky video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.offers-content { position: relative; z-index: 1; }
.act-offers .trust { position: relative; z-index: 1; }
.offers-scene .offer { background: rgba(12, 12, 11, 0.68); }
.offers-scene .offer.hl { background: rgba(21, 21, 20, 0.74); }

/* Offers -> close: overlap the two scenes and lengthen both fades so the films cross-dissolve. */
.offers-sticky { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24%, #000 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 24%, #000 60%, transparent 100%); }
.sc-home .act-close { margin-top: -40vh; position: relative; z-index: 1; }
.act-offers { position: relative; z-index: 0; }
.close-bed { -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.35) 22%, #000 50%);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.35) 22%, #000 50%); }

/* Problem lines scramble in (Title Resolve per line) instead of rising; keep only the opacity fade. */
.seq-ready > [data-rs-seq], .seq-ready > [data-rs-seq].on { transform: none; }

/* ---------------------------------------------------------------- Scramble
   The site's one text animation (app.js), matching the brain dashboard: glyphs flicker in mixed
   weight and brightness, a few in ice blue, until the resolve front sweeps through. */
.sx { text-wrap: balance; }
.sx.sx-wait { opacity: 0; }
.sx-g { opacity: 0.82; }
.sx-a { font-weight: 600; opacity: 0.85; }
.sx-b { font-weight: 400; opacity: 0.6; }
.sx-i { font-weight: 400; opacity: 0.9; color: #a9c9e8; }

/* Hero -> problem: same cross-dissolve as the other joins. */
.sc-home .act-hero { background: var(--bg); }
.sc-home .act-problem { margin-top: -38vh; position: relative; z-index: 1; }
.sc-home .act-hero { position: relative; z-index: 0; }
.sc-home .hero::after { background: linear-gradient(180deg, rgba(12,12,11,.38) 0%, rgba(12,12,11,0) 26%, rgba(12,12,11,0) 40%, rgba(12,12,11,.6) 70%, rgba(12,12,11,.9) 88%, var(--bg) 100%); }
.problem-ground { -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.4) 18%, #000 40%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.4) 18%, #000 40%, #000 78%, transparent 100%); }

/* Overlapping scenes: the upper scene's shading fades in with it, and never blocks clicks on the
   scene underneath (hero buttons, offer buttons). Only real controls take the pointer. */
.problem-scrim { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 40%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 40%, #000 78%, transparent 100%); }
.sc-home .act-problem, .sc-home .act-close { pointer-events: none; }
.sc-home .act-problem :is(a, button, .ap), .sc-home .act-close :is(.close-copy, .close-copy *) { pointer-events: auto; }

/* Touch: every link gets a finger-sized target (44px) without changing the look. */
@media (pointer: coarse) {
  footer.site-footer li a, footer.site-footer .legal-row a, footer.site-footer p a, .menu-social a, .socials a { display: inline-block; padding-block: 13px; margin-block: -6px; }
}

/* Scramble layout lock: letters are fixed-width boxes (width set from the final letter), glyphs
   centred and allowed to overhang, words never split. */
.sx-w { white-space: nowrap; }
.sx-c { display: inline-block; text-align: center; white-space: pre; }
.sx-c.sx-g { overflow: visible; }

/* Selected work: the title block opens centred on screen; the films follow it in from the right. */
.work-rail { padding-left: max(var(--gutter), calc(50vw - min(600px, 84vw) / 2)); }
.rail-lead { text-align: center; padding-right: 0; margin-right: clamp(40px, 8vw, 160px); }
.rail-lead h2 { margin-inline: auto; }
.rail-lead .lede { margin-inline: auto; }
.rail-nums { justify-content: center; }

/* Selected work, carousel version: the title holds centred, then lifts away as the films fade up
   and travel. Card rise is driven from app.js through --rise (transform only, never layout). */
.work-title { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center;
  text-align: center; padding: 0 var(--gutter); pointer-events: none; will-change: opacity, transform; }
.work-title .lede { margin: 24px auto 0; max-width: 46ch; }
.work-title :is(a, .ap) { pointer-events: auto; }
.act-work .work-rail { display: flex; height: 100%; padding: 0 var(--gutter); padding-left: var(--gutter); will-change: transform; }
.act-work .work-rail > * { opacity: 0; translate: 0 var(--rise, 60px); }
.car-static .work-title { position: relative; inset: auto; padding-top: 18vh; }
.car-static .work-rail { overflow-x: auto; height: auto; padding-bottom: 8vh; }
.car-static .work-rail > * { opacity: 1; translate: none; }

/* Films dissolve in beneath the title: a soft dark halo keeps the title readable over them. */
.work-title { isolation: isolate; }
.work-title::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(1300px, 120vw); height: 78vh; translate: -50% -50%;
  z-index: -1; pointer-events: none; opacity: var(--veil, 0);
  background: radial-gradient(closest-side, rgba(12,12,11,.94), rgba(12,12,11,.85) 50%, rgba(12,12,11,.45) 78%, transparent); }

.work-bg { opacity: 0; }
.car-static .work-bg { opacity: 1; }

/* "Find work in your industry" sits centred above the films and fades up with them. */
.act-work .work-stage { display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 4vh, 56px); }
.act-work .work-rail { height: auto; flex: none; }
.work-industry { position: relative; z-index: 1; display: grid; justify-items: center; gap: 16px; text-align: center; padding: 0 var(--gutter); opacity: 0; }
.work-industry .sectors { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.car-static .work-industry { opacity: 1; }

/* ---------------------------------------------------------------- Selected work, grid version
   Three centred columns; films fade up row by row as you scroll (app.js). The light loop is a
   sticky full-screen background that waits for the first row. Overrides the carousel rules. */
.sc-home .act-work { padding: 42vh 0 16vh !important; }
.work-bg-wrap { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.work-bg-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%); }
.work-bg-sticky .work-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: none; mask-image: none; }
.work-inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: clamp(40px, 6vh, 80px); }
.act-work .work-title { position: relative; inset: auto; display: grid; justify-items: center; place-content: initial; padding: 0; opacity: 1; transform: none; text-align: center; }
.act-work .work-title::before { display: none; }
.act-work .work-industry { opacity: 0; padding: 0; }
.work-grid { width: 100%; max-width: 1500px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(16px, 2vw, 32px); }
.work-grid .card { grid-column: auto; width: auto; position: relative; opacity: 0; }
.work-grid .card .media { position: relative; z-index: 1; }
.work-grid .card .glow::before { z-index: -1; }
.work-all { margin: 0; }
.grid-static .work-industry, .grid-static .work-grid .card { opacity: 1; }
@media (max-width: 900px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .work-grid { grid-template-columns: 1fr; } }
.card[hidden] { display: none; }

/* Clients who trust us (home): a clean centred grid, no rules; each logo rises into place. */
.act-offers .trust { display: grid; justify-items: center; text-align: center; gap: clamp(36px, 5vh, 64px); }
.act-offers .trust .h-l { margin: 0; }
.logos.logos-rise { width: 100%; max-width: 1200px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.5vw, 24px) clamp(16px, 3vw, 48px); border: 0; margin: 0; }
.logos-rise > * { aspect-ratio: auto; height: clamp(84px, 9vw, 128px); padding: 0 12%; border: 0 !important; display: grid; place-items: center;
  opacity: 0; transform: translate3d(0, 44px, 0); transition: opacity 1.1s cubic-bezier(0.25, 0.1, 0.25, 1), transform 1.3s cubic-bezier(0.16, 1, 0.3, 1); }
.logos-rise > .up { opacity: 1; transform: none; }
.logos-rise > a:hover, .logos-rise > a:focus-visible { background: none; }
.logos-rise img { max-height: clamp(30px, 3.2vw, 48px); max-width: 100%; opacity: 0.78; transition: opacity 0.2s; }
.logos-rise > a:hover img { opacity: 1; }
.act-offers .awards-line { margin: 0; text-align: center; }
@media (max-width: 700px) { .logos.logos-rise { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* The light-leak loop now runs under the client logos and the offers as one scene. */
.offers-scene .trust { margin-bottom: clamp(96px, 12vw, 180px); }

/* Home end scene: "Have a film in mind?" and the footer share one film underneath (contact reel,
   sticky, dissolving in at the top), no hairline above the footer. */
.sc-home .act-close { margin-top: 0; }
.sc-home .end-scene { position: relative; z-index: 1; margin-top: -40vh; }
.end-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.end-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.35) 22%, #000 50%);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.35) 22%, #000 50%); }
.end-bed { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.end-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(12,12,11,.55) 75%, rgba(12,12,11,.8)); }
.end-scene > .act-close, .end-scene > footer { position: relative; z-index: 1; }
.sc-home footer.site-footer { background: transparent; color: #b9b5ac; }
.sc-home footer.site-footer::before { display: none; }

/* Fades live on a plain inner layer: Chrome drops mask-image on a position:sticky box when its video
   is GPU-composited, which left hard frame edges. The sticky boxes themselves carry no mask now. */
.method-sticky, .offers-sticky, .work-bg-sticky, .end-sticky { -webkit-mask-image: none !important; mask-image: none !important; }
.fade-layer { position: absolute; inset: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24%, #000 76%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 24%, #000 76%, transparent 100%); }
.end-sticky .fade-layer { -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.35) 22%, #000 50%); mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.35) 22%, #000 50%); }
.offers-sticky .fade-layer { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24%, #000 60%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 24%, #000 60%, transparent 100%); }

/* Offer cards: a thin light runs around each card's edge like a moving highlight, with a soft halo
   spilling outward. Each card is offset in time so the three never move in step. */
@property --hl { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes offer-highlight { to { --hl: 360deg; } }
.offer { position: relative; isolation: isolate; }
.offer::before, .offer::after { content: ""; position: absolute; inset: -1px; border-radius: 7px; pointer-events: none;
  background: conic-gradient(from var(--hl), transparent 0deg, transparent 230deg, rgba(169, 201, 232, 0.25) 285deg,
    rgba(232, 245, 255, 0.95) 330deg, rgba(169, 201, 232, 0.25) 350deg, transparent 360deg);
  animation: offer-highlight 7s linear infinite; }
.offer::before { padding: 1.5px; z-index: 1;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.offer::after { inset: -10px; z-index: -1; filter: blur(16px); opacity: 0.5; }
.offers > .offer:nth-child(2)::before, .offers > .offer:nth-child(2)::after { animation-delay: -2.3s; }
.offers > .offer:nth-child(3)::before, .offers > .offer:nth-child(3)::after { animation-delay: -4.6s; }
@media (prefers-reduced-motion: reduce) { .offer::before, .offer::after { animation: none; --hl: 300deg; } }
/* End scene: one soft wash over the whole film (no band ending in a hard edge), and no rule above the legal row. */
.end-bed { opacity: 0.5; }
.end-shade { background: linear-gradient(180deg, rgba(12,12,11,.15) 0%, rgba(12,12,11,.45) 55%, rgba(12,12,11,.7) 100%); }
.sc-home footer.site-footer .legal-row { border-top: 0; }

/* ---------------------------------------------------------------- Inner pages: light-leak background
   Every page except the home scroll build sits on the light-leak loop (Getty 2211933832), fixed behind
   the content. Page heroes dissolve into it at the bottom instead of ending on an edge. */
.page-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--bg); }
.page-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.page-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, rgba(12,12,11,.25), rgba(12,12,11,.7)); }
body:not(.sc-home) { background: transparent; }
html:has(body:not(.sc-home)) { background: var(--bg); }
body:not(.sc-home) .hero { background: transparent; }
body:not(.sc-home) .hero video { -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 55%, transparent 100%); }
body:not(.sc-home) .hero::after { background: linear-gradient(180deg, rgba(12,12,11,.35) 0%, rgba(12,12,11,0) 28%, rgba(12,12,11,0) 45%, rgba(12,12,11,.45) 100%); }

/* Page-to-page: a soft crossfade on navigation (cross-document view transitions; browsers without
   support simply load the page as before). */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.55s; animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* About: Siraj's photo full screen, dissolving into the page above and below; the story follows in one column. */
.about-portrait { position: relative; height: 100svh; min-height: 560px; padding: 0; overflow: hidden; }
.about-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 62% 40%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 80%, transparent 100%); }
.about-story { padding-top: clamp(24px, 4vw, 56px); }
.about-grid.about-single { display: block; max-width: 820px; }
/* The light-leak background dissolves into the photo: dark areas let the moving light through
   (lighten blend), and every edge fades out so the frame never shows. */
.about-portrait img { mix-blend-mode: lighten; opacity: 0.92;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 78%, transparent 100%), linear-gradient(to right, transparent 0, #000 14%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 78%, transparent 100%), linear-gradient(to right, transparent 0, #000 14%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
/* Page heroes: the fade lives on a wrapper (Chrome ignores mask-image set on a GPU-composited video). */
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
body:not(.sc-home) .hero video { -webkit-mask-image: none; mask-image: none; }
body:not(.sc-home) .hero-media { -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 50%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 50%, transparent 100%); }
body:not(.sc-home) .hero::after { background: linear-gradient(180deg, rgba(12,12,11,.35) 0%, rgba(12,12,11,0) 28%, rgba(12,12,11,0) 50%, rgba(12,12,11,.35) 80%, rgba(12,12,11,0) 100%); }

/* About: the photo is pinned full screen and the bio scrolls up over its darker left side. */
.about-portrait { position: relative; height: auto; min-height: 0; overflow: visible; padding: 0; }
.about-portrait > img { display: none; }
.ap-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ap-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.ap-sticky img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 66% 40%;
  mix-blend-mode: lighten; opacity: 0.92;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 80%, transparent 100%), linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 80%, transparent 100%), linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.ap-shade { position: absolute; inset: 0; --cl: max(0px, calc(50vw - 800px));
  background: linear-gradient(90deg, rgba(12,12,11,.9) 0, rgba(12,12,11,.82) calc(var(--cl) + 620px), rgba(12,12,11,.35) calc(var(--cl) + 900px), rgba(12,12,11,0) calc(var(--cl) + 1150px)); }
.ap-text { position: relative; z-index: 1; padding-top: 38vh; padding-bottom: 34vh; }
.ap-text > * { max-width: 600px; }
.ap-text .lede { font-size: clamp(22px, 2vw, 28px); }
.ap-sr { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 860px) {
  .ap-sticky img { object-position: 72% 40%; }
  .ap-shade { background: linear-gradient(180deg, rgba(12,12,11,.35), rgba(12,12,11,.85) 45%); }
}
/* Making-of hero: overscan so the 2.39 scope area covers the frame and its black bars stay off-screen. */
.hero-media.scope video { inset: auto; top: 50%; left: 50%; width: max(100%, 239svh); height: auto; aspect-ratio: 16 / 9; translate: -50% -50%; max-width: none; }
/* About: the photo section slides up under the hero's fade so the two cross-dissolve. */
.about-portrait { margin-top: -38vh; }
.page-hero { z-index: 1; }
.page-hero .hero-inner { z-index: 3; }
.ap-text { padding-top: 72vh; }

/* No boxes around the bars: the top menu sits on a soft fade from the top edge (no strip, no rule),
   and the Work filter bar floats with no panel behind it. */
.site-header, .home.scrolled .site-header, .has-hero.scrolled .site-header, .scrolled .site-header {
  background: transparent !important; border-color: transparent !important; border-bottom: 0 !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.site-header::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(var(--header-h) + 56px); z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(12,12,11,.78) 0%, rgba(12,12,11,.45) 55%, rgba(12,12,11,0) 100%); opacity: 0; transition: opacity .4s; }
.scrolled .site-header::before, body:not(.home):not(.has-hero) .site-header::before { opacity: 1; }
.work-toolbar { background: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border-bottom: 0 !important; }
.work-toolbar .chip:not([aria-pressed="true"]) { background: rgba(12,12,11,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.work-toolbar .count { text-shadow: 0 1px 8px rgba(0,0,0,.8); }
.work-toolbar, .has-hero .work-toolbar { position: static; }

/* Home hero line under the title: full ink, a touch heavier, with a soft shadow so it holds over bright frames. */
.home .hero .lede { color: #fbf9f4; font-weight: 450; text-shadow: 0 1px 2px rgba(0,0,0,.45), 0 2px 18px rgba(0,0,0,.55); }
/* Page 2 overlaps the hero's lower 38vh: keep its layers fully clear there so the hero text isn't dimmed. */
.problem-ground, .problem-scrim {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 34%, rgba(0,0,0,.5) 46%, #000 58%, #000 80%, transparent 100%) !important;
  mask-image: linear-gradient(to bottom, transparent 0, transparent 34%, rgba(0,0,0,.5) 46%, #000 58%, #000 80%, transparent 100%) !important; }
/* Offer card highlight at half strength (Siraj, 28 Nov). */
.offer::before { opacity: 0.5; }
.offer::after { opacity: 0.25; }
/* Offer cards rise into view one after another, like Apple's product tiles. */
.offers-scene .offers > .offer { opacity: 0; transform: translate3d(0, 80px, 0);
  transition: opacity 1.1s cubic-bezier(0.25, 0.1, 0.25, 1) var(--d, 0ms), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0ms) !important; }
.offers-scene .offers > .offer.up { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .offers-scene .offers > .offer { opacity: 1; transform: none; } }

/* One card entrance, site-wide (film cards and offer cards). */
.rise-card { opacity: 0; transform: translate3d(0, 80px, 0);
  transition: opacity 1.1s cubic-bezier(0.25, 0.1, 0.25, 1) var(--d, 0ms), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0ms) !important; }
.rise-card.up { opacity: 1; transform: none; }
.work-grid .card.rise-card { translate: none; }
@media (prefers-reduced-motion: reduce) { .rise-card { opacity: 1; transform: none; } }
.rise-card.rise-reset { transition: none !important; }

/* Page 2 backgrounds: the light loop, and the AMRA BTS film which dissolves in under the AMRA step
   ("How do you step inside a resort before it opens?") and back out at the next step. While the hero
   still overlaps the top of the scene the layers stay clear up there; once it has scrolled away the
   clear band closes smoothly so the films fill the frame, fading only at the top and bottom edges. */
@property --mclear { syntax: '<percentage>'; inherits: true; initial-value: 34%; }
.act-problem .problem { --mclear: 34%; transition: --mclear 1.4s cubic-bezier(0.4, 0, 0.2, 1); }
.act-problem .problem.clear-top { --mclear: 0%; }
.problem-ground, .problem-scrim {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent var(--mclear), #000 calc(var(--mclear) + 20%), #000 80%, transparent 100%) !important;
  mask-image: linear-gradient(to bottom, transparent 0, transparent var(--mclear), #000 calc(var(--mclear) + 20%), #000 80%, transparent 100%) !important; }
.problem-ground video { transition: opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1); }
.problem-ground :is(.pg-amra, .pg-holi) { opacity: 0; inset: auto; top: 50%; left: 50%; width: max(100%, 239svh); height: auto; aspect-ratio: 16 / 9; translate: -50% -50%; max-width: none; }
.problem[data-step="1"] .pg-amra { opacity: 1; }
.problem[data-step="0"] .pg-holi { opacity: 1; }
.problem:is([data-step="0"], [data-step="1"]) .pg-light { opacity: 0.15; }
.problem-ground .pg-holi { inset: 0; top: 0; left: 0; width: 100%; height: 100%; aspect-ratio: auto; translate: none; object-fit: cover; }
/* While a film is under the text, the left-side shade deepens so the questions and captions stay readable. */
.problem-scrim { transition: opacity 1.6s; }
.problem:is([data-step="0"], [data-step="1"]) .problem-scrim { --sc-scrim-a: 88%; background: linear-gradient(90deg, rgba(12,12,11,.82) 0%, rgba(12,12,11,.6) 32%, rgba(12,12,11,.2) 55%, transparent 72%); }
.problem:is([data-step="0"], [data-step="1"]) .problem-close .lede { text-shadow: 0 1px 2px rgba(0,0,0,.5), 0 2px 16px rgba(0,0,0,.6); color: #f4f1ea; }
.problem-ground, .problem-scrim {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent var(--mclear), rgba(0,0,0,.6) calc(var(--mclear) + 10%), #000 calc(var(--mclear) + 22%), #000 66%, rgba(0,0,0,.55) 84%, transparent 100%) !important;
  mask-image: linear-gradient(to bottom, transparent 0, transparent var(--mclear), rgba(0,0,0,.6) calc(var(--mclear) + 10%), #000 calc(var(--mclear) + 22%), #000 66%, rgba(0,0,0,.55) 84%, transparent 100%) !important; }

/* Page 2 edges: overlays in the page colour dissolve the films into the page at top and bottom (mask-image
   is unreliable over these composited videos). The top one only appears once the hero has scrolled away. */
.pg-edge { position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; }
.pg-edge-bottom { bottom: 0; height: 34%; background: linear-gradient(to bottom, rgba(14,14,13,0), rgba(14,14,13,.7) 55%, #0e0e0d); }
.pg-edge-top { top: 0; height: 26%; background: linear-gradient(to top, rgba(14,14,13,0), rgba(14,14,13,.7) 55%, #0e0e0d); opacity: 0; transition: opacity 1.4s; }
.problem.clear-top .pg-edge-top { opacity: 1; }
.problem-lines { position: relative; z-index: 2; }
.problem-flag { z-index: 3; }
/* About without a film: the flares background carries the hero. */
.page-hero.no-film { background: transparent; }
.page-hero.no-film::after { display: none; }

/* AMRA step: film a little darker, the flare film blended through it (screen), and a longer, softer
   bottom edge so it melts into the page. */
.problem-ground .pg-amra { filter: brightness(0.74) saturate(0.95); }
.problem-ground .pg-light { position: absolute; z-index: 0; }
.problem[data-step="1"] .pg-light { z-index: 2; mix-blend-mode: screen; opacity: 0.6; }
.problem-ground :is(.pg-amra, .pg-holi) { z-index: 1; }
.pg-edge-bottom { height: 42%; background: linear-gradient(to bottom, rgba(14,14,13,0) 0%, rgba(14,14,13,.35) 30%, rgba(14,14,13,.78) 62%, #0e0e0d 92%); }
/* Text side: a dark gradient behind the questions while a film plays, fading out by mid-screen. */
.pg-side { position: absolute; top: 0; bottom: 0; left: 0; width: 72%; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 1.6s;
  --cl: max(0px, calc(50vw - 800px));
  background: linear-gradient(90deg, rgba(12,12,11,.9) 0, rgba(12,12,11,.82) calc(var(--cl) + 380px), rgba(12,12,11,.5) calc(var(--cl) + 760px), rgba(12,12,11,0) 100%); }
.problem:is([data-step="0"], [data-step="1"]) .pg-side { opacity: 1; }
.problem[data-step="1"] .pg-side { z-index: 3; }
.problem-lines { z-index: 4; }

/* Fast scrolling: edge treatments respond almost instantly, and films clear quickly when their step ends,
   so no frame edge can show while scrolling back and forth. */
.act-problem .problem { transition: --mclear 0.35s linear; }
.pg-edge-top { transition: opacity 0.25s linear; }
.problem-ground :is(.pg-amra, .pg-holi) { transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1); }
.problem:not([data-step="0"]):not([data-step="1"]) .problem-ground :is(.pg-amra, .pg-holi),
.problem[data-step="-1"] .problem-ground :is(.pg-amra, .pg-holi) { transition-duration: 0.45s; }

/* Every pinned background film: top and bottom dissolves drawn as overlays in the page colour, so they
   render at any scroll speed (Chrome can drop mask-image on composited video while scrolling fast). */
.method-sticky::before, .method-sticky::after, .work-bg-sticky::before, .work-bg-sticky::after,
.offers-sticky::before, .offers-sticky::after, .end-sticky::before {
  content: ""; position: absolute; left: 0; right: 0; z-index: 2; pointer-events: none; height: 30%; }
.method-sticky::before, .work-bg-sticky::before, .offers-sticky::before, .end-sticky::before {
  top: 0; background: linear-gradient(to bottom, #0d0d0c 0%, rgba(13,13,12,.82) 22%, rgba(13,13,12,.35) 60%, rgba(13,13,12,0) 100%); }
.method-sticky::after, .work-bg-sticky::after, .offers-sticky::after {
  bottom: 0; background: linear-gradient(to top, #0d0d0c 0%, rgba(13,13,12,.82) 22%, rgba(13,13,12,.35) 60%, rgba(13,13,12,0) 100%); }
.end-sticky::before { height: 40%; }
/* About: the bio's reading shade dissolves in and out vertically like the photo, so it never draws a line
   where the photo section begins under the hero. */
.ap-shade { -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.5) 14%, #000 32%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.5) 14%, #000 32%, #000 78%, transparent 100%); }

/* About photo breathes: fade in, slow push-in, fade out to the flares, repeat. The scale resets while the
   photo is fully faded, so the loop never jumps. The scroll fade-up (app.js) still runs on the img itself. */
@keyframes ap-breathe {
  0%   { opacity: 0; transform: scale(1); }
  20%  { opacity: 1; }
  78%  { opacity: 1; }
  100% { opacity: 0; transform: scale(1.09); }
}
.ap-breathe { position: absolute; inset: 0; mix-blend-mode: lighten; transform-origin: 62% 42%;
  animation: ap-breathe 14s cubic-bezier(0.45, 0, 0.55, 1) infinite; will-change: opacity, transform; }
.ap-sticky .ap-breathe img { mix-blend-mode: normal; }
@media (prefers-reduced-motion: reduce) { .ap-breathe { animation: none; } }
/* About photo sits higher: the frame extends above the screen and frames the lower part of the image,
   so Siraj's face lands in the upper third rather than the lower half. */
.ap-sticky .ap-breathe img { top: -18%; height: 118%; object-position: 64% 62%; }
.ap-breathe { transform-origin: 62% 30%; }
.ap-sticky .ap-breathe img { top: -10%; height: 110%; object-position: 64% 46%; }

/* About opens on the photo: it fills the screen from the top (face in the upper part of the frame), the
   "About" title sits bottom-left over it, and the bio scrolls up the left side while the photo holds. */
.about-portrait { margin-top: 0; }
.ap-text { padding-top: 0; }
.ap-title { display: flex; align-items: flex-end; height: 100svh; margin: 0; padding-bottom: clamp(48px, 9vh, 110px); max-width: none; box-sizing: border-box; }
.ap-text > .lede:first-of-type { margin-top: 30vh; }
.ap-sticky .ap-breathe img { top: -6%; height: 106%; object-position: 64% 30%;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 80%, transparent 100%), linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 80%, transparent 100%), linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%); }
.ap-shade { -webkit-mask-image: none; mask-image: none;
  background: linear-gradient(90deg, rgba(12,12,11,.78) 0, rgba(12,12,11,.6) calc(max(0px, 50vw - 800px) + 560px), rgba(12,12,11,.2) calc(max(0px, 50vw - 800px) + 900px), rgba(12,12,11,0) calc(max(0px, 50vw - 800px) + 1150px)); }
/* Even rows for small film sets (app.js sets data-count). */
.grid[data-count="4"] > .card { grid-column: span 3; }
.grid[data-count="2"] > .card { grid-column: span 6; }
.grid[data-count="1"] > .card { grid-column: 4 / span 6; }
@media (max-width: 980px) { .grid[data-count="4"] > .card { grid-column: span 6; } }
@media (max-width: 620px) { .grid[data-count] > .card { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- No overlapping scenes
   Overlaps drew a line where the upper scene's edge shading sat on the film beneath. Scenes now butt
   together and every film dissolves fully to the page dark at its own top and bottom, so each join is
   dark meeting dark and nothing can show an edge, at any scroll speed. */
.sc-home .act-problem, .sc-home .act-work, .sc-home .end-scene { margin-top: 0 !important; }
.act-problem .problem, .act-problem .problem.clear-top { --mclear: 0%; }
.pg-edge-top { opacity: 1 !important; height: 30%; }
.sc-home .act-work { padding-top: 22vh !important; }

@media (max-width: 860px) {
  /* Keep the wide cinematic layers inside the mobile scroll viewport. */
  html:has(body.sc-home), body.sc-home { overflow-x: clip; }
}

/* Portrait case studies: show the camera's whole frame, with the caption below it. */
@media (max-width: 860px) and (orientation: portrait) {
  .act-problem .problem {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    row-gap: clamp(16px, 3svh, 32px);
    padding-block-start: var(--header-h);
  }
  .problem .problem-ground {
    position: relative;
    inset: auto;
    grid-area: 1 / 1;
    width: 100%;
    height: min(56.25vw, 35svh);
    opacity: 1;
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }
  .problem .problem-ground :is(.pg-holi, .pg-amra) {
    inset: 0;
    width: 100%;
    height: 100%;
    translate: none;
    object-fit: contain;
  }
  .problem :is(.pg-side, .problem-scrim, .pg-edge) { display: none; }
  .problem .problem-lines {
    grid-area: 2 / 1;
    display: grid;
    height: auto;
  }
  .problem-lines > .problem-close {
    grid-area: 1 / 1;
    position: relative;
    inset: auto;
    translate: none;
    width: 100%;
    max-width: none;
    align-self: center;
  }
  .problem-close .lede { margin-top: 0.8em; }
}

/* ---------------------------------------------------------------- Arabic (RTL) mirroring of the scroll scenes */
[dir="rtl"] .problem-lines > * { left: auto; right: 0; text-align: right; }
[dir="rtl"] .pg-side { left: auto; right: 0; transform: scaleX(-1); }
[dir="rtl"] .problem-scrim { transform: scaleX(-1); }
/* About: mirror the photo so Siraj sits on the left and the bio has the darker side on the right. */
[dir="rtl"] .ap-sticky { transform: scaleX(-1); }

/* Film thumbnails: softly rounded corners (about 11px on a 460px card, like GN Motion), scaling with the card. */
:root { --thumb-r: clamp(8px, 0.75vw, 14px); }
.card .media, .card .media img, .card .media video { border-radius: var(--thumb-r); }
.card .media { overflow: hidden; isolation: isolate; }
.glow { border-radius: var(--thumb-r); }
.glow::after { border-radius: calc(var(--thumb-r) + 1px); }
.gallery img, .frame, .frame video, .frame .facade, .frame .facade img, .method-film video { border-radius: var(--thumb-r); overflow: hidden; }
/* Vertical (9:16) films: their stills keep the full vertical frame, three across. */
.gallery.tall { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 720px; }
.gallery.tall figure, .gallery.tall figure:nth-child(5n+1) { grid-column: span 1; }
.gallery.tall figure img, .gallery.tall figure:nth-child(5n+1) img { aspect-ratio: 9 / 16; height: auto; object-fit: cover; }

/* Contact: "Talk, text or write", three channel cards. */
.channels-sec { text-align: center; padding-bottom: clamp(48px, 7vw, 96px); }
.ch-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink); margin: 0 0 14px; }
.ch-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.ch-title { margin: 0 auto clamp(32px, 4vw, 56px); }
.channels { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); text-align: start; max-width: 1400px; margin: 0 auto; }
.channels[data-n="2"] { --n: 2; max-width: 960px; } .channels[data-n="1"] { --n: 1; max-width: 520px; }
.channel { display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 2.6vw, 40px); border: 1px solid var(--line); border-radius: 16px; background: rgba(17, 17, 18, 0.72); }
.channel h3 { font-size: clamp(19px, 1.5vw, 22px); font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.channel p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.channel .ch-link { margin-top: auto; padding-top: 16px; color: var(--ink); }
.channel .ch-link a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ch-social { margin-top: 28px; display: flex; justify-content: center; }
@media (max-width: 860px) { .channels, .channels[data-n] { grid-template-columns: 1fr; } }
