@font-face {
  font-family: "rikos";
  src: url("RIKOS___.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
/* ============ TOKENS ============ */
:root {
  --purple-1: #7b2ff7;
  --purple-2: #c026d3;
  --purple-3: #b026ff;
  --gold: #e8c96b;

  --ink: #07060b;
  --ink-2: #0f0c17;
  --ink-3: #171223;
  --ink-line: rgba(176, 38, 255, 0.16);
  --text-hi: #f6f2ff;
  --text-lo: #a99cc4;

  --paper: #f5f2fa;
  --paper-2: #ffffff;
  --paper-3: #efe9f8;
  --paper-line: rgba(123, 47, 247, 0.15);
  --pdark-hi: #160f24;
  --pdark-lo: #5c5375;

  --bg: var(--ink);
  --bg-2: var(--ink-2);
  --bg-3: var(--ink-3);
  --line: var(--ink-line);
  --hi: var(--text-hi);
  --lo: var(--text-lo);

  --radius: 18px;
  --ease: cubic-bezier(0.16, 0.8, 0.24, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-all: "Tajawal", sans-serif;

  --font-mono: "IBM Plex Mono", monospace;
}

[data-theme="light"] {
  --bg: var(--paper);
  --bg-2: var(--paper-2);
  --bg-3: var(--paper-3);
  --line: var(--paper-line);
  --hi: var(--pdark-hi);
  --lo: var(--pdark-lo);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--hi);
  font-family: var(--font-all);
  overflow-x: hidden;
  transition:
    background 0.5s var(--ease),
    color 0.5s var(--ease);
  -webkit-font-smoothing: antialiased;
}
body.locked {
  overflow: hidden;
  height: 100vh;
}

h1,
h2,
h3,
h4,
.display {
  font-family: var(--font-all);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: 24px;
}
section {
  position: relative;

  scroll-margin-top: 30px;
}
@media screen and (max-width: 768px) and (max-width: 1024px) {
  /* Put your CSS rules for mobile screens in here! */
  section {
    scroll-margin-top: 30px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple-2);
  margin-bottom: 18px;
  overflow: hidden;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--purple-2);
  flex: none;
}

.grad-text {
  background: linear-gradient(
    100deg,
    var(--purple-3),
    var(--purple-2) 60%,
    var(--gold)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

::selection {
  background: var(--purple-1);
  color: #fff;
}

/* ============ PRELOADER (signature entrance) ============ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #07060b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  transition:
    opacity 0.6s var(--ease),
    visibility 0.6s var(--ease);
}
.preloader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-mark {
  position: relative;
  width: 60px;
  height: auto;
  filter: drop-shadow(0 0 22px rgba(176, 38, 255, 0.55));
}

.preloader-icon {
  position: relative;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader-ring {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 1px solid rgba(176, 38, 255, 0.28);
  border-top-color: #c026d3;
  animation: preSpin 1.1s linear infinite;
}
@keyframes preSpin {
  to {
    transform: rotate(360deg);
  }
}
.preloader-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: #a99cc4;
  opacity: 0;
  animation: fadein 0.5s ease-out 0.5s forwards;
  display: flex;
  align-items: center;
  gap: 8px;
}
.preloader-label .load-dots::after {
  content: "";
  display: inline-block;
  width: 4px;
  animation: dots 1.2s steps(4) infinite;
}
@keyframes dots {
  0% {
    content: "";
  }
  25% {
    content: ".";
  }
  50% {
    content: "..";
  }
  75% {
    content: "...";
  }
}
@keyframes fadein {
  to {
    opacity: 1;
  }
}

/* ============ SCROLL PROGRESS ============ */
.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 2px;
  z-index: 200;
  background: linear-gradient(90deg, var(--purple-1), var(--purple-2));
  transform-origin: left center;
  transform: scaleX(0);
}
[dir="rtl"] .scroll-progress {
  transform-origin: right center;
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  transition:
    background 0.4s var(--ease),
    padding 0.4s var(--ease),
    border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;

  direction: ltr;
}
.brand-logo {
  width: 35px;
  height: 35px;
  position: relative;
  top: -5px;

  transition: transform 0.5s var(--ease-spring);
}
.brand:hover .brand-logo {
  transform: rotate(-8deg) scale(1.08);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 0.88rem;
  color: var(--lo);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 1px;
  background: var(--purple-2);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.35s var(--ease);
}
[dir="ltr"] .nav-links a::after {
  transform-origin: left center;
}
.nav-links a:hover {
  color: var(--hi);
}
.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--hi);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  transition:
    border-color 0.3s,
    background 0.3s,
    transform 0.4s var(--ease-spring);
  flex: none;
}
.icon-btn:hover {
  border-color: var(--purple-2);
  background: rgba(176, 38, 255, 0.08);
  transform: translateY(-2px) scale(1.06);
}
.icon-btn:active {
  transform: scale(0.92);
}
.icon-btn svg {
  transition: transform 0.5s var(--ease-spring);
}
.icon-btn:hover svg {
  transform: rotate(25deg);
}

