/* ==========================================================
   ScaleX — Custom stylesheet (works alongside Tailwind CDN)
   ========================================================== */

:root {
  --ink: #100E0B;
  --bone: #F4EFE6;
  --vermillion: #C43E1F;
}

* { scroll-behavior: smooth; }
html { scroll-padding-top: 90px; }

body {
  cursor: default;
}

::selection {
  background: var(--vermillion);
  color: var(--bone);
}

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}
.cursor-dot { width: 6px; height: 6px; background: var(--vermillion); }
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(196, 62, 31, 0.5);
  transition: width 0.2s ease, height 0.2s ease, border-color .2s ease, transform .1s ease-out;
}
.cursor-ring.grow { width: 56px; height: 56px; border-color: rgba(196,62,31,0.9); }

/* ---------- Nav ---------- */
#site-nav.nav-scrolled {
  background: rgba(244, 239, 230, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(16,14,11,0.08);
}
#site-nav.nav-scrolled .nav-logo,
#site-nav.nav-scrolled .nav-link,
#site-nav.nav-scrolled .nav-cta { color: var(--ink); }

#site-nav:not(.nav-scrolled) .nav-logo,
#site-nav:not(.nav-scrolled) .nav-link { color: var(--bone); }
#site-nav:not(.nav-scrolled) .nav-cta { color: var(--bone); border-color: rgba(244,239,230,0.5); }

.nav-link {
  position: relative;
  color: inherit;
  transition: opacity .3s ease;
  opacity: 0.65;
}
.nav-link:hover { opacity: 1; }
.nav-link.active { opacity: 1; }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--vermillion);
}

.mobile-menu {
  transform: translateY(-100%);
  opacity: 0;
  transition: transform .5s cubic-bezier(.77,0,.18,1), opacity .4s ease;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-link { opacity: 0.85; transition: opacity .2s; }
.mobile-link:hover, .mobile-link.active { opacity: 1; color: var(--vermillion); }

#menu-toggle.open .burger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#menu-toggle.open .burger-line:nth-child(2) { opacity: 0; }
#menu-toggle.open .burger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Reveal animations ---------- */
.reveal, .reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.in-view, .reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-up:nth-child(1) { transition-delay: 0s; }
.reveal-up:nth-child(2) { transition-delay: .08s; }
.reveal-up:nth-child(3) { transition-delay: .16s; }
.reveal-up:nth-child(4) { transition-delay: .24s; }
.reveal-up:nth-child(5) { transition-delay: .32s; }

/* ---------- Image placeholders ---------- */
.img-placeholder {
  background:
    repeating-linear-gradient(135deg, rgba(244,239,230,0.05) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #1c1712 0%, #100E0B 60%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 1px dashed rgba(244,239,230,0.25);
  padding: 22px 30px;
  border-radius: 4px;
}
.placeholder-label {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.55);
}
.placeholder-path {
  font-family: monospace;
  font-size: 11px;
  color: rgba(244,239,230,0.3);
}
.img-placeholder.light {
  background:
    repeating-linear-gradient(135deg, rgba(16,14,11,0.04) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #EDE7D9 0%, #E4DCC9 100%);
}
.img-placeholder.light .placeholder-inner { border-color: rgba(16,14,11,0.2); }
.img-placeholder.light .placeholder-label { color: rgba(16,14,11,0.5); }
.img-placeholder.light .placeholder-path { color: rgba(16,14,11,0.3); }

/* ---------- Float labels (hero) ---------- */
.float-label { animation: floaty 6s ease-in-out infinite; }
.float-label[data-float="2"] { animation-delay: .8s; }
.float-label[data-float="3"] { animation-delay: 1.6s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.scroll-line { animation: scrollpulse 2.2s ease-in-out infinite; }
@keyframes scrollpulse {
  0%, 100% { opacity: .3; transform: scaleY(1); }
  50% { opacity: .9; transform: scaleY(1.15); }
}

/* ---------- Service cards ---------- */
.service-row {
  border-bottom: 1px solid rgba(16,14,11,0.15);
  overflow: hidden;
}
.service-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 4px;
  cursor: pointer;
}
.service-num {
  font-family: 'Fraunces', serif;
  font-size: 13px;
  color: var(--vermillion);
  letter-spacing: .08em;
  min-width: 70px;
}
.service-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 500;
  transition: transform .35s ease, color .35s ease;
}
.service-row:hover .service-title { transform: translateX(10px); color: var(--vermillion); }
.service-arrow {
  font-size: 22px;
  transition: transform .4s ease;
  flex-shrink: 0;
}
.service-row.open .service-arrow { transform: rotate(135deg); }
.service-body {
  max-height: 0;
  transition: max-height .5s cubic-bezier(.2,.7,.2,1), padding .4s ease;
  padding: 0 4px;
}
.service-row.open .service-body {
  max-height: 260px;
  padding: 0 4px 28px;
}
.service-body p { color: rgba(16,14,11,.6); max-width: 560px; line-height: 1.6; }
.service-tags span {
  border: 1px solid rgba(16,14,11,.2);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(16,14,11,.6);
}

/* ---------- Creator cards ---------- */
.creator-card {
  border: 1px solid rgba(244,239,230,0.12);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color .3s ease, transform .4s ease;
}
.creator-card:hover { border-color: rgba(196,62,31,.5); transform: translateY(-4px); }
.creator-media { aspect-ratio: 4/5; position: relative; overflow: hidden; }
.creator-media .img-placeholder { position: absolute; inset: 0; transition: transform .6s ease; }
.creator-card:hover .creator-media .img-placeholder { transform: scale(1.06); }
.creator-meta-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px;
  background: linear-gradient(to top, rgba(16,14,11,0.85), transparent 55%);
  opacity: 0;
  transition: opacity .35s ease;
}
.creator-card:hover .creator-meta-overlay { opacity: 1; }

