@font-face {
  font-family: "Forma DJR Arabic";
  src: url("assets/fonts/FormaDJRArabicText-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Forma DJR Arabic";
  src: url("assets/fonts/FormaDJRArabicText-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Forma DJR Arabic";
  src: url("assets/fonts/FormaDJRArabicText-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Forma DJR Display";
  src: url("assets/fonts/FormaDJRArabicDisplay-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --purple: #7c3aed;
  --purple-soft: #8f61f6;
  --ink: #1c1c1e;
  --ink-2: #2a2a2d;
  --paper: #f7f7f8;
  --pink: #f0477a;
  --gold: #e8a838;
  --mint: #22c9a8;
  --mint-soft: #d7fff7;
  --pink-soft: #ffd1df;
  --gold-soft: #ffeed0;
  --line: rgba(28, 28, 30, 0.12);
  --shadow: 0 24px 80px rgba(28, 28, 30, 0.14);
  --mouse-x: 50%;
  --mouse-y: 50%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Forma DJR Arabic", "Tahoma", sans-serif;
  background: var(--paper);
  color: var(--ink);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(124, 58, 237, 0.16), transparent 24rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(247, 247, 248, 0.8));
  transition: background-position 120ms linear;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 18px 20px auto 20px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(28, 28, 30, 0.28);
  color: #fff;
  backdrop-filter: blur(16px);
}

.brand img {
  width: 112px;
  height: auto;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.86);
}

.nav-links a,
.nav-cta,
.button {
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.nav-links a:hover,
.nav-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px 12px;
  border-radius: 6px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-cta {
  background: #fff;
  color: var(--purple);
}

.site-header.is-scrolled {
  background: rgba(28, 28, 30, 0.72);
  box-shadow: 0 18px 50px rgba(28, 28, 30, 0.18);
}

.section-band {
  position: relative;
  padding: 110px 0;
  overflow: hidden;
}

.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: #fff;
  background: #050505;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.74)),
    url("assets/brandbook/brand-flags.png"),
    url("assets/backgrounds/hero-purple.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  transition: transform 300ms ease;
  filter: saturate(0.92);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.social-rail {
  display: grid;
  gap: 16px;
  justify-items: center;
  align-self: center;
}

.social-rail a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease;
}

.social-rail a:hover {
  transform: translateX(-4px);
  background: rgba(255, 255, 255, 0.16);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
}

.eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Forma DJR Display", "Forma DJR Arabic", sans-serif;
  line-height: 0.95;
}

h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(52px, 8vw, 122px);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(38px, 5.3vw, 76px);
}

h3 {
  margin-bottom: 14px;
  font-size: 31px;
  line-height: 1.05;
}

.lead {
  max-width: 700px;
  margin-bottom: 32px;
  font-size: 25px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.84);
}

.lead.small {
  color: rgba(255, 255, 255, 0.72);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button.primary {
  background: var(--ink);
  color: #fff;
}

.button.ghost {
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #fff;
}

.button.dark-text {
  border-color: var(--line);
  color: var(--ink);
}

.hero-mark {
  justify-self: end;
  width: min(460px, 100%);
  padding: 60px 36px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  transform-style: preserve-3d;
}

.hero-mark img {
  width: 100%;
  animation: markPulse 4.6s ease-in-out infinite;
}

.story-intro {
  background: #050505;
  color: #fff;
}

.story-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 76px;
  align-items: start;
}

.intro-title {
  padding-inline-start: 34px;
  border-inline-start: 2px solid rgba(255, 255, 255, 0.62);
}

.section-kicker {
  color: var(--purple);
}

.rich-text {
  font-size: 24px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.76);
}

.rich-text strong {
  color: #fff;
}

.rich-text p {
  margin-bottom: 22px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 56px;
}

.metrics div {
  min-height: 150px;
  padding: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.metrics div:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 90px rgba(124, 58, 237, 0.18);
}

.metrics strong {
  display: block;
  margin-bottom: 8px;
  color: var(--purple);
  font-size: 58px;
  line-height: 1;
}

.metrics span {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.62);
}

.dark-photo {
  min-height: 720px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.04)),
    url("assets/brandbook/inspiration-map.png");
  background-size: cover;
  background-position: center;
  color: #fff;
}

