/* Dash Creative: landing page. Tokens drawn from the 2026 portfolio. */
:root {
  --ink: #000;
  --paper: #fff;
  --teal: #009caa;
  --teal-deep: #00808c;
  --mist: #eef1f2;
  --graphite: #596066;
  --line: #d9dee1;
  --night-line: #262a2d;
  --night-text: #b9c0c4;
  --font: "Readex Pro", "Segoe UI", Tahoma, system-ui, sans-serif;
  --wrap: min(1240px, 100% - 2 * var(--gut));
  --gut: clamp(20px, 4vw, 48px);
  --head-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--head-h); }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; font-weight: 350;
  color: var(--ink); background: var(--paper); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: var(--wrap); margin-inline: auto; }

/* Language switching */
html[lang="ar"] .l-en, html:not([lang="ar"]) .l-ar { display: none !important; }
html[lang="ar"] body { font-weight: 330; line-height: 1.85; }

.skip { position: fixed; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--teal); color: #fff; padding: 10px 16px; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

/* Reading progress: the dash travels with you */
.progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--teal); transform-origin: left; transform: scaleX(0); }
html[dir="rtl"] .progress span { transform-origin: right; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6em; min-height: 52px; padding: .8em 1.5em;
  background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem;
  border: 2px solid var(--paper); border-radius: 2px; transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn--ghost { background: transparent; color: var(--paper); border-color: #fff6; }
.btn--ghost:hover { border-color: var(--paper); background: transparent; color: var(--paper); }
.btn--teal { background: var(--teal); border-color: var(--teal); color: var(--ink); }
.btn--teal:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn--small { min-height: 42px; padding: .45em 1.1em; font-size: .9375rem; }

/* Header */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--head-h);
  display: flex; align-items: center; gap: 24px; padding-inline: var(--gut); color: var(--paper);
  transition: background .3s, box-shadow .3s;
}
.top.solid { background: var(--ink); box-shadow: 0 1px 0 var(--night-line); }
.brand img { width: 96px; height: auto; }
.nav { display: flex; gap: clamp(16px, 2.4vw, 34px); margin-inline-start: auto; }
.nav a { text-decoration: none; font-size: .9375rem; color: var(--night-text); position: relative; padding-block: 6px; transition: color .2s; }
.nav a::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; height: 3px; width: 0; background: var(--teal); transition: width .3s var(--ease); }
.nav a:hover, .nav a.on { color: var(--paper); }
.nav a:hover::after, .nav a.on::after { width: 18px; }
.top-actions { display: flex; align-items: center; gap: 14px; }
.lang { background: none; border: 0; padding: 8px 4px; cursor: pointer; color: var(--night-text); font-size: .9375rem; }
.lang:hover { color: var(--paper); }
.menu { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.menu span:not(.sr) { position: absolute; inset-inline: 10px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.menu span:nth-child(1) { top: 17px; } .menu span:nth-child(2) { top: 25px; }
.menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { position: relative; background: var(--ink); color: var(--paper); min-height: 100svh; display: grid; grid-template-rows: 1fr auto; overflow: hidden; }
.hero-in { width: var(--wrap); margin-inline: auto; padding-block: calc(var(--head-h) + 6vh) 6vh; display: flex; flex-direction: column; justify-content: center; }
.hero-kicker { color: var(--night-text); font-size: clamp(.95rem, 1.3vw, 1.0625rem); margin-bottom: clamp(18px, 3vh, 32px); }
.hero-title { font-size: clamp(2.75rem, 8.4vw, 8rem); line-height: .98; font-weight: 600; letter-spacing: -.035em; max-width: 13ch; }
html[lang="ar"] .hero-title { letter-spacing: 0; line-height: 1.22; font-weight: 600; max-width: 12ch; font-size: clamp(2.6rem, 7.6vw, 7.2rem); }
.hero-title .ln { display: inline-block; }
.dash {
  display: inline-block; width: .9em; height: .16em; background: var(--teal);
  margin-inline-start: .14em; vertical-align: baseline; transform-origin: left center;
}
html[dir="rtl"] .dash { transform-origin: right center; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px 48px; margin-top: clamp(28px, 6vh, 64px); }
.hero-lede { max-width: 44ch; color: var(--night-text); font-size: clamp(1rem, 1.35vw, 1.1875rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* The hoarding: a strip of work moving like a site fence */
.hoarding { border-top: 1px solid var(--night-line); padding-block: 14px; overflow: hidden; }
.hoarding-track { display: flex; gap: 10px; width: max-content; animation: pan 80s linear infinite; }
.hoarding img { height: clamp(96px, 15vw, 190px); width: auto; aspect-ratio: 16 / 9; object-fit: cover; opacity: .8; }
.hoarding:hover .hoarding-track { animation-play-state: paused; }
@keyframes pan { to { transform: translateX(-50%); } }
html[dir="rtl"] .hoarding-track { animation-name: pan-rtl; }
@keyframes pan-rtl { to { transform: translateX(50%); } }

/* Load sequence: the one orchestrated moment */
.js .hero-title .ln { opacity: 0; transform: translateY(.35em); }
.js .hero-kicker, .js .hero-foot, .js .hoarding { opacity: 0; }
.js .dash { transform: scaleX(0); }
.ready .hero-title .ln { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .9s var(--ease); }
.ready .hero-title .ln:nth-child(2) { transition-delay: .09s; }
.ready .hero-title .ln:nth-child(3) { transition-delay: .18s; }
.ready .hero-title .ln:nth-child(4) { transition-delay: .27s; }
.ready .dash { transform: scaleX(1); transition: transform .8s var(--ease) .85s; }
.ready .hero-kicker { opacity: 1; transition: opacity .6s ease .1s; }
.ready .hero-foot { opacity: 1; transition: opacity .8s ease 1.1s; }
.ready .hoarding { opacity: 1; transition: opacity 1.2s ease 1.3s; }

/* Sections */
.h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.05; font-weight: 600; letter-spacing: -.025em; }
html[lang="ar"] .h2 { letter-spacing: 0; line-height: 1.3; }
.h2::after { content: ""; display: block; width: 56px; height: 6px; background: var(--teal); margin-top: .45em; }

.about { padding-block: clamp(80px, 13vw, 168px) clamp(64px, 9vw, 120px); }
.about-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-title { font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.18; font-weight: 500; letter-spacing: -.02em; }
html[lang="ar"] .about-title { letter-spacing: 0; line-height: 1.5; }
.about-copy p { color: var(--graphite); max-width: 52ch; }
.facts { margin-top: 36px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--graphite); font-size: .9375rem; }
.facts dd { font-weight: 500; }

.services { padding-block: clamp(40px, 6vw, 80px) clamp(80px, 10vw, 140px); }
.svc-list { margin-top: clamp(36px, 5vw, 64px); border-top: 2px solid var(--ink); counter-reset: none; }
.svc { border-bottom: 1px solid var(--line); }
.svc-link {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) auto; gap: 12px 40px; align-items: baseline;
  padding-block: clamp(22px, 2.6vw, 34px); text-decoration: none;
}
.svc-name { font-size: clamp(1.5rem, 2.8vw, 2.375rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; transition: color .25s, transform .4s var(--ease); }
html[lang="ar"] .svc-name { letter-spacing: 0; }
.svc-desc { color: var(--graphite); max-width: 46ch; position: relative; z-index: 1; }
.svc-count { font-size: .9375rem; color: var(--graphite); white-space: nowrap; }
.svc-peek {
  position: absolute; inset-inline-end: 7.5rem; top: 50%; width: 220px; z-index: 2; pointer-events: none;
  opacity: 0; transform: translateY(-50%) scale(.92) rotate(-2deg); transition: opacity .3s, transform .45s var(--ease);
  box-shadow: 0 18px 40px -18px rgb(0 0 0 / .5);
}
@media (hover: hover) and (min-width: 1000px) {
  .svc-link:hover .svc-name { color: var(--teal-deep); transform: translateX(10px); }
  html[dir="rtl"] .svc-link:hover .svc-name { transform: translateX(-10px); }
  .svc-link:hover .svc-peek { opacity: 1; transform: translateY(-50%) scale(1) rotate(-2deg); }
  .svc-link:hover .svc-desc { opacity: .25; }
}

/* Work */
.work { background: var(--mist); padding-block: clamp(80px, 10vw, 140px); }
.work-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; }
.work-note { color: var(--graphite); max-width: 40ch; }
.tabs {
  display: flex; gap: 6px; margin-block: clamp(32px, 4vw, 48px) 28px; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--line); margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; display: inline-flex; align-items: baseline; gap: 8px; padding: 14px 16px 16px; background: none; border: 0; cursor: pointer;
  color: var(--graphite); font-size: 1rem; position: relative; white-space: nowrap; transition: color .2s;
}
.tab::after { content: ""; position: absolute; inset-inline: 16px; bottom: -1px; height: 4px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
html[dir="rtl"] .tab::after { transform-origin: right; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); font-weight: 500; }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab-n { font-size: .8125rem; color: var(--graphite); font-weight: 350; }
.panel-desc { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); max-width: 60ch; margin-bottom: 28px; }
.panel:not([hidden]) { animation: panel-in .5s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.shot--lead { grid-column: span 2; grid-row: span 2; }
.shot-btn { display: block; width: 100%; padding: 0; border: 0; background: #dfe4e6; cursor: zoom-in; overflow: hidden; border-radius: 3px; }
.shot-btn img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .7s var(--ease); }
.shot-btn:hover img { transform: scale(1.035); }
.shot figcaption { font-size: .9375rem; color: var(--graphite); padding-top: 10px; }
.shot--lead figcaption { color: var(--ink); font-weight: 500; }

/* Process */
.process { padding-block: clamp(80px, 11vw, 150px); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px); margin-top: clamp(44px, 6vw, 80px); }
.step { position: relative; padding-top: 28px; border-top: 1px solid var(--line); }
.step-n { position: absolute; top: -1px; inset-inline-start: 0; height: 4px; width: calc(25% * var(--w, 1)); background: var(--teal); font-size: 0; }
.step:nth-child(1) .step-n { --w: 1; } .step:nth-child(2) .step-n { --w: 2; } .step:nth-child(3) .step-n { --w: 3; } .step:nth-child(4) .step-n { --w: 4; }
.step-ic { height: 64px; width: auto; margin-bottom: 26px; }
.step h3 { font-size: 1.375rem; font-weight: 500; margin-bottom: 10px; }
.step h3::before { content: counter(list-item) ". "; color: var(--teal-deep); }
.step p { color: var(--graphite); font-size: 1rem; }

