/* ============================================================
   ALPINE STUDIO — luxury.css
   Premium layer: typography upgrades, grain, animations,
   hover glows, text reveals, parallax prep, countup, shimmer.

   This file loads after main.css and overrides/extends it.
   All visual "premium" upgrades live here.
============================================================ */

/* ============================================================
   1. TYPOGRAPHY — BOLDER
============================================================ */

/* Display headings — Playfair Display at heavy weights */
h1, h2 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

h3 {
  font-weight: 700;
}

/* Body text — solid weight */
p {
  font-weight: 400;
}

/* Hero headline — maximum impact */
.hero__headline {
  font-weight: 800;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  letter-spacing: 0.05em;
  line-height: 1.0;
  text-transform: uppercase;
}

.hero__headline em {
  font-weight: 900;
  font-style: italic;
  color: var(--c-accent);
}

/* Hero subhead — more confident */
.hero__subhead {
  font-weight: 400;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: rgba(255, 255, 255, 0.55);
  max-width: 480px;
}

/* Section titles — Playfair bold */
.section-head__title {
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 5rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-transform: uppercase;
}

/* Section desc — more visible */
.section-head__desc {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
}

/* Service card titles */
.svc-card__title {
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Service card desc */
.svc-card__desc {
  font-weight: 400;
}

/* Process step titles */
.process-step__title {
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* Testimonial quote — more editorial weight */
.testi-card__quote {
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Metric values — tabular, bolder */
.hero__metric-val {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

/* CTA title — maximum presence */
.cta-title {
  font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  letter-spacing: 0.05em;
  line-height: 1.05;
  text-transform: uppercase;
}

/* Project card titles */
.proj-card__title {
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* About stat values */
.about-stat__val {
  font-weight: 500;
}

/* Nav brand text */
.nav__logo-text {
  font-weight: 600;
}

/* Eyebrow tags — sharper */
.eyebrow-tag {
  font-weight: 600;
  letter-spacing: 0.22em;
}

/* ============================================================
   2. FILM GRAIN OVERLAY
   Creates a premium, tactile texture — visible but not loud
============================================================ */

.grain {
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  width: 100%;
  height: 100%;
  opacity: 0.038;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ============================================================
   3. TEXT REVEAL ANIMATION (luxury word-split)
   JS splits [data-split] headings into .word-wrap > .word
   CSS handles the reveal via clip overflow + translateY
============================================================ */

.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;   /* prevents descender clip */
  margin-bottom: -0.08em;
}

.word {
  display: inline-block;
  transform: translateY(105%);
  opacity: 0;
  will-change: transform, opacity;
  transition:
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    opacity   0.4s ease;
}

/* Triggered when parent section becomes visible */
.split-revealed .word {
  transform: translateY(0);
  opacity: 1;
}

/* Stagger: first 12 words — JS also sets inline delays */
.word-wrap:nth-child(1)  .word { transition-delay: 0ms;   }
.word-wrap:nth-child(2)  .word { transition-delay: 60ms;  }
.word-wrap:nth-child(3)  .word { transition-delay: 120ms; }
.word-wrap:nth-child(4)  .word { transition-delay: 180ms; }
.word-wrap:nth-child(5)  .word { transition-delay: 240ms; }
.word-wrap:nth-child(6)  .word { transition-delay: 300ms; }

/* ============================================================
   4. BUTTON SHIMMER + MAGNETIC BASE
============================================================ */

.btn--accent {
  overflow: hidden;
  isolation: isolate;
}

.btn--accent::after {
  content: '';
  position: absolute;
  inset: 0;
  left: -120%;
  width: 65%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.btn--accent:hover::after {
  left: 160%;
}

/* Slightly stronger hover lift */
.btn--accent:hover {
  box-shadow:
    0 0 28px rgba(3, 173, 252, 0.35),
    0 4px 16px rgba(3, 173, 252, 0.2);
  transform: translateY(-2px);
}

/* Outline button improvement */
.btn--outline:hover {
  background: rgba(3, 173, 252, 0.04);
}

/* ============================================================
   5. SERVICE CARD — HOVER GLOW & ACCENT LINE
============================================================ */

.svc-card {
  transition:
    background   0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow   0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform    0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.svc-card:hover {
  background: #1c1c1c;
  box-shadow:
    0 0 0 1px rgba(3, 173, 252, 0.15),
    0 0 40px rgba(3, 173, 252, 0.07),
    inset 0 0 30px rgba(3, 173, 252, 0.025);
  transform: translateY(-2px);
}

/* Icon wrap glow on hover */
.svc-card:hover .svc-card__icon-wrap {
  background: rgba(3, 173, 252, 0.18);
  box-shadow: 0 0 16px rgba(3, 173, 252, 0.2);
}

/* Accent card variant */
.svc-card--accent:hover {
  background: #1e1e1e;
}

/* ============================================================
   6. PROJECT CARD — DEEPER HOVER
============================================================ */

.proj-card {
  transition:
    border-color 0.3s ease,
    box-shadow   0.3s ease,
    transform    0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.proj-card:hover {
  border-color: rgba(3, 173, 252, 0.2);
  box-shadow: 0 0 40px rgba(3, 173, 252, 0.06);
  transform: translateY(-3px);
}

/* ============================================================
   7. PROCESS STEP — ACCENT NUMBER & LINE REVEAL
============================================================ */

.process-step__num {
  /* Bigger, more dramatic ghost number */
  font-size: clamp(4.5rem, 7vw, 7rem);
  color: rgba(255, 255, 255, 0.035);
  transition: color 0.4s ease;
}

.process-step:hover .process-step__num {
  color: rgba(3, 173, 252, 0.06);
}

/* Accent line animates in on scroll reveal */
.process-step::before {
  width: 0;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-step.is-visible::before {
  width: 28px;
}

/* Step connector line draw */
.process-step__line {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

.process-step.is-visible .process-step__line {
  transform: scaleX(1);
}

/* ============================================================
   8. TESTIMONIALS — MORE REFINED
============================================================ */

.testi-card {
  transition:
    border-color 0.3s ease,
    box-shadow   0.3s ease,
    transform    0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.testi-card:hover {
  box-shadow: 0 0 30px rgba(3, 173, 252, 0.05);
  transform: translateY(-2px);
}

.testi-card--featured {
  box-shadow: 0 0 0 1px rgba(3, 173, 252, 0.08);
}

/* Stars — larger, accent */
.testi-card__stars {
  font-size: 0.95rem;
  letter-spacing: 3px;
}

/* ============================================================
   9. SECTION HEAD — RULE LINE DRAW ANIMATION
============================================================ */

.section-head__rule {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

[data-animate].is-visible .section-head__rule {
  transform: scaleX(1);
}

/* ============================================================
   10. HERO VISUAL — PARALLAX READY
   JS sets transform via scroll. No CSS needed for the motion,
   but we optimize with will-change.
============================================================ */

.hero__mountain {
  will-change: transform;
  transition: opacity 1.2s ease;
}

/* Stronger vignette for more depth */
.hero__gradient {
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(3, 173, 252, 0.06) 0%, transparent 55%),
    linear-gradient(180deg, var(--c-bg-base) 0%, transparent 20%, transparent 65%, var(--c-bg-base) 100%),
    linear-gradient(90deg, var(--c-bg-base) 0%, transparent 20%, transparent 80%, var(--c-bg-base) 100%);
}

/* ============================================================
   11. CTA SECTION — STRONGER ACCENT GLOW
============================================================ */

.cta-section__glow {
  width: 800px;
  height: 500px;
  background: radial-gradient(
    ellipse at center,
    rgba(3, 173, 252, 0.1) 0%,
    rgba(3, 173, 252, 0.04) 40%,
    transparent 70%
  );
}

/* ============================================================
   12. FOOTER NAV LINKS — HOVER UNDERLINE SLIDE
============================================================ */

.footer-nav__link {
  position: relative;
  display: inline-block;
}

.footer-nav__link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--c-accent);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-nav__link:hover::after {
  width: 100%;
}

/* ============================================================
   13. LOADER — MORE DRAMATIC
============================================================ */

.loader__mark {
  animation: loaderRotate 2s linear infinite;
}

@keyframes loaderRotate {
  0%   { opacity: 0.2; transform: scale(0.85) rotate(0deg);   }
  25%  { opacity: 1;   transform: scale(1.0)  rotate(90deg);  }
  50%  { opacity: 0.3; transform: scale(0.9)  rotate(180deg); }
  75%  { opacity: 1;   transform: scale(1.05) rotate(270deg); }
  100% { opacity: 0.2; transform: scale(0.85) rotate(360deg); }
}

/* ============================================================
   14. MARQUEE — ACCENT DOT COLOR
============================================================ */

.marquee-dot {
  background: var(--c-accent) !important;
  opacity: 0.7;
}

.marquee-inner span {
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.2s ease;
}

/* ============================================================
   15. SCROLLBAR — BRANDED
============================================================ */

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--c-bg-base);
}

::-webkit-scrollbar-thumb {
  background: rgba(3, 173, 252, 0.3);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(3, 173, 252, 0.5);
}

/* ============================================================
   16. ABOUT STAT CARD — MORE REFINED
============================================================ */

.about-stat-card {
  border: 1px solid rgba(3, 173, 252, 0.12);
  background: rgba(6, 6, 6, 0.92);
}

/* ============================================================
   17. SECTION HEADER RULE — LONGER
============================================================ */

.section-head__rule {
  max-width: 48px;
  opacity: 0.7;
}

/* ============================================================
   18. HERO SCROLL INDICATOR — REFINE
============================================================ */

.hero__scroll-label {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
}

/* ============================================================
   REDUCED MOTION — disable luxury extras too
============================================================ */

@media (prefers-reduced-motion: reduce) {
  .word {
    transform: none;
    opacity: 1;
    transition: none;
  }

  .btn--accent::after {
    display: none;
  }

  .hero__mountain {
    will-change: auto;
  }
}

/* ============================================================
   19. SERVICE CARD STAGGER — via CSS custom property
============================================================ */

.svc-card.is-visible {
  transition-delay: var(--stagger-delay, 0ms) !important;
}

/* ============================================================
   20. WHY US / DIFFERENTIATORS SECTION
============================================================ */

.why-us__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.why-us__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-text-primary);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-6);
}

.why-us__title em {
  font-style: italic;
  font-weight: 900;
  color: var(--c-accent);
}

.why-us__intro {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
  max-width: 420px;
}

/* Pillar items */
.why-us__pillars {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.why-pillar {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--sp-5);
  padding: var(--sp-7) 0;
  border-bottom: 1px solid var(--c-border-subtle);
  transition: border-color var(--t-base) ease;
}

.why-pillar:first-child {
  border-top: 1px solid var(--c-border-subtle);
}

.why-pillar:hover {
  border-bottom-color: var(--c-border);
}

.why-pillar__num {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--c-accent);
  padding-top: 4px;
}

.why-pillar__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--c-text-primary);
  margin-bottom: var(--sp-2);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.why-pillar__desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.4);
  line-height: 1.75;
  font-weight: 400;
}

/* Responsive */
@media (max-width: 1024px) {
  .why-us__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-12);
  }

  .why-us__intro {
    max-width: 100%;
  }
}