.cta-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--purple-1), var(--purple-2));
  color: #fff;
  font-weight: 600;
  font-size: 0.86rem;
  box-shadow: 0 8px 30px -8px rgba(176, 38, 255, 0.7);
  transition:
    transform 0.4s var(--ease-spring),
    box-shadow 0.4s var(--ease);
  white-space: nowrap;
}
.cta-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--purple-2), var(--gold));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.cta-btn span {
  position: relative;
  z-index: 1;
}
.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px -8px rgba(176, 38, 255, 0.9);
}
.cta-btn:hover::before {
  opacity: 1;
}
.cta-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--hi);
  font-weight: 600;
  font-size: 0.86rem;
  transition:
    border-color 0.3s,
    background 0.3s,
    transform 0.4s var(--ease-spring);
}
.cta-ghost:hover {
  border-color: var(--purple-2);
  background: rgba(176, 38, 255, 0.06);
  transform: translateY(-3px);
}
.cta-ghost:active {
  transform: translateY(-1px) scale(0.98);
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  flex: none;
}
.burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--hi);
  position: relative;
  transition: background 0.3s;
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 1.5px;
  background: var(--hi);
  left: 0;
  transition: transform 0.3s var(--ease);
}
.burger span::before {
  top: -5px;
}
.burger span::after {
  top: 5px;
}
.burger.open span {
  background: transparent;
}
.burger.open span::before {
  transform: translateY(5px) rotate(45deg);
}
.burger.open span::after {
  transform: translateY(-5px) rotate(-45deg);
}

.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  clip-path: circle(0% at 92% 4%);
  transition: clip-path 0.6s var(--ease);
  pointer-events: none;
}
.mobile-panel.open {
  clip-path: circle(150% at 92% 4%);
  pointer-events: auto;
}
.mobile-panel a {
  font-family: var(--font-all);
  font-weight: 700;
  font-size: 1.6rem;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease);
}
.mobile-panel.open a {
  opacity: 1;
  transform: translateY(0);
}
.mobile-panel.open a:nth-child(1) {
  transition-delay: 0.08s;
}
.mobile-panel.open a:nth-child(2) {
  transition-delay: 0.13s;
}
.mobile-panel.open a:nth-child(3) {
  transition-delay: 0.18s;
}
.mobile-panel.open a:nth-child(4) {
  transition-delay: 0.23s;
}
.mobile-panel.open a:nth-child(5) {
  transition-delay: 0.28s;
}
.mobile-panel.open a:nth-child(6) {
  transition-delay: 0.33s;
}
.mobile-panel.open a:nth-child(7) {
  transition-delay: 0.38s;
}

