/* ==========================================================================
   Studio site — one stylesheet, no dependencies
   Palette: ink / bone / signal orange
   ========================================================================== */

:root {
  --ink: #0A0A0B;
  --ink-2: #101012;
  --bone: #EFEAE1;
  --muted: #8B857B;
  --accent: #FF5A2A;
  --line: rgba(239, 234, 225, .14);
  --line-soft: rgba(239, 234, 225, .07);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: "IBM Plex Sans Arabic", "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[dir="ltr"] body {
  font-family: "Space Grotesk", "IBM Plex Sans Arabic", system-ui, sans-serif;
  line-height: 1.65;
}

::selection { background: var(--accent); color: #0A0A0B; }

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ---------- scroll progress ---------- */
.progress {
  position: fixed; inset-block-start: 0; inset-inline-start: 0;
  height: 2px; width: 0; background: var(--accent); z-index: 80;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 70;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 28px;
  background: rgba(10, 10, 11, .72);
  backdrop-filter: blur(14px);
  border-block-end: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-mark { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.brand-latin {
  font-family: "Space Grotesk", sans-serif; font-size: 11px; letter-spacing: .34em;
  color: var(--muted); text-transform: uppercase;
}
.nav-links { display: flex; gap: 26px; font-size: 14.5px; color: var(--muted); }
.nav-links a { transition: color .25s var(--ease); }
.nav-links a:hover { color: var(--bone); }
.lang {
  font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
  color: var(--bone); transition: border-color .25s, color .25s;
}
.lang:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 0 90px; overflow: hidden;
}
.hero-ring {
  position: absolute; inset-block-start: 50%; inset-inline-end: -14vw;
  width: min(62vw, 720px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--line); pointer-events: none;
  transform: translateY(-50%);
  will-change: transform;
}
.hero-ring::after {
  content: ""; position: absolute; inset: 16%; border-radius: 50%;
  border: 1px solid var(--line-soft);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: .04em; color: var(--muted); margin-bottom: 28px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--accent);
}
.hero-title {
  font-size: clamp(42px, 8.4vw, 118px);
  font-weight: 700; line-height: 1.16; letter-spacing: -.02em;
  max-width: 15ch;
}
html[dir="ltr"] .hero-title { line-height: 1.02; max-width: 13ch; letter-spacing: -.035em; }
.hero-title .line { display: block; }
.hero-title .w {
  display: inline-block; opacity: 0; transform: translateY(.5em) rotate(2deg);
  animation: word-up 1s var(--ease) forwards;
  animation-delay: calc(var(--i) * 90ms + 120ms);
}
.hero-title .accent { color: var(--accent); }
@keyframes word-up { to { opacity: 1; transform: none; } }

.hero-sub {
  margin-top: 30px; max-width: 46ch; color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px); line-height: 1.85;
}
.hero-cta { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-offer {
  margin-top: 22px; font-size: 14.5px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
}
.hero-offer::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero-offer span { color: var(--bone); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  font-size: 15.5px; font-weight: 600;
  background: var(--accent); color: #14060A;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(255, 90, 42, .25); }
.btn.ghost { background: transparent; color: var(--bone); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--bone); box-shadow: none; }

.hero-scroll {
  position: absolute; inset-block-end: 28px; inset-inline-start: 28px;
  font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.hero-scroll::after {
  content: ""; display: block; width: 1px; height: 34px; margin-top: 10px;
  background: linear-gradient(var(--muted), transparent);
  animation: drop 2.4s var(--ease) infinite;
}
@keyframes drop { 0% { transform: scaleY(.2); transform-origin: top; } 60%, 100% { transform: scaleY(1); } }

/* ---------- marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  padding: 15px 0; overflow: hidden; background: var(--ink-2);
}
.marquee-track {
  display: flex; width: max-content;
  animation: slide 44s linear infinite;
}
.mq-group {
  display: flex; align-items: center; gap: 42px;
  padding-inline-end: 42px;
  font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}
.mq-group span { display: inline-flex; align-items: center; gap: 42px; }
.mq-group span::after { content: "\25C6"; color: var(--accent); font-size: 8px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- manifesto ---------- */
.manifesto { padding: 150px 0 120px; }
.manifesto-text {
  font-size: clamp(25px, 3.6vw, 48px);
  font-weight: 600; line-height: 1.5; letter-spacing: -.01em;
  max-width: 22ch;
}
html[dir="ltr"] .manifesto-text { line-height: 1.25; max-width: 20ch; }
.manifesto-text .wd { color: rgba(239, 234, 225, .2); transition: color .5s var(--ease); }
.manifesto-text .wd.lit { color: var(--bone); }
.manifesto-text .wd.hot.lit { color: var(--accent); }
.manifesto-note {
  margin-top: 46px; padding-inline-start: 20px; border-inline-start: 1px solid var(--accent);
  color: var(--muted); font-size: 15px; max-width: 42ch;
}

/* ---------- about ---------- */
.about { padding: 10px 0 130px; }
.about-inner { display: grid; grid-template-columns: 200px 1fr; gap: 44px; align-items: start; }
.about-label {
  font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  padding-block-start: 12px;
}
.about-label::before { content: ""; display: block; width: 26px; height: 1px; background: var(--accent); margin-block-end: 14px; }
.about-lead {
  font-size: clamp(23px, 3vw, 40px); font-weight: 600; line-height: 1.5; letter-spacing: -.01em; max-width: 26ch;
}
html[dir="ltr"] .about-lead { line-height: 1.3; max-width: 24ch; }
.about-points { margin-top: 36px; display: grid; gap: 14px; list-style: none; max-width: 62ch; }
.about-points li { position: relative; padding-inline-start: 26px; color: var(--muted); font-size: 15.5px; }
.about-points li::before {
  content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .85em;
  width: 12px; height: 1px; background: var(--accent);
}

/* ---------- section head ---------- */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 30px;
  padding-block-end: 26px; border-block-end: 1px solid var(--line); margin-block-end: 46px;
}
.section-head h2 {
  font-size: clamp(30px, 4.4vw, 62px); font-weight: 700; line-height: 1.15; letter-spacing: -.02em;
}
.section-head p { color: var(--muted); font-size: 15px; max-width: 40ch; }

/* ---------- work ---------- */
.work { padding: 40px 0 130px; }
.reels {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.reel {
  position: relative; border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; background: var(--ink-2);
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.reel:hover { border-color: rgba(239, 234, 225, .32); transform: translateY(-4px); }
.reel-frame { position: relative; }
.reel video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #050505; }
.badge {
  position: absolute; top: 12px; left: 12px;   /* the reel's own badge is baked in at top-right */
  font-size: 11px; letter-spacing: .16em; padding: 5px 12px; border-radius: 999px;
  color: var(--accent); background: rgba(10, 10, 11, .7);
  border: 1px solid rgba(255, 90, 42, .45);
  backdrop-filter: blur(6px);
}
.reel-meta {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-block-start: 1px solid var(--line-soft);
}
.reel-meta b { font-size: 15px; font-weight: 600; }
.reel-meta span { font-size: 11.5px; letter-spacing: .06em; color: var(--muted); }
.work-note { margin-top: 26px; color: var(--muted); font-size: 13.5px; }

/* ---------- how ---------- */
.how { padding: 20px 0 130px; }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; }
.steps::before {
  content: ""; position: absolute; inset-block-start: 34px; inset-inline: 0; height: 1px;
  background: var(--line); transform: scaleX(0); transform-origin: inline-start;
  transition: transform 1.4s var(--ease);
}
.steps.in::before { transform: scaleX(1); }
.step { position: relative; padding-block-start: 78px; }
.step-num {
  position: absolute; inset-block-start: 0; inset-inline-start: 0;
  width: 68px; height: 68px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--ink);
  font-family: "Space Grotesk", sans-serif; font-size: 15px; color: var(--accent);
}
.step h3 { font-size: clamp(20px, 2vw, 27px); font-weight: 600; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15.5px; max-width: 34ch; }

/* ---------- duration ---------- */
.duration { padding: 20px 0 140px; }
.duration-inner {
  border: 1px solid var(--line); border-radius: 24px; padding: clamp(30px, 5vw, 62px);
  background: linear-gradient(160deg, var(--ink-2), var(--ink));
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center;
}
.duration h2 { font-size: clamp(27px, 3.4vw, 46px); font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }
.duration p { color: var(--muted); margin-top: 20px; font-size: 15.5px; max-width: 44ch; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.chip {
  border: 1px solid var(--line); border-radius: 999px; padding: 14px 26px;
  font-size: 16px; font-weight: 600; color: var(--muted);
  transition: color .3s, border-color .3s, transform .3s var(--ease);
}
.chip:hover { color: var(--bone); border-color: rgba(239, 234, 225, .35); transform: translateY(-3px); }
.chip.same { color: var(--accent); border-color: rgba(255, 90, 42, .45); }
.chip-note { flex-basis: 100%; text-align: end; font-size: 12.5px; letter-spacing: .06em; color: var(--muted); }

/* ---------- contact ---------- */
.contact { padding: 40px 0 120px; border-block-start: 1px solid var(--line); }
.contact h2 {
  font-size: clamp(34px, 6.4vw, 92px); font-weight: 700; line-height: 1.1; letter-spacing: -.025em;
  max-width: 18ch;
}
html[dir="ltr"] .contact h2 { line-height: 1; max-width: 15ch; }
.contact-sub { color: var(--muted); margin-top: 22px; max-width: 44ch; font-size: 16px; }
.contact-links { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }
.contact-links .btn.ghost { font-family: "Space Grotesk", sans-serif; }

/* ---------- footer ---------- */
.footer {
  border-block-start: 1px solid var(--line);
  padding: 34px 0; display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 13px;
}
.footer .brand-mark { font-size: 16px; color: var(--bone); }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--bone); }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv[data-d="1"] { transition-delay: .1s; }
.rv[data-d="2"] { transition-delay: .2s; }
.rv[data-d="3"] { transition-delay: .3s; }