/* ============================================================
   21. PRIVATE WORK SECTION
============================================================ */

.private-work__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.private-work__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-text-primary);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-6);
}

.private-work__title em {
  font-style: italic;
  font-weight: 900;
  color: var(--c-accent);
}

.private-work__desc {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
  margin-bottom: var(--sp-4);
}

.private-work__btn {
  margin-top: var(--sp-6);
}

/* Right-side placeholder cards */
.private-work__cards {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.pw-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: var(--sp-6) var(--sp-7);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  transition:
    border-color 0.3s ease,
    background   0.3s ease;
}

.pw-card:hover {
  border-color: var(--c-border-med);
  background: var(--c-bg-card-hover);
}

.pw-card__label {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--c-text-primary);
  flex: 1;
}

.pw-card__rule {
  flex: 1;
  height: 1px;
  background: var(--c-border);
}

.pw-card__status {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  background: var(--c-bg-surface);
  border: 1px solid var(--c-border);
  padding: 0.3em 0.8em;
  border-radius: var(--radius-full);
}

/* Hero metric text variant — no countup */
.hero__metric-val--text {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: -0.01em;
}

/* CTA actions — two buttons side by side */
.cta-actions {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .private-work__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-10);
  }
}

@media (max-width: 768px) {
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-actions .btn {
    justify-content: center;
  }
}