/* Clients */
.clients { padding-block: clamp(40px, 6vw, 80px) clamp(80px, 11vw, 150px); border-top: 1px solid var(--line); }
.clients-wall { margin-top: clamp(40px, 5vw, 64px); width: 100%; max-width: 1180px; margin-inline: auto; opacity: .88; }

/* Contact */
.contact { background: var(--ink); color: var(--paper); padding-block: clamp(90px, 12vw, 170px) clamp(64px, 8vw, 110px); }
.contact-title { font-size: clamp(2.5rem, 7vw, 6.25rem); line-height: 1; font-weight: 600; letter-spacing: -.035em; max-width: 14ch; }
html[lang="ar"] .contact-title { letter-spacing: 0; line-height: 1.25; }
.contact-title::after { content: ""; display: inline-block; width: .7em; height: .14em; background: var(--teal); margin-inline-start: .15em; }
.contact-lede { color: var(--night-text); margin-top: 24px; max-width: 46ch; font-size: 1.125rem; }
.contact-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 64px; margin-top: clamp(56px, 7vw, 96px); padding-top: 32px; border-top: 1px solid var(--night-line); }
.office { display: flex; flex-direction: column; gap: 4px; color: var(--night-text); }
.office h3 { color: var(--paper); font-size: 1.125rem; font-weight: 500; margin-bottom: 8px; }
.office a { text-decoration: none; width: fit-content; }
.office a:hover { color: var(--teal); }