/* ============ REVEAL UTILITIES (scroll-triggered, JS toggled, replayable) ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
  backface-visibility: hidden;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 20px;
  background:
    radial-gradient(
      650px 500px at 82% 18%,
      rgba(123, 47, 247, 0.28),
      transparent 60%
    ),
    var(--bg);
  overflow: hidden;
}
.hero-spot {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    280px 280px at var(--mx, 50%) var(--my, 30%),
    rgba(176, 38, 255, 0.16),
    transparent 70%
  );
}
[data-theme="light"] .hero-spot {
  background: radial-gradient(
    280px 280px at var(--mx, 50%) var(--my, 30%),
    rgba(176, 38, 255, 0.1),
    transparent 70%
  );
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(700px 500px at 70% 20%, black, transparent 75%);
  will-change: transform;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-anim > * {
  opacity: 0;
  transform: translateY(24px);
  animation: heroUp 0.9s var(--ease) forwards;
}

.hero-anim h1 {
  animation-delay: 0.3s;
}
.hero-anim .sub {
  animation-delay: 0.45s;
}
.hero-anim .hero-actions {
  animation-delay: 0.6s;
}
.hero-anim .hero-tags {
  animation-delay: 0.72s;
}
@keyframes heroUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 4.1rem);
  line-height: 1.16;
  margin-bottom: 24px;
}
.hero p.sub {
  font-size: 1.08rem;
  color: var(--lo);
  max-width: 520px;
  line-height: 1.85;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}

.hero-tags {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.hero-tags .tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--lo);
}
.hero-tags .tag svg {
  width: 16px;
  height: 16px;
  color: var(--purple-2);
}

.hero-visual {
  position: relative;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.85) rotate(-6deg);
  animation: heroVisual 1.1s var(--ease-spring) 0.5s forwards;
}
@keyframes heroVisual {
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}
.hero-visual .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  animation: spin 40s linear infinite;
}
.hero-visual .ring.r2 {
  inset: 10%;
  animation-duration: 60s;
  animation-direction: reverse;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.hero-crown {
  width: 52%;
  filter: drop-shadow(0 20px 60px rgba(176, 38, 255, 0.55));
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

/* ============ SECTION HEAD ============ */
.section-head {
  max-width: 640px;
  margin-bottom: 60px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.24;
}
.section-head p {
  color: var(--lo);
  margin-top: 16px;
  font-size: 1.02rem;
  line-height: 1.8;
}

/* ============ RESULTS ============ */
.results {
  padding: 70px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-card {
  background: var(--bg-2);
  padding: 44px 26px;
  text-align: center;
  position: relative;
  transition: background 0.4s var(--ease);
}
.stat-card:hover {
  background: color-mix(in srgb, var(--bg-2) 80%, var(--purple-1) 12%);
}
.stat-card .aperture {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  position: relative;
}
.stat-card .aperture svg {
  width: 100%;
  height: 100%;
  transition: transform 0.7s var(--ease-spring);
}
.stat-card:hover .aperture svg {
  transform: rotate(45deg) scale(1.1);
}
.stat-num {
  font-family: var(--font-all);
  font-weight: 700;
  font-size: clamp(2.1rem, 3.4vw, 2.8rem);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  color: var(--lo);
  font-size: 0.88rem;
  margin-top: 10px;
  line-height: 1.6;
}

.stories .stories-card .stat-label {
  margin-top: 8px;
  margin-bottom: 20px;
}

/* ============ WORK GRID ============ */
.work {
  padding: 70px 0 60px;

  border-bottom: 1px solid var(--line);
}

/* ============ VIDEO SHOWCASE ============ */
.video-showcase {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.video-frame {
  position: relative;
  width: 100%;
  max-width: 380px; /* Shorts are vertical — keeps the frame from going too wide on desktop */
  aspect-ratio: 9 / 16; /* Shorts native ratio — this is what kills the black bars */
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: 0 20px 60px -20px rgba(123, 47, 247, 0.45);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 480px) {
  .video-frame {
    max-width: 100%;
  }
}

.video-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--bg-2) 65%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  color: var(--hi);
  z-index: 2;
  transition:
    background 0.3s,
    border-color 0.3s,
    transform 0.3s var(--ease-spring);
}
.video-arrow:hover {
  background: rgba(176, 38, 255, 0.28);
  border-color: var(--purple-2);
  transform: translateY(-50%) scale(1.08);
}
.video-arrow:active {
  transform: translateY(-50%) scale(0.94);
}
.video-arrow-prev {
  left: 16px;
}
.video-arrow-next {
  right: 16px;
}

.video-caption {
  margin-top: 24px;
  text-align: center;
}