/* ---------- responsive ---------- */
/* 7 samples. Narrow: 3 + 3 with the last card centred. Wide: 4 + 3, both rows full width. */
@media (min-width: 901px) and (max-width: 1100px) {
  .reels > .reel:last-child:nth-child(3n+1) { grid-column: 2 / 3; }
}
@media (min-width: 1101px) {
  .reels { display: flex; flex-wrap: wrap; gap: 20px; }
  .reels > .reel { flex: 0 0 calc((100% - 60px) / 4); }
  .reels > .reel:nth-child(n+5) { flex: 0 0 calc((100% - 40px) / 3); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { padding: 120px 0 80px; min-height: auto; }
  .hero-ring { inset-inline-end: -30vw; width: 90vw; opacity: .6; }
  .hero-scroll { display: none; }
  .manifesto { padding: 100px 0 80px; }
  .about { padding: 0 0 90px; }
  .about-inner { grid-template-columns: 1fr; gap: 18px; }
  .manifesto-text { max-width: 100%; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .reels { grid-template-columns: 1fr 1fr; gap: 12px; }
  .reel-meta { flex-direction: column; gap: 2px; padding: 12px; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .steps::before { display: none; }
  .step { padding-block-start: 0; padding-inline-start: 82px; }
  .duration-inner { grid-template-columns: 1fr; gap: 30px; }
  .chips { justify-content: flex-start; }
  .chip-note { text-align: start; }
  .footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-title .w { animation: none; opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .rv { opacity: 1; transform: none; transition: none; }
  .steps::before { transform: scaleX(1); transition: none; }
  .hero-scroll::after { animation: none; }
  .manifesto-text .wd { color: var(--bone); }
}