/* ============================================================
   22. SCROLL PROGRESS BAR
============================================================ */

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #03adfc 0%, rgba(3, 173, 252, 0.55) 100%);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 10000;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(3, 173, 252, 0.55), 0 0 3px rgba(3, 173, 252, 0.3);
}

/* ============================================================
   23. 3D CARD TILT
============================================================ */

.svc-card {
  transform-style: preserve-3d;
}

/* ============================================================
   24. AMBIENT CURSOR HALO
============================================================ */

.cursor-halo {
  position: fixed;
  pointer-events: none;
  z-index: 9993;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(3, 173, 252, 0.045) 0%,
    rgba(3, 173, 252, 0.012) 40%,
    transparent 70%
  );
  opacity: 0;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.5s ease, width 0.5s ease, height 0.5s ease;
  mix-blend-mode: screen;
  will-change: left, top;
}

.cursor-halo--active {
  width: 520px;
  height: 520px;
  background: radial-gradient(
    circle,
    rgba(3, 173, 252, 0.065) 0%,
    rgba(3, 173, 252, 0.02) 40%,
    transparent 70%
  );
}

/* ============================================================
   25. CTA GLOW PULSE — ambient atmosphere
============================================================ */

@keyframes ctaGlowPulse {
  0%, 100% { opacity: 1;    transform: scale(1);    }
  50%       { opacity: 0.7; transform: scale(1.06); }
}