/* Footer */
.foot { background: var(--ink); color: var(--night-text); border-top: 1px solid var(--night-line); font-size: .875rem; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 28px; }
.arc { display: inline-flex; align-items: flex-end; gap: 8px; text-decoration: none; color: var(--paper); }
.arc-by { font-size: .75rem; color: var(--night-text); align-self: flex-start; }
.arc-mark { width: 40px; height: 22px; color: var(--teal); }
.arc-word { font-weight: 600; font-size: 1.0625rem; letter-spacing: .01em; line-height: 1; }
.arc-word sup { font-size: .45em; margin-inline-start: 2px; }

/* Lightbox */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(0 0 0 / .94); color: #fff; }
.lightbox[open] { display: grid; place-items: center; animation: fade .25s ease; }
.lightbox::backdrop { background: transparent; }
@keyframes fade { from { opacity: 0; } }
#lb-img { width: min(92vw, calc(82dvh * 16 / 9)); height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #111; }
.lb-cap { position: absolute; bottom: 22px; inset-inline: 0; text-align: center; color: var(--night-text); }
.lb-btn { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; background: rgb(255 255 255 / .08); border: 0; border-radius: 50%; cursor: pointer; transition: background .2s; }
.lb-btn:hover { background: var(--teal); }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; }
.lb-close { top: 18px; inset-inline-end: 18px; }
.lb-prev { inset-inline-start: 18px; top: 50%; translate: 0 -50%; }
.lb-next { inset-inline-end: 18px; top: 50%; translate: 0 -50%; }
html[dir="rtl"] .lb-prev svg, html[dir="rtl"] .lb-next svg { transform: scaleX(-1); }

/* Responsive */
@media (max-width: 1100px) {
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot--lead { grid-row: auto; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
}
@media (max-width: 900px) {
  :root { --head-h: 64px; }
  .brand img { width: 82px; }
  .menu { display: block; }
  .top-actions .btn--small { display: none; }
  .nav {
    position: fixed; inset: var(--head-h) 0 auto 0; flex-direction: column; gap: 0; background: var(--ink);
    padding: 8px var(--gut) 28px; border-bottom: 1px solid var(--night-line);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease), visibility .3s;
  }
  .nav.open { visibility: visible; opacity: 1; transform: none; }
  .nav a { font-size: 1.375rem; padding-block: 14px; color: var(--paper); border-bottom: 1px solid var(--night-line); }
  .nav a::after { display: none; }
  .top.menu-open { background: var(--ink); }
  .about-grid { grid-template-columns: 1fr; }
  .svc-link { grid-template-columns: 1fr auto; }
  .svc-desc { grid-column: 1 / -1; grid-row: 2; }
  .svc-count { grid-row: 1; grid-column: 2; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .shots { grid-template-columns: 1fr; }
  .shot--lead { grid-column: auto; }
  .steps { grid-template-columns: 1fr; row-gap: 44px; }
  .offices { grid-template-columns: 1fr; }
  .hero-cta .btn, .contact-cta .btn { flex: 1 1 100%; justify-content: center; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .lb-prev, .lb-next { top: auto; bottom: 64px; translate: none; }
  .lb-cap { bottom: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .hoarding-track { animation: none !important; }
}