/* ---------- Filter select ---------- */
.filter-select {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(244,239,230,0.25);
  color: var(--bone);
  padding: 12px 14px;
  font-size: 13px;
  letter-spacing: .02em;
  border-radius: 2px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23F4EFE6' stroke-width='1.4' fill='none' opacity='0.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.filter-select:focus { outline: none; border-color: var(--vermillion); }
.filter-select option { color: #000; }

/* ---------- Objective cards ---------- */
.objective-card {
  border: 1px solid rgba(244,239,230,.15);
  padding: 20px 22px;
  font-family: 'Fraunces', serif;
  font-size: 18px;
  cursor: pointer;
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.objective-card:hover, .objective-card.active {
  background: rgba(196,62,31,.12);
  border-color: var(--vermillion);
  transform: translateX(4px);
}

/* ---------- Timeline (campaign flow) ---------- */
.flow-step {
  min-width: 240px;
  border: 1px solid rgba(244,239,230,.15);
  padding: 26px;
  border-radius: 2px;
  transition: border-color .3s ease, transform .3s ease;
}
.flow-step:hover { border-color: var(--vermillion); transform: translateY(-6px); }
.flow-num { font-family: 'Fraunces', serif; color: var(--vermillion); font-size: 13px; }

/* ---------- Marquee ---------- */
.marquee { width: 100%; overflow: hidden; }
.marquee-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: 'Fraunces', serif;
  font-size: clamp(20px, 3vw, 34px);
  color: rgba(16,14,11,.35);
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Work grid ---------- */
.work-card { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.work-card .img-placeholder { position: absolute; inset: 0; transition: transform .6s ease; }
.work-card:hover .img-placeholder { transform: scale(1.05); }
.work-caption {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: 22px;
  background: linear-gradient(to top, rgba(16,14,11,.85), transparent);
}

/* ---------- Team ---------- */
.team-card .img-placeholder { aspect-ratio: 3/4; }

/* ---------- Form ---------- */
.form-label {
  display: block;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(16,14,11,.5);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(16,14,11,.25);
  padding: 10px 2px;
  font-size: 16px;
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  transition: border-color .3s ease;
}
.form-input:focus { outline: none; border-color: var(--vermillion); }
.form-input::placeholder { color: rgba(16,14,11,.3); }

/* ---------- Utilities ---------- */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

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