.cta-section__glow {
  animation: ctaGlowPulse 7s ease-in-out infinite;
}

/* ============================================================
   26. HERO PATTERN — subtle drift
============================================================ */

@keyframes patternDrift {
  0%   { background-position: 0 0;      }
  100% { background-position: 60px 60px; }
}

.hero__pattern {
  animation: patternDrift 20s linear infinite;
  opacity: 0.35;
}

/* ============================================================
   REDUCED MOTION — disable new effects
============================================================ */

@media (prefers-reduced-motion: reduce) {
  .scroll-progress     { display: none; }
  .cursor-halo         { display: none; }
  .cta-section__glow   { animation: none; }
  .hero__pattern       { animation: none; }
}

/* ============================================================
   RESPONSIVE OVERRIDES — luxury layer
   luxury.css loads after main.css so these must explicitly
   override font sizes at each breakpoint.
============================================================ */

@media (max-width: 1024px) {
  .hero__headline {
    font-size: clamp(2.8rem, 6vw, 5rem);
  }
  .section-head__title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    letter-spacing: 0.03em;
  }
  .why-us__title,
  .private-work__title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    letter-spacing: 0.03em;
  }
  .cta-title {
    font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  }
  /* Ensure stacked grids fill full width */
  .why-us__grid,
  .private-work__inner {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero__headline {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
    letter-spacing: 0.02em;
  }
  .section-head__title {
    font-size: clamp(1.8rem, 7.5vw, 2.6rem);
    letter-spacing: 0.02em;
  }
  .why-us__title,
  .private-work__title {
    font-size: clamp(1.8rem, 7.5vw, 2.6rem);
    letter-spacing: 0.02em;
  }
  .cta-title {
    font-size: clamp(1.9rem, 8vw, 2.8rem);
    letter-spacing: 0.02em;
  }
  /* pw-card labels — prevent wrapping on narrow screens */
  .pw-card__label {
    font-size: var(--text-base);
  }
  /* Collapse hero eyebrow gracefully */
  .eyebrow-tag {
    letter-spacing: 0.14em;
  }
}

@media (max-width: 480px) {
  .hero__headline {
    font-size: clamp(1.9rem, 10vw, 2.6rem);
    letter-spacing: 0.01em;
  }
  .section-head__title {
    font-size: clamp(1.6rem, 8.5vw, 2.2rem);
    letter-spacing: 0.01em;
  }
  .why-us__title,
  .private-work__title {
    font-size: clamp(1.6rem, 8.5vw, 2.2rem);
    letter-spacing: 0.01em;
  }
  .cta-title {
    font-size: clamp(1.7rem, 9vw, 2.4rem);
    letter-spacing: 0.01em;
  }
}
