@import url("assets/fonts/alexandria.css");
@import url("assets/fonts/noto-kufi.css");

:root {
  --bg: #050505;
  --bg-soft: #0d0d0c;
  --gold: #ffcc08;
  --gold-soft: rgba(255, 204, 8, 0.16);
  --text: #f7f1e5;
  --muted: #bcb3a5;
  --dim: #7e766b;
  --line: rgba(255, 255, 255, 0.1);
  --panel: rgba(255, 255, 255, 0.045);
  --max: 1180px;
  --radius: 8px;
  --intro-progress: 0;
  --intro-ease: 0;
  --logo-scale: 1.08;
  --logo-y: 22px;
  --logo-rotate: 0deg;
  --piece-shell-x: 0px;
  --piece-shell-y: 0px;
  --piece-shell-rot: 0deg;
  --piece-core-y: 0px;
  --piece-core-scale: 1;
  --piece-dot-upper-y: 0px;
  --piece-dot-lower-y: 0px;
  --piece-dot-upper-x: 0px;
  --piece-dot-lower-x: 0px;
  --piece-dot-scale: 1;
  --beam-opacity: 0.25;
  --beam-rotate: -11deg;
  --beam-rotate-reverse: 11deg;
  --copy-opacity: 0.76;
  --copy-y: 22px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 74% 16%, rgba(255, 204, 8, 0.16), transparent 30rem),
    radial-gradient(circle at 12% 82%, rgba(255, 204, 8, 0.08), transparent 32rem),
    linear-gradient(180deg, #050505 0%, #0c0c0b 48%, #050505 100%);
  color: var(--text);
  font-family: "Alexandria", "Segoe UI", Tahoma, Arial, sans-serif;
}