.dark-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.72));
}

.story-card {
  position: relative;
  width: min(560px, 100%);
  margin-inline-start: auto;
  padding: 42px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.82);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.38);
}

.story-card .section-kicker {
  color: #fff;
}

.story-card h2 {
  font-size: clamp(42px, 5vw, 76px);
}

.story-card p {
  font-size: 22px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
}

.light {
  background: var(--paper);
  color: var(--ink);
}

.services {
  color: #fff;
  background:
    linear-gradient(rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.78)),
    url("assets/brandbook/brand-flags.png");
  background-size: cover;
  background-position: center;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 44px;
}

.section-heading p:last-child {
  font-size: 23px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border-radius: 8px;
  overflow: hidden;
  color: var(--ink);
  isolation: isolate;
  transform-style: preserve-3d;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.service-card.is-active {
  outline: 3px solid color-mix(in srgb, var(--card-accent, var(--purple)) 72%, white);
  box-shadow: 0 34px 90px color-mix(in srgb, var(--card-accent, var(--purple)) 26%, transparent);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--purple);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 60%;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.2));
  transition: opacity 220ms ease;
}

.service-card.marketing::before {
  background: var(--gold-soft);
}

.service-card.design::before {
  background: var(--pink-soft);
}

.service-card.photo::before {
  background: var(--mint-soft);
}

.service-logo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 7px;
}

.service-card div {
  padding: 10px 8px 6px;
  transform: translateZ(28px);
}

.service-card span {
  display: block;
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--purple);
}

.service-card p {
  font-size: 21px;
  line-height: 1.6;
  color: rgba(28, 28, 30, 0.68);
}

.service-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 6px;
  padding: 10px 16px 11px;
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.service-card.is-active .service-button,
.service-button:hover {
  background: var(--card-accent, var(--purple));
  color: #fff;
  transform: translateY(-2px);
}

.service-explorer {
  position: relative;
  min-height: 330px;
  margin-top: 18px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(34, 201, 168, 0.12)),
    #f7f7f8;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.service-explorer::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: url("assets/patterns/marketing-pattern.png");
  background-size: 360px;
  animation: patternDrift 24s linear infinite;
}

.service-panel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 38px;
  align-items: center;
  padding: 36px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.985);
  transition: opacity 280ms ease, transform 280ms ease;
}

.service-panel.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.panel-head,
.panel-grid {
  position: relative;
}

.panel-head span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--purple);
  font-weight: 700;
  font-size: 19px;
}

.panel-head h3 {
  max-width: 560px;
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.panel-grid div {
  min-height: 210px;
  padding: 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(28, 28, 30, 0.08);
}

.panel-grid h4 {
  margin: 0 0 14px;
  font-size: 24px;
}

.panel-grid ul {
  display: grid;
  gap: 10px;
  padding: 0 18px 0 0;
  margin: 0;
  font-size: 20px;
  line-height: 1.45;
  color: rgba(28, 28, 30, 0.7);
}

.panel-grid p {
  margin-bottom: 0;
  font-size: 21px;
  line-height: 1.7;
  color: rgba(28, 28, 30, 0.68);
}

.service-card:hover {
  box-shadow: 0 34px 90px color-mix(in srgb, var(--card-accent, var(--purple)) 24%, transparent);
}

.service-card:hover::after {
  opacity: 0.88;
}

.service-card:hover .service-logo {
  transform: scale(1.04);
}

.service-logo {
  transition: transform 360ms ease;
}

.dark {
  color: #fff;
  background: var(--ink);
}

.process::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: url("assets/patterns/design-pattern.png");
  background-size: 420px;
}

.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.steps {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.steps li:hover {
  transform: translateX(-10px);
  border-color: rgba(143, 97, 246, 0.6);
  background: rgba(124, 58, 237, 0.16);
}

.steps span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--purple-soft);
  font-weight: 700;
}

.steps p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 21px;
  line-height: 1.55;
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.projects {
  min-height: 640px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.62)),
    url("assets/brandbook/agency-overview.png");
  background-size: cover;
  background-position: center;
}

.projects-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
  max-width: 920px;
  padding: 48px;
  border-radius: 8px;
  background: #f1eee5;
  color: #050505;
}

.projects-panel .section-kicker {
  color: var(--ink);
}

