:root {
  --green: #0B2A20;      /* deep brand green, from the ZAN logo ink */
  --green-2: #084030;
  --leaf: #2F7A5B;
  --sand: #EFE9DD;
  --cream: #F7F3EA;
  --ink: #17201C;
  --mute: #6C726E;
  --line: rgba(23,32,28,.12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --arab: "IBM Plex Sans Arabic", "Geeza Pro", sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font: 16px/1.6 var(--sans); color: var(--ink); background: var(--cream); overflow-x: hidden; }
[dir="rtl"] body { font-family: var(--arab); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.kicker { font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--leaf); font-weight: 600; }
.kicker.light { color: rgba(255,255,255,.7); }
.kicker span { color: var(--mute); margin-inline-start: 8px; }
[dir="rtl"] .kicker { letter-spacing: 0; font-size: 14px; }

/* reveal on scroll (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------------- header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 30; transition: background .35s, box-shadow .35s; }
.top .bar { display: flex; align-items: center; justify-content: space-between; padding: 16px clamp(20px, 4vw, 48px); max-width: 1440px; margin: 0 auto; }
.top .logo img { height: 46px; width: auto; filter: brightness(0) invert(1); transition: opacity .3s, filter .3s; }
.top nav { display: flex; gap: 10px; align-items: center; color: #fff; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; }
[dir="rtl"] .top nav { letter-spacing: 0; font-size: 14px; }
.top nav a { padding: 9px 14px; }
.top .nav-cta { border: 1px solid rgba(255,255,255,.55); border-radius: 100px; }
.top.scrolled, .top.solid { background: rgba(247,243,234,.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.top .logo img { filter: brightness(0) invert(1) drop-shadow(0 1px 6px rgba(0,0,0,.45)); }
.top.scrolled .logo img, .top.solid .logo img { filter: none; }
.top.scrolled nav, .top.solid nav { color: var(--green); }
.top.scrolled .nav-cta, .top.solid .nav-cta { border-color: var(--green); }
.js .top.hide-logo .logo img { opacity: 0; }

/* ---------------- cover */
.cover { position: relative; height: 100svh; min-height: 620px; background: var(--green); color: #fff; overflow: hidden; display: flex; flex-direction: column; }
.cover-inner { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 90px 24px 20px; }
.cover-logo { width: min(440px, 68vw); filter: brightness(0) invert(1); }
.js .cover-logo { opacity: 0; transform: scale(.96); animation: coverIn 1.4s var(--ease) .15s forwards; }
.cover-tag { margin-top: 28px; font: italic 400 clamp(20px, 2.4vw, 28px)/1.4 var(--serif); color: rgba(255,255,255,.85); }
[dir="rtl"] .cover-tag { font: 400 clamp(18px, 2vw, 24px)/1.6 var(--arab); }
.js .cover-tag { opacity: 0; animation: fadeUp 1.2s var(--ease) .7s forwards; }
@keyframes coverIn { to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.wall { position: relative; z-index: 1; display: grid; gap: 10px; padding-bottom: 66px; }
.wall::before, .wall::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12vw; z-index: 2; pointer-events: none; }
.wall::before { left: 0; background: linear-gradient(90deg, var(--green), transparent); }
.wall::after { right: 0; background: linear-gradient(-90deg, var(--green), transparent); }
.wrow { overflow: hidden; }
.wtrack { display: flex; gap: 10px; width: max-content; animation: marquee 70s linear infinite; }
.wrow.b .wtrack { animation-direction: reverse; animation-duration: 85s; }
.wtrack img { height: clamp(110px, 15vh, 170px); width: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; opacity: .92; }
@keyframes marquee { to { transform: translateX(-50%); } }
.cue { position: absolute; z-index: 3; bottom: 20px; left: 50%; transform: translateX(-50%); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.6); padding-bottom: 26px; }
.cue::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 18px; background: rgba(255,255,255,.6); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: scaleY(.3); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }
[dir="rtl"] .cue { letter-spacing: 0; font-size: 13px; }

/* ---------------- about */
.about { padding: clamp(90px, 14vw, 170px) 0; }
.statement { margin-top: 22px; font: 400 clamp(30px, 4.2vw, 58px)/1.18 var(--serif); color: var(--green); max-width: 22ch; letter-spacing: -.005em; }
[dir="rtl"] .statement { font: 400 clamp(26px, 3.4vw, 44px)/1.6 var(--arab); max-width: 26ch; }