body::before {
  pointer-events: none;
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.055;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

button {
  border: 0;
  color: inherit;
  font: inherit;
}

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

.progress {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: right;
  background: linear-gradient(90deg, transparent, var(--gold), #fff3aa);
}

.cursor-light {
  pointer-events: none;
  position: fixed;
  top: 0;
  right: var(--cursor-x, 50%);
  z-index: 1;
  width: 260px;
  height: 100vh;
  opacity: 0.14;
  background: linear-gradient(90deg, transparent, rgba(255, 204, 8, 0.7), transparent);
  filter: blur(34px);
  transform: translateX(50%) skewX(-12deg);
}

.ambient {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.ambient span {
  position: absolute;
  width: 90vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 204, 8, 0.34), transparent);
  opacity: 0.08;
  animation: drift 12s ease-in-out infinite;
}

.ambient span:nth-child(1) {
  top: 18%;
  right: -18%;
  rotate: -17deg;
}

.ambient span:nth-child(2) {
  top: 48%;
  left: -20%;
  rotate: 14deg;
  animation-delay: -4s;
}

.ambient span:nth-child(3) {
  bottom: 16%;
  right: -12%;
  rotate: -9deg;
  animation-delay: -7s;
}

.site-header {
  position: fixed;
  top: 18px;
  right: 50%;
  z-index: 90;
  display: flex;
  width: min(calc(100% - 32px), var(--max));
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(5, 5, 5, 0.74);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(20px);
  transform: translateX(50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 8px;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(255, 204, 8, 0.36));
}

.brand span {
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 900;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav button,
.hero-actions button {
  min-height: 42px;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.nav button {
  padding: 0 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.nav button:hover {
  border-color: rgba(255, 204, 8, 0.28);
  background: rgba(255, 204, 8, 0.08);
  color: var(--text);
}

.intro-scroll {
  position: relative;
  z-index: 2;
  height: 205svh;
}

.intro-sticky {
  position: sticky;
  top: 0;
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: clamp(44px, 8vw, 120px);
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 112px 0 58px;
}

.intro-visual {
  position: relative;
  display: grid;
  min-height: min(820px, calc(100svh - 92px));
  place-items: center;
  isolation: isolate;
}

.intro-visual::before {
  content: "";
  position: absolute;
  width: min(520px, 80vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 204, 8, 0.28), rgba(255, 204, 8, 0.06) 42%, transparent 70%);
  filter: blur(22px);
  opacity: calc(0.58 + var(--intro-ease) * 0.28);
}

.focus-frame {
  position: absolute;
  width: min(520px, 80vw);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 204, 8, 0.2);
  border-radius: 50%;
  opacity: calc(0.38 + var(--intro-ease) * 0.26);
  transform: rotate(var(--beam-rotate)) scale(calc(0.92 + var(--intro-ease) * 0.08));
}

.focus-frame::before,
.focus-frame::after {
  content: "";
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.focus-frame::after {
  inset: 34%;
  border-color: rgba(255, 204, 8, 0.14);
}

.light-beam {
  position: absolute;
  z-index: 1;
  width: min(430px, 70vw);
  height: 150px;
  background: linear-gradient(90deg, transparent, rgba(255, 204, 8, 0.22), transparent);
  filter: blur(18px);
  opacity: var(--beam-opacity);
  mix-blend-mode: screen;
}

.beam-one {
  transform: translate(18%, -68%) rotate(var(--beam-rotate));
}

.beam-two {
  transform: translate(-16%, 74%) rotate(var(--beam-rotate-reverse));
}

.logo-system {
  position: relative;
  z-index: 4;
  width: min(460px, 72vw);
  aspect-ratio: 1.066;
  transform:
    translateY(var(--logo-y))
    rotate(var(--logo-rotate))
    scale(var(--logo-scale));
  transition: transform 80ms linear;
}

.logo-system::before {
  content: "";
  position: absolute;
  top: -46%;
  right: 50%;
  z-index: 2;
  width: 1px;
  height: 198%;
  background: linear-gradient(180deg, transparent, rgba(255, 204, 8, 0.36), transparent);
  opacity: calc(var(--intro-ease) * 0.55);
  transform: translateX(50%);
}

.logo-piece,
.logo-aura {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.logo-piece {
  z-index: 5;
  object-fit: contain;
  filter:
    drop-shadow(0 32px 78px rgba(0, 0, 0, 0.72))
    drop-shadow(0 0 18px rgba(255, 204, 8, 0.22));
  transition: transform 80ms linear;
  will-change: transform;
}

.piece-shell {
  z-index: 4;
  transform: translate(var(--piece-shell-x), var(--piece-shell-y)) rotate(var(--piece-shell-rot));
}

.piece-core {
  z-index: 6;
  transform: translateY(var(--piece-core-y)) scale(var(--piece-core-scale));
}

.piece-dot-upper,
.piece-dot-lower {
  z-index: 7;
  filter:
    drop-shadow(0 22px 48px rgba(0, 0, 0, 0.58))
    drop-shadow(0 0 18px rgba(255, 204, 8, 0.34));
}

.piece-dot-upper {
  transform: translate(var(--piece-dot-upper-x), var(--piece-dot-upper-y)) scale(var(--piece-dot-scale));
}

.piece-dot-lower {
  transform: translate(var(--piece-dot-lower-x), var(--piece-dot-lower-y)) scale(var(--piece-dot-scale));
}

.logo-aura {
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 204, 8, 0.24), transparent 60%);
  filter: blur(24px);
  opacity: 0.72;
}

.studio-scan {
  position: absolute;
  z-index: 6;
  width: min(520px, 82vw);
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff1a9, var(--gold), transparent);
  box-shadow: 0 0 26px rgba(255, 204, 8, 0.36);
  opacity: calc(0.15 + var(--intro-ease) * 0.52);
  transform: translateY(calc((0.5 - var(--intro-ease)) * 260px));
}

.intro-copy {
  position: relative;
  z-index: 8;
  max-width: 640px;
  opacity: var(--copy-opacity);
  transform: translateY(var(--copy-y));
  transition:
    opacity 80ms linear,
    transform 80ms linear;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
}

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

h1,
h2,
h3 {
  font-family: "Noto Kufi Arabic", "Alexandria", sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 20px;
  font-size: clamp(2.3rem, 4.45vw, 4.2rem);
  font-weight: 800;
  line-height: 1.2;
}

h2 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.25;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.45;
}

p {
  color: var(--muted);
  font-size: clamp(1rem, 1.42vw, 1.16rem);
  font-weight: 500;
  line-height: 2;
}