.video-insta-btn {
  margin-top: 16px;
  margin-bottom: 16px;
  padding: 10px 20px; /* overrides cta-ghost's 12px 24px */
  gap: 8px; /* overrides cta-ghost's 10px */
  font-size: 0.82rem; /* overrides cta-ghost's 0.86rem */
  opacity: 1;
  transform: translateY(8px) scale(0.92);
  transition:
    border-color 0.3s,
    background 0.3s,
    opacity 0.35s var(--ease-spring),
    transform 0.35s var(--ease-spring);
}

.video-insta-btn svg {
  width: 16px;
  height: 16px;
  color: var(--purple-2);
}
.video-insta-btn:hover {
  border-color: var(--purple-2);
  background: rgba(176, 38, 255, 0.08);
  transform: translateY(-2px);
}
.video-insta-btn:active {
  transform: translateY(0) scale(0.97);
}

@media (max-width: 480px) {
  .video-insta-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px; /* slightly taller on mobile for an easier tap target */
  }
}

.video-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  direction: ltr;
}
.video-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  padding: 0;
  cursor: pointer;
  transition:
    background 0.3s,
    transform 0.3s;
}
.video-dot.active {
  background: var(--purple-2);
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .video-arrow {
    width: 38px;
    height: 38px;
  }
  .video-arrow-prev {
    left: 8px;
  }
  .video-arrow-next {
    right: 8px;
  }
}

/* ============ STORIES ============ */
.stories {
  padding: 70px 0 60px;
}
.story-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: center;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 24px;
  margin-bottom: 26px;
  background: linear-gradient(160deg, var(--bg-3), transparent);
  transition:
    border-color 0.4s var(--ease),
    transform 0.4s var(--ease);
}

.story-card:hover {
  border-color: var(--purple-2);
  transform: translateY(-4px);
}
.story-card:nth-child(even) {
  grid-template-columns: 1.15fr 0.85fr;
}
.story-quote-wrap {
  position: relative;
}
.story-quote-wrap .quote-mark {
  font-family: var(--font-all);
  font-size: 5rem;
  font-weight: 700;
  color: var(--purple-2);
  opacity: 0.25;
  line-height: 1;
}
.story-quote {
  font-family: var(--font-all);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.55;
  margin-top: -14px;
}
.story-meta {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 148, 158, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.stories .stories-card {
  display: flex;
  flex-direction: column;
}
.stories .stories-card h3 {
  height: 3em;
  line-height: 1.4;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.stories .stories-card .story-full-title {
  height: auto;
  overflow: visible;
  display: block;
}
.stories .stories-card .stat-num {
  margin-top: 14px;
}
.stories .stories-card .story-meta {
  margin-top: auto; /* pushes this row (and the button after it) down to the bottom */
}

.story-name {
  max-width: 220px; /* caps how wide the name area can get */
}
.story-name strong {
  display: block;
  font-size: 0.92rem;
  height: 2.6em; /* fixed 2-line box, same idea as the headline fix */
  line-height: 1.3;
  overflow: hidden; /* only kicks in on the rare name that needs a 3rd line */
}
.story-name span {
  display: block;
  font-size: 0.8rem;
  color: var(--lo);
}

.story-stat-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  background: var(--bg-2);
}
.story-stat-panel .big-num {
  font-family: var(--font-all);
  font-weight: 700;
  font-size: 3rem;
  font-variant-numeric: tabular-nums;
}
.story-stat-panel .big-label {
  color: var(--lo);
  font-size: 0.86rem;
  margin-top: 8px;
}
.story-stat-panel .divider {
  height: 1px;
  background: var(--line);
  margin: 22px 0;
}
.story-stat-panel .mini-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--lo);
  margin-bottom: 8px;
}
.story-stat-panel .mini-row b {
  color: var(--hi);
}

/* ============ FULL STORY CARDS (video + long-form case study) ============ */
.story-full {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(160deg, var(--bg-3), transparent);
  padding: 40px;
  margin-bottom: 40px;
  transition:
    border-color 0.4s var(--ease),
    transform 0.4s var(--ease);
}
.story-full:hover {
  border-color: var(--purple-2);
}
.story-full:last-child {
  margin-bottom: 0;
}