.projects-panel h2 {
  margin-bottom: 0;
  font-size: clamp(38px, 5vw, 72px);
}

.projects-panel p {
  margin-bottom: 24px;
  font-size: 23px;
  line-height: 1.7;
  color: rgba(28, 28, 30, 0.76);
}

.identity-shot {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease;
  transform-style: preserve-3d;
}

.identity-shot:hover {
  box-shadow: 0 34px 90px color-mix(in srgb, var(--card-accent, var(--purple)) 22%, transparent);
}

.identity-shot.wide {
  grid-column: 1 / -1;
}

.identity-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 340px;
}

.strip-panel {
  background-size: cover;
  background-position: center;
  animation: patternDrift 18s linear infinite;
  transition: filter 220ms ease, flex 220ms ease;
}

.strip-panel:nth-child(2) {
  animation-duration: 22s;
  animation-direction: reverse;
}

.strip-panel:nth-child(3) {
  animation-duration: 26s;
}

.visual-strip:hover .strip-panel {
  filter: saturate(0.75) brightness(0.92);
}

.visual-strip .strip-panel:hover {
  filter: saturate(1.2) brightness(1.04);
}

.contact {
  color: #fff;
  background-image: linear-gradient(90deg, rgba(34, 201, 168, 0.75), rgba(124, 58, 237, 0.76), rgba(240, 71, 122, 0.72)), url("assets/backgrounds/gradient-main.png");
  background-size: cover;
  background-position: center;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 42px;
  align-items: center;
}

.contact h2 {
  max-width: 720px;
}

.contact p {
  max-width: 660px;
  font-size: 23px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.contact .section-kicker {
  color: #fff;
}

.contact-actions {
  justify-content: flex-start;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 360px;
  padding: 56px 12vw;
  background: #a9b4aa;
  color: #050505;
}

.site-footer img {
  width: 150px;
  margin-bottom: 22px;
}

.footer-mark {
  align-self: end;
}

.footer-links {
  display: grid;
  gap: 12px;
  font-size: 20px;
  text-align: right;
}

.footer-links a {
  transition: transform 180ms ease;
}

.footer-links a:hover {
  transform: translateX(-4px);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.float-card {
  animation: floatSoft 6s ease-in-out infinite;
}

.tilt-card {
  --rx: 0deg;
  --ry: 0deg;
  --card-accent: var(--purple);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(0);
}

.tilt-card.is-tilting {
  transition: transform 80ms linear;
}

@keyframes markPulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  }

  50% {
    transform: scale(1.035);
    filter: drop-shadow(0 20px 44px rgba(255, 255, 255, 0.22));
  }
}

@keyframes floatSoft {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -12px;
  }
}

@keyframes patternDrift {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 420px 260px;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-links {
    display: none;
  }

  .hero-grid,
  .story-intro-grid,
  .process-grid,
  .contact-panel,
  .projects-panel {
    grid-template-columns: 1fr;
  }

  .social-rail {
    display: none;
  }

  .hero-mark {
    justify-self: stretch;
  }

  .service-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .service-explorer {
    min-height: 620px;
  }

  .service-panel,
  .panel-grid {
    grid-template-columns: 1fr;
  }

  .service-panel {
    align-items: start;
    gap: 22px;
  }

  .visual-strip,
  .identity-grid {
    grid-template-columns: 1fr;
  }

  .identity-shot.wide {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    inset: 10px 12px auto 12px;
    padding: 10px;
  }

  .brand img {
    width: 92px;
  }

  .nav-cta {
    min-height: 40px;
    padding-inline: 12px;
    font-size: 14px;
  }

  .section-band {
    padding: 76px 0;
  }

  .hero {
    min-height: 88vh;
    padding-top: 110px;
  }

  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 38px;
  }

  .lead,
  .rich-text,
  .section-heading p:last-child,
  .contact p {
    font-size: 20px;
  }

  .hero-mark {
    padding: 42px 20px;
  }

  .service-card {
    min-height: 470px;
  }

  .service-explorer {
    min-height: 820px;
  }

  .service-panel {
    padding: 22px;
  }

  .panel-grid div {
    min-height: auto;
    padding: 20px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: flex-start;
    padding: 24px;
  }

  .footer-mark {
    align-self: auto;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