.intro-copy p:not(.eyebrow) {
  max-width: 580px;
  font-size: clamp(0.98rem, 1.18vw, 1.08rem);
  line-height: 2.05;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-actions button {
  padding: 0 20px;
  font-weight: 900;
}

.primary {
  background: linear-gradient(135deg, #ffe27a, var(--gold) 52%, #d5a30d);
  color: #141006;
  box-shadow:
    0 18px 54px rgba(255, 204, 8, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.ghost {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.primary:hover,
.ghost:hover {
  transform: translateY(-3px);
}

.section {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 118px 0;
  scroll-margin-top: 112px;
}

.section-head {
  margin-bottom: 38px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-card,
.production-board,
.process-item,
.contact-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 204, 8, 0.07), rgba(255, 255, 255, 0.022)),
    var(--panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 26px 88px rgba(0, 0, 0, 0.22);
}

.service-card {
  min-height: 300px;
  padding: 24px;
  transition:
    transform 240ms ease,
    border-color 240ms ease,
    background 240ms ease;
}

.service-card:hover {
  border-color: rgba(255, 204, 8, 0.32);
  transform: translateY(-6px);
}

.service-card span {
  display: inline-flex;
  margin-bottom: 48px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
}

.service-card p,
.production-copy p,
.process-item p,
.contact-copy p {
  margin-bottom: 0;
  font-size: 0.96rem;
  line-height: 1.9;
}

.production {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}

.production-copy p {
  max-width: 640px;
}

.production-board {
  display: grid;
  min-height: 460px;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  padding: 1px;
  background:
    linear-gradient(135deg, rgba(255, 204, 8, 0.24), rgba(255, 255, 255, 0.08), rgba(255, 204, 8, 0.12));
}

.production-board div {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 204, 8, 0.12), transparent 42%),
    rgba(5, 5, 5, 0.86);
}

.production-board span,
.process-item span {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
}

.production-board strong {
  max-width: 230px;
  font-family: "Noto Kufi Arabic", "Alexandria", sans-serif;
  font-size: clamp(1.16rem, 2.1vw, 1.7rem);
  font-weight: 800;
  line-height: 1.45;
}

.process-list {
  display: grid;
  gap: 12px;
}

.process-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  min-height: 112px;
  padding: 22px;
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: clamp(26px, 5vw, 54px);
}

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

.contact-panel {
  display: grid;
  gap: 18px;
}

.contact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-tags span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.contact-link {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffe27a, var(--gold) 50%, #d6a20c);
  color: #141006;
  font-weight: 900;
  text-decoration: none;
  box-shadow:
    0 18px 54px rgba(255, 204, 8, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 760ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

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

  50% {
    translate: 8vw 4vh;
  }
}

@media (max-width: 980px) {
  .intro-sticky,
  .production,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .intro-sticky {
    gap: 18px;
    padding-top: 110px;
  }

  .intro-visual {
    min-height: 520px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    padding: 8px;
  }

  .brand {
    min-height: 38px;
    padding: 0 2px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .brand span {
    display: none;
  }

  .nav {
    flex: 1;
    justify-content: flex-start;
    gap: 3px;
    overflow-x: auto;
  }

  .nav button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 8px;
    font-size: 0.72rem;
  }

  .intro-scroll {
    height: 215svh;
  }

  .intro-sticky {
    width: min(calc(100% - 24px), var(--max));
    min-height: 100svh;
    padding-top: 84px;
    padding-bottom: 28px;
  }

  .intro-visual {
    min-height: 390px;
  }

  .logo-system {
    width: min(250px, 64vw);
  }

  .focus-frame,
  .intro-visual::before,
  .studio-scan {
    width: min(360px, 88vw);
  }

  h1 {
    margin-bottom: 16px;
    font-size: clamp(1.78rem, 8vw, 2.85rem);
    line-height: 1.3;
  }

  .intro-copy {
    max-width: 100%;
  }

  .intro-copy p:not(.eyebrow) {
    font-size: 0.9rem;
    line-height: 1.9;
  }

  h2 {
    font-size: clamp(1.72rem, 8vw, 2.75rem);
  }

  p {
    font-size: 0.94rem;
    line-height: 1.85;
  }

  .hero-actions {
    gap: 8px;
    margin-top: 18px;
  }

  .hero-actions button {
    flex: 1 1 150px;
    min-height: 44px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

  .section {
    width: min(calc(100% - 24px), var(--max));
    padding: 84px 0;
  }

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

  .service-card {
    min-height: 218px;
    padding: 22px;
  }

  .service-card span {
    margin-bottom: 28px;
  }

  .production-board {
    min-height: auto;
  }

  .production-board div {
    min-height: 154px;
  }

  .process-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-shell {
    padding: 24px;
  }
}

@media (max-width: 680px) and (max-height: 700px) {
  .intro-sticky {
    padding-top: 74px;
    padding-bottom: 18px;
  }

  .intro-visual {
    min-height: 300px;
  }

  .logo-system {
    width: min(205px, 52vw);
  }

  h1 {
    font-size: clamp(1.42rem, 6.7vw, 2.05rem);
  }

  .intro-copy p:not(.eyebrow) {
    display: none;
  }

  .hero-actions {
    margin-top: 14px;
  }
}

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

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