.story-full-media {
  max-width: 380px; /* reels are vertical — matches the case-videos section above */
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.story-full-image {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px -20px rgba(123, 47, 247, 0.45);
  margin: 0 auto 22px;
}
.story-full-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.story-full-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.story-insta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--hi);
  font-family: var(--font-all);
  font-weight: 600;
  font-size: 0.82rem;
  transition:
    border-color 0.3s,
    background 0.3s,
    transform 0.35s var(--ease-spring);
}
.story-insta-btn svg {
  width: 16px;
  height: 16px;
  color: var(--purple-2);
}
.story-insta-btn:hover {
  border-color: var(--purple-2);
  background: rgba(176, 38, 255, 0.08);
  transform: translateY(-2px);
}
.story-insta-btn:active {
  transform: translateY(0) scale(0.97);
}

@media (max-width: 480px) {
  .story-full-media {
    max-width: 100%;
  }
  .story-insta-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }
}

.story-full-body {
  max-width: 760px;
  margin: 0 auto;
}
.story-full-title {
  font-family: var(--font-all);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 28px;
  text-align: center;
}
.story-full-body p {
  font-family: var(--font-all);
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--lo);
  margin-bottom: 22px;
}
.story-full-body h4 {
  font-family: var(--font-all);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--hi);
  margin: 36px 0 14px;
}
.story-highlight {
  font-weight: 600;
  color: var(--hi) !important;
  border-inline-start: 3px solid var(--purple-2);
  padding-inline-start: 18px;
}
.story-tagline {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin-top: 36px !important;
  margin-bottom: 36px !important;
}
.story-full-body .story-meta {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  justify-content: center;
}

@media (max-width: 900px) {
  .story-full {
    padding: 26px 22px;
    border-radius: 20px;
    margin-bottom: 28px;
  }
  .story-full-media {
    margin-bottom: 28px;
  }
  .story-full-video {
    border-radius: 12px;
  }
  .story-full-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
  }
  .story-full-body p {
    font-size: 0.98rem;
    line-height: 1.8;
    margin-bottom: 18px;
  }
  .story-full-body h4 {
    font-size: 1.08rem;
    margin: 26px 0 10px;
  }
  .story-tagline {
    font-size: 1.1rem;
    margin-top: 26px !important;
    margin-bottom: 26px !important;
  }
  .story-full-body .story-meta {
    margin-top: 26px;
    padding-top: 20px;
  }
}

@media (max-width: 480px) {
  .story-full {
    padding: 20px 16px;
  }
  .story-full-title {
    font-size: 1.12rem;
  }
  .story-full-body p {
    font-size: 0.92rem;
  }
}

/* ============ ABOUT ============ */
.about {
  padding: 70px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 70px;
  align-items: center;
}
.about-text p {
  margin-top: 22px;
  color: var(--lo);
  font-size: 1.03rem;
  line-height: 1.95;
  margin-bottom: 20px;
}
.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1f);
  gap: 18px;
  margin-top: 36px;
}
.value-item {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  transition: border-color 0.3s;
}
.value-item:hover {
  border-color: var(--purple-2);
}
.value-item .v-no {
  font-family: var(--font-mono);
  color: var(--purple-2);
  font-size: 0.78rem;
}
.value-item h4 {
  margin-top: 8px;
  font-size: 1.02rem;
}
.value-item p {
  color: var(--lo);
  font-size: 0.86rem;
  margin-top: 6px;
  line-height: 1.7;
}

.about-visual {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(176, 38, 255, 0.35),
      transparent 55%
    ),
    radial-gradient(
      circle at 75% 80%,
      rgba(192, 38, 211, 0.28),
      transparent 55%
    ),
    var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-visual .silhouette-big {
  width: 56%;
  opacity: 0.92;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
  animation: float 6s ease-in-out infinite;
}
.about-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.25;
}