/* ---------------- services */
.services { padding-bottom: clamp(90px, 12vw, 150px); }
.svc-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: clamp(20px, 4vw, 48px); padding: 26px clamp(20px, 4vw, 48px) 10px; scrollbar-width: none; }
.svc-track::-webkit-scrollbar { display: none; }
.svc { flex: 0 0 clamp(250px, 26vw, 340px); scroll-snap-align: start; position: relative; }
.svc-img { aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--sand); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc:hover .svc-img img { transform: scale(1.05); }
.svc-n { display: block; margin-top: 16px; font-size: 12px; color: var(--leaf); letter-spacing: .12em; }
.svc h3 { margin-top: 4px; font: 500 26px/1.2 var(--serif); color: var(--green); }
[dir="rtl"] .svc h3 { font: 500 21px/1.5 var(--arab); }

/* ---------------- selected work: full-screen cards that stack while scrolling */
.work { background: var(--green); color: #fff; padding-top: clamp(80px, 10vw, 130px); }
.work-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 28px; }
.work .kicker { color: rgba(255,255,255,.65); }
.work-count { font: 400 64px/1 var(--serif); color: rgba(255,255,255,.18); }
.stack { position: relative; display: grid; gap: 10px; background: var(--green); }
.wcard { position: sticky; top: 0; display: block; height: 100svh; overflow: hidden; background: #000; border-radius: 14px 14px 0 0; }
.wcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.wcard:hover img { transform: scale(1.0); }
.wshade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,18,13,.35) 0%, rgba(5,18,13,0) 30%, rgba(5,18,13,.25) 55%, rgba(5,18,13,.86) 100%); }
.wtext { position: absolute; inset: auto 0 0 0; padding: 0 clamp(20px, 4vw, 48px) clamp(38px, 7vh, 72px); max-width: 1280px; margin: 0 auto; }
.wnum { display: block; font-size: 12px; letter-spacing: .2em; color: rgba(255,255,255,.65); margin-bottom: 14px; }
.wclient { display: inline-block; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; padding: 6px 12px; border: 1px solid rgba(255,255,255,.45); border-radius: 100px; margin-bottom: 14px; color: #fff; }
[dir="rtl"] .wclient, [dir="rtl"] .wnum { letter-spacing: 0; font-size: 13px; }
.wcard h3 { font: 500 clamp(54px, 10vw, 150px)/.95 var(--serif); letter-spacing: -.02em; }
[dir="rtl"] .wcard h3 { font: 500 clamp(44px, 8vw, 110px)/1.2 var(--arab); letter-spacing: 0; }
.wmore { display: inline-flex; gap: 12px; align-items: center; margin-top: 22px; font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; }
.wmore i { font-style: normal; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--green); font-size: 16px; transition: transform .4s var(--ease); }
.wcard:hover .wmore i { transform: translateX(6px); }
[dir="rtl"] .wcard:hover .wmore i { transform: translateX(-6px); }
[dir="rtl"] .wmore { letter-spacing: 0; font-size: 14px; }

/* ---------------- clients */
.clients { padding: clamp(80px, 10vw, 130px) 0; }
.clist { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 46px; margin-top: 28px; font: 500 clamp(28px, 3.6vw, 48px)/1.2 var(--serif); color: var(--green); }
[dir="rtl"] .clist { font: 500 clamp(22px, 2.8vw, 36px)/1.5 var(--arab); }
.clist li:not(:last-child)::after { content: "·"; margin-inline-start: 46px; color: var(--leaf); }
.clist { row-gap: 6px; }
.clist li { display: inline-flex; align-items: baseline; }

/* ---------------- contact */
.contact { background: var(--green); color: #fff; padding: clamp(90px, 12vw, 150px) 0; }
.contact-title { margin-top: 18px; font: 400 clamp(38px, 5.6vw, 80px)/1.05 var(--serif); max-width: 16ch; }
[dir="rtl"] .contact-title { font: 400 clamp(30px, 4.4vw, 58px)/1.45 var(--arab); }
.contact-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.cbtn { display: inline-block; padding: 15px 28px; border-radius: 100px; border: 1px solid rgba(255,255,255,.5); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; transition: background .25s, color .25s; }
.cbtn:first-child { background: #fff; color: var(--green); border-color: #fff; }
.cbtn:hover { background: #fff; color: var(--green); }
.cbtn.dark { border-color: var(--green); color: var(--green); }
[dir="rtl"] .cbtn { letter-spacing: 0; font-size: 15px; }

/* ---------------- project page */
.pcover { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: #000; color: #fff; }
.pcover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.js .pcover > img { animation: kenburns 18s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.pshade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,18,13,.55) 0%, rgba(5,18,13,0) 26%, rgba(5,18,13,.2) 55%, rgba(5,18,13,.88) 100%); }
.pcover-text { position: absolute; inset: auto 0 0 0; padding-bottom: clamp(38px, 8vh, 80px); }
.pcover h1 { font: 500 clamp(58px, 11vw, 168px)/.95 var(--serif); letter-spacing: -.02em; }
[dir="rtl"] .pcover h1 { font: 500 clamp(46px, 8.5vw, 120px)/1.2 var(--arab); letter-spacing: 0; }
.js .pcover h1, .js .pcover .wclient, .js .pcover .pmeta { opacity: 0; animation: fadeUp 1.1s var(--ease) .25s forwards; }
.pmeta { display: block; margin-top: 18px; font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.75); }
[dir="rtl"] .pmeta { letter-spacing: 0; font-size: 14px; }
.pstory { padding: clamp(80px, 12vw, 150px) 0; }
.pstory .statement { margin-top: 0; max-width: 26ch; }

.pfilm { padding: 0 clamp(12px, 3vw, 48px) clamp(80px, 10vw, 120px); }
.filmbox { max-width: 1280px; margin: 0 auto; border-radius: 12px; overflow: hidden; background: #000; }
.filmbox video { display: block; width: 100%; aspect-ratio: 16 / 9; }

.phl { padding-bottom: clamp(70px, 9vw, 110px); }
.hl-head { display: flex; justify-content: space-between; align-items: baseline; }
.hl-count { font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }
.hl-count b { color: var(--green); font-weight: 600; }
.hl-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 24px clamp(20px, 4vw, 48px) 8px; scrollbar-width: none; }
.hl-track::-webkit-scrollbar { display: none; }
.hl { flex: 0 0 min(78vw, 980px); scroll-snap-align: center; border-radius: 10px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--sand); }
.hl img { width: 100%; height: 100%; object-fit: cover; }

