@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&family=Instrument+Serif:ital@1&display=swap');

* {
  box-sizing: border-box;
  font-family: 'Almarai', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #000;
  color: #E1E0CC;
}

.font-serif {
  font-family: 'Instrument Serif', serif;
}

/* ============ NOISE TEXTURES ============ */
.noise-overlay {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bg-noise {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cfilter id='n2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n2)'/%3E%3C/svg%3E");
}

/* ============ NAVBAR ============ */
.nav-link {
  color: rgba(225, 224, 204, 0.8);
  font-weight: 400;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #E1E0CC;
}

/* ============ HERO ============ */
.hero-asterisk {
  position: absolute;
  top: 0.65em;
  right: -0.3em;
  font-size: 0.31em;
  font-style: normal;
}

.word-pullup {
  overflow: hidden;
}

.word-pullup > * {
  display: inline-block;
}

.word-pullup, .word-pullup-inline {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.word-pullup.in-view, .word-pullup-inline.in-view {
  opacity: 1;
  transform: translateY(0);
}

.word-pullup-inline {
  display: inline-block;
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============ CTA BUTTON ============ */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #DEDBC8;
  color: #000;
  border-radius: 9999px;
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  transition: gap 0.3s ease;
}

.cta-btn:hover {
  gap: 1rem;
}

.cta-circle {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.cta-btn:hover .cta-circle {
  transform: scale(1.1);
}

/* ============ ABOUT / CHAR REVEAL ============ */
.char-reveal span {
  opacity: 0.2;
}

/* ============ FEATURE CARDS ============ */
.feature-card {
  background: #212121;
  padding: 2rem;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-card.in-view {
  opacity: 1;
  transform: scale(1);
}

.feature-num {
  color: rgba(225, 224, 204, 0.35);
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 1.5rem;
}

/* ============ WORK CARDS ============ */
.work-card {
  flex: 0 0 auto;
  width: min(420px, 85vw);
  background: #212121;
}

.work-art {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
}

.work-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.art-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E1E0CC;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(225, 224, 204, 0.2);
  transition: background 0.2s ease;
}

.art-nav:hover {
  background: rgba(0, 0, 0, 0.6);
}

.art-prev {
  left: 0.75rem;
}

.art-next {
  right: 0.75rem;
}

.art-counter {
  position: absolute;
  bottom: 0.75rem;
  right: 0.9rem;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: #E1E0CC;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

.work-meta {
  display: grid;
  gap: 0.5rem;
  border-top: 1px solid rgba(225, 224, 204, 0.1);
  padding-top: 1rem;
}

.work-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
}

.work-meta dt {
  color: rgba(225, 224, 204, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

.work-meta dd {
  color: rgba(225, 224, 204, 0.8);
  text-align: right;
}

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

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.nav-arrow-btn {
  background: #212121;
  color: #E1E0CC;
}

.nav-arrow-btn:hover {
  background: #2c2c2c;
}

/* ============ FILM CARDS ============ */
.film-card {
  background: #212121;
}

.film-art {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
}

.film-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.film-card:hover .film-art img {
  transform: scale(1.05);
}

.film-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.film-play-icon .icon-play {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(225, 224, 204, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.film-play-icon .icon-play::after {
  content: '';
  width: 0;
  height: 0;
  margin-left: 4px;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #E1E0CC;
}

/* ============ CLIENTS ============ */
.client-name {
  color: rgba(225, 224, 204, 0.45);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.client-name:hover {
  color: #E1E0CC;
}

/* ============ SKILL PILLS ============ */
.skill-pill {
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.8rem;
  color: #E1E0CC;
  background: #212121;
  border: 1px solid rgba(225, 224, 204, 0.08);
}

/* ============ CONTACT INFO CARDS ============ */
.info-card {
  background: #212121;
}

/* ============ ICONS (inline SVG via mask) ============ */
.icon-arrow-left, .icon-arrow-right, .icon-mail, .icon-phone,
.icon-map-pin, .icon-external-link {
  display: inline-block;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.icon-arrow-left {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 19-7-7 7-7'/%3E%3Cpath d='M19 12H5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 19-7-7 7-7'/%3E%3Cpath d='M19 12H5'/%3E%3C/svg%3E");
}

.icon-arrow-right {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
}

.icon-mail {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
}

.icon-phone {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 16.5 15H19a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v2.5a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 16.5 15H19a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v2.5a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384'/%3E%3C/svg%3E");
}

.icon-map-pin {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.icon-external-link {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E");
}