/* ============ CONTACT ============ */
.contact {
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}
.contact-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px 400px at 50% 0%,
    rgba(123, 47, 247, 0.25),
    transparent 65%
  );
  pointer-events: none;
}
.contact .eyebrow {
  justify-content: center;
}
.contact-inner {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.contact h2 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.2;
  margin-bottom: 22px;
}
.contact p.sub {
  color: var(--lo);
  font-size: 1.05rem;
  margin-bottom: 44px;
  line-height: 1.8;
}
.contact-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.contact-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  /* width: 48px;
  height: 48px; */
  /* border-radius: 50%;
  border: 1px solid var(--line); */
  transition:
    transform 0.35s var(--ease-spring),
    border-color 0.3s,
    box-shadow 0.3s;
}
.contact-icon-link:hover {
  transform: translateY(-4px);
}
.contact-icon-link:active {
  transform: translateY(-1px) scale(0.95);
}
.contact-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
}
.contact-icon-insta {
  width: 90px;
  height: 90px;
  object-fit: contain;
  display: block;
  padding-bottom: 3px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: start;
}
.contact-item {
  background: var(--bg-2);
  padding: 28px;
  transition: background 0.3s;
}
.contact-item:hover {
  background: color-mix(in srgb, var(--bg-2) 82%, var(--purple-1) 10%);
}
.contact-item .c-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--purple-2);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.contact-item .c-value {
  font-family: var(--font-all);
  font-weight: 700;
  font-size: 1.05rem;
}
.contact-item .c-note {
  font-size: 0.76rem;
  color: var(--lo);
  margin-top: 6px;
}

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
  }
  .footer {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
  }
  /* للتأكد من أن قائمة الروابط تصبح عمودية أو متمركزة أيضاً في الموبايل */
  .footer-links {
    justify-content: center;
  }
}
.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--lo);
  font-size: 0.85rem;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: var(--purple-2);
}
.footer-copy {
  color: var(--lo);
  font-size: 0.78rem;
}

/* ============ BACK TO TOP ============ */
.to-top {
  position: fixed;
  bottom: 26px;
  inset-inline-end: 26px;
  z-index: 80;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hi);
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease-spring),
    border-color 0.3s;
}
.to-top.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.to-top:hover {
  border-color: var(--purple-2);
  transform: translateY(-3px) scale(1.05);
}
.to-top svg {
  width: 18px;
  height: 18px;
}

/* ============ RESPONSIVE ============ */