.pall { padding-bottom: clamp(80px, 10vw, 120px); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-top: 24px; }
.pgrid .ph { aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: var(--sand); cursor: zoom-in; }
.pgrid img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .3s; }
.pgrid .ph:hover img { transform: scale(1.06); }

.pnext { position: relative; display: block; height: 70svh; min-height: 420px; overflow: hidden; background: #000; color: #fff; }
.pnext img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.pnext:hover img { transform: scale(1.04); }
.pnext-text { position: absolute; inset: auto 0 0 0; padding-bottom: clamp(36px, 7vh, 70px); }
.pgrid[hidden] { display: none; }
.pnext h3 { margin-top: 12px; font: 500 clamp(48px, 8vw, 120px)/1 var(--serif); }
.pnext .wmore { color: #fff; }
[dir="rtl"] .pnext h3 { font: 500 clamp(38px, 6vw, 90px)/1.3 var(--arab); }

.nf { min-height: 70vh; display: flex; align-items: center; padding-top: 120px; }
.nf h1 { font: 500 44px/1.2 var(--serif); color: var(--green); margin-bottom: 28px; }

/* ---------------- lightbox */
.lb { position: fixed; inset: 0; z-index: 60; background: rgba(8,14,11,.97); display: none; align-items: center; justify-content: center; }
.lb.on { display: flex; }
.lb img { max-width: 94vw; max-height: 86vh; object-fit: contain; border-radius: 4px; }
.lb button { position: absolute; color: #fff; font-size: 32px; padding: 16px 20px; opacity: .8; }
.lb button:hover { opacity: 1; }
.lb .x { top: 6px; right: 8px; } .lb .pv { left: 4px; top: 50%; transform: translateY(-50%); } .lb .nx { right: 4px; top: 50%; transform: translateY(-50%); }
.lb .count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.65); font-size: 12.5px; letter-spacing: .14em; }

/* ---------------- footer */
footer { background: #071D16; color: rgba(255,255,255,.6); padding: 46px 0; }
footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 13px; }
footer img { height: 46px; filter: brightness(0) invert(1); opacity: .85; }

@media (max-width: 760px) {
  .top .logo img { height: 38px; }
  .top nav a.lang { padding: 9px 8px; }
  .wall { gap: 8px; padding-bottom: 70px; } .wtrack { gap: 8px; }
  .wtrack img { height: 96px; border-radius: 5px; }
  .svc { flex-basis: 68vw; }
  .svc h3 { font-size: 22px; }
  .statement { text-wrap: pretty; }
  .work-count { font-size: 44px; }
  .wcard h3 { font-size: clamp(50px, 15vw, 80px); }
  .clist { gap: 8px 22px; } .clist li:not(:last-child)::after { margin-inline-start: 22px; }
  .clist { flex-direction: column; } .clist li:not(:last-child)::after { content: none; }
  .clist li { border-bottom: 1px solid var(--line); padding: 10px 0; width: 100%; }
  .hl { flex-basis: 86vw; }
  .pgrid { grid-template-columns: repeat(3, 1fr); gap: 4px; } .pgrid .ph { border-radius: 2px; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .wtrack, .cue::after { animation: none !important; }
  .js .reveal, .js .cover-logo, .js .cover-tag, .js .pcover h1, .js .pcover .wclient, .js .pcover .pmeta { opacity: 1 !important; transform: none !important; animation: none !important; }
  .js .pcover > img { animation: none; }
}