/* ---- Tablets: max-width 1024px ---- */
@media (max-width: 1024px) {
  .wrap {
    padding-inline: 20px;
  }
  .nav-links {
    display: none;
  }
  .burger {
    display: flex;
  }
  .hero {
    padding-top: 110px;
    padding-bottom: 64px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-visual {
    order: -1;
    max-width: 260px;
    margin: 0 auto;
  }
  .hero p.sub {
    max-width: none;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-grid > .stat-card:last-child {
    grid-column: 1 / -1;
  }
  .work {
    padding: 110px 0;
  }

  .about {
    padding: 110px 0;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .about-visual {
    order: -1;
    max-width: 340px;
    margin: 0 auto;
  }
  .stories {
    padding: 110px 0;
  }
  .stories .stat-card .story-insta-btn {
    align-self: center;
  }
  .story-card,
  .story-card:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px;
  }
  .contact {
    padding: 110px 0 80px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .section-head {
    margin-bottom: 44px;
  }
}

/* ---- Mobile: max-width 768px ---- */
@media (max-width: 768px) {
  .wrap {
    padding-inline: 18px;
  }

  /* Typography scale-down so headings/paragraphs never force horizontal scroll or awkward wraps */
  .hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
    line-height: 1.22;
    margin-bottom: 18px;
  }
  .hero p.sub {
    font-size: 0.98rem;
    line-height: 1.75;
    margin-bottom: 28px;
  }
  .section-head h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  .section-head p {
    font-size: 0.94rem;
  }
  .contact h2 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  .contact p.sub {
    font-size: 0.95rem;
  }
  .story-quote {
    font-size: 1.08rem;
  }
  .about-text p {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  /* Nav: hamburger menu takes over, lang/theme toggles stay visible & compact */
  .nav {
    padding: 12px 0;
  }
  .nav-inner {
    gap: 10px;
  }
  .brand-word {
    font-size: 0.95rem;

    font-family: "rikos", sans-serif;
    letter-spacing: 2.5px; /* جربي تقليل المسافة بين الحروف (قيم سالبة مثل -1px أو -2px لتجعلها متقاربة) */
    font-weight: 700; /* جعل الخط عريضاً ليقارب شكل الشعار */
    text-transform: uppercase; /* لضمان أن تكون جميع الحروف كبيرة */
  }
  .nav-actions {
    gap: 6px;
  }
  .icon-btn {
    width: 34px;
    height: 34px;
    font-size: 0.66rem;
  }
  .nav-actions .cta-btn {
    display: none;
  } /* primary CTA already reachable via hero + contact section on mobile */
  .burger {
    width: 36px;
    height: 36px;
  }

  /* Sections: reduce vertical padding for mobile */
  .hero {
    padding-top: 96px;
    padding-bottom: 52px;
    min-height: auto;
  }
  .results {
    padding: 60px 0;
  }
  .work {
    padding: 60px 0;
  }

  .stories {
    padding: 60px 0;
  }
  .about {
    padding: 60px 0;
  }
  .contact {
    padding: 80px 0 60px;
  }
  .section-head {
    margin-bottom: 34px;
  }

  /* Flex containers stack vertically */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions a {
    justify-content: center;
    text-align: center;
  }
  .hero-tags {
    flex-direction: column;
    gap: 12px;
  }
  .contact-actions {
    align-items: stretch;
  }
  .contact-actions a {
    justify-content: center;
    text-align: center;
  }
  .footer-inner {
    /* flex-direction: column;
    text-align: center; */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
  }
  .footer-links {
    justify-content: center;
  }

  /* Grids collapse to a single column */
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .about-values {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .story-card {
    padding: 24px;
    border-radius: 18px;
  }
  .story-stat-panel {
    padding: 24px;
  }
  .story-stat-panel .big-num {
    font-size: 2.3rem;
  }

  /* "Aperture" / stat icon shrinks so cards fit comfortably and nothing overflows horizontally */
  .stat-card {
    padding: 32px 18px;
  }
  .stat-card .aperture {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
  }
  .stat-num {
    font-size: clamp(1.8rem, 7vw, 2.3rem);
  }

  .about-visual {
    max-width: 100%;
  }
  .hero-visual {
    max-width: 220px;
  }

  .to-top {
    width: 40px;
    height: 40px;
    bottom: 16px;
    inset-inline-end: 16px;
  }
}

@media (max-width: 600px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions a {
    justify-content: center;
  }
  .about-values {
    grid-template-columns: 1fr;
  }
  .to-top {
    width: 42px;
    height: 42px;
    bottom: 18px;
    inset-inline-end: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

.story-extra-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  transition:
    max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease,
    visibility 0.4s ease;
  text-align: start;
  font-size: 0.9rem;
  color: var(--lo);
  line-height: 1.7;
  margin-top: 24px;
}

.stories-card.expanded .story-extra-content {
  max-height: 3000px;
  opacity: 1;
  visibility: visible;
  margin-top: 12px;
}

/* Show More / Show Less Button */
.story-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--purple-2);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  margin: 12px auto 0;
  padding: 4px 8px;
  transition: opacity 0.2s ease;
}

.story-toggle-btn:hover {
  opacity: 0.8;
}

/* Arrow rotation animation */
.toggle-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stories-card.expanded .toggle-arrow {
  transform: rotate(180deg);
}
/*new*/
.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  overflow: hidden;

  gap: 24px; /* Space between the cards so they don't stick together */
}

.stories-card {
  background: var(--bg-2);
  padding: 44px 26px;
  text-align: center;
  position: relative;
  scroll-margin-top: 30px;
  transition:
    background 0.4s var(--ease),
    transform 0.4s var(--ease); /* Removed height transition */

  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stories-card:hover {
  background-color: #7b2ff7;
  background: color-mix(in srgb, var(--bg-2) 80%, var(--purple-1) 12%);
}
/* Responsive for tablets and mobile */
@media (max-width: 1024px) {
  .stories-grid {
    grid-template-columns: 1fr; /* Stacks them nicely on smaller screens */
  }
}
.stories-grid {
  display: flex;
  flex-direction: column;
  gap: 24px; /* Space between each stacked story card */
}
.story-extra-content .video-frame {
  margin: 0 auto 32px auto !important;
}
.stories .stories-card .stat-label {
  /* margin-bottom: 20px; */
  margin-top: 8px;
  margin-bottom: 20px;
}
/* Fix for the stretched Instagram button */
.stories .stories-card .story-insta-btn {
  align-self: center;
}
