/*
Theme Name: Most Agency
Theme URI: https://mostagency.com
Author: Selmir Avdic
Author URI: https://mostagency.com
Description: Scroll-driven parallax landing page for Most Agency. Built for startups and ambitious founders.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: most-agency
Tags: one-page, parallax, dark, business, portfolio
*/

/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; overflow-x: hidden; }
body { font-family: 'DM Sans', sans-serif; background: #0d0d0d; }

/* ─── Tokens ─── */
:root {
  --amber:      #D4963A;
  --amber-dark: #A87030;
  --black:      #0D0D0D;
  --white:      #FFFFFF;
  --off-white:  #F5F5F3;
  --grey:       #6B6B6B;
  --font-d:     'Montserrat', sans-serif;
  --font-b:     'DM Sans', sans-serif;
}

/* ─── Video background ─── */
#bg-video {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  background: #0d0d0d;
}

/* ─── Overlays ─── */
#overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,0.58) 0%,
      rgba(0,0,0,0.22) 30%,
      rgba(0,0,0,0.22) 65%,
      rgba(0,0,0,0.72) 100%
    );
  pointer-events: none;
}

#grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  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.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.032;
  pointer-events: none;
}

/* ─── Header ─── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 36px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.logo-most {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--white);
  line-height: 1;
}

.logo-agency {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-d);
  font-weight: 400;
  font-size: 5.5px;
  color: rgba(255,255,255,0.4);
  margin-top: 3px;
}

#nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.25s;
}
.nav-link:hover { color: var(--white); }

.nav-cta {
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--amber);
  padding: 11px 24px;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s;
}
.nav-cta:hover { background: var(--amber-dark); transform: translateY(-1px); }

/* ─── Progress bar ─── */
#progress-track {
  position: fixed;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 120px;
  background: rgba(255,255,255,0.1);
  z-index: 200;
}

#progress-fill {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--amber);
  transform-origin: top;
  transform: scaleY(0);
}

/* ─── Section nav dots ─── */
#section-nav {
  position: fixed;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.snav-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  border: none;
  padding: 0;
}
.snav-dot.active { background: var(--amber); transform: scale(1.4); }
.snav-dot:hover  { background: rgba(255,255,255,0.6); }

/* ─── Scroll hint ─── */
#scroll-hint {
  position: fixed;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
#scroll-hint span {
  font-family: var(--font-d);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.hint-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--amber), transparent);
  animation: drop 1.6s ease-in-out infinite;
}
@keyframes drop {
  0%, 100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  40%, 60%  { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ─── Scene indicator ─── */
#scene-indicator {
  position: fixed;
  bottom: 44px; left: 56px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 12px;
}
.si-number { font-family: var(--font-d); font-size: 11px; font-weight: 700; color: var(--amber); letter-spacing: 0.1em; }
.si-line   { width: 28px; height: 1px; background: rgba(255,255,255,0.2); }
.si-name   { font-family: var(--font-d); font-size: 9px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.35); }

/* ─── Base scene ─── */
.scene {
  position: fixed;
  inset: 0;
  z-index: 10;
  padding: 130px 80px 80px 80px;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
}

.anim { opacity: 0; transform: translateY(28px); }

.scene.visible .anim { animation: fadeUp 0.75s ease forwards; }
.scene.visible .anim:nth-child(1) { animation-delay: 0.00s; }
.scene.visible .anim:nth-child(2) { animation-delay: 0.10s; }
.scene.visible .anim:nth-child(3) { animation-delay: 0.20s; }
.scene.visible .anim:nth-child(4) { animation-delay: 0.30s; }
.scene.visible .anim:nth-child(5) { animation-delay: 0.40s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

/* ─── Typography helpers ─── */
.s-label {
  font-family: var(--font-d);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
  margin-bottom: 20px;
}
.s-heading {
  font-family: var(--font-d);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--white);
}
.s-body {
  font-family: var(--font-b);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
}

/* ─── Scene 1: Hero ─── */
#scene-hero { align-items: center; padding-left: 80px; padding-right: 40%; }
#scene-hero .s-heading { font-size: clamp(52px, 7.5vw, 96px); margin-bottom: 24px; }
#scene-hero .s-body    { font-size: 18px; max-width: 480px; margin-bottom: 44px; }

.hero-cta { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.hero-cta-text { font-family: var(--font-d); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--white); }
.hero-cta-line { width: 40px; height: 1px; background: var(--amber); transition: width 0.3s ease; }
.hero-cta:hover .hero-cta-line { width: 64px; }

/* ─── Scene 2: Services ─── */
#scene-services { flex-direction: column; justify-content: space-between; padding-top: 160px; padding-bottom: 80px; }
.services-top { max-width: 560px; }
#scene-services .s-heading { font-size: clamp(30px, 4vw, 48px); margin-bottom: 0; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: 100%; }

.reveal-card { position: relative; border-radius: 24px; overflow: hidden; height: 340px; cursor: pointer; }

.rc-base {
  position: absolute; inset: 0;
  background: rgba(13,13,13,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 36px 32px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.rc-base-num { font-family: var(--font-d); font-weight: 900; font-size: 64px; color: rgba(255,255,255,0.06); line-height: 1; letter-spacing: -0.04em; position: absolute; top: 28px; left: 28px; }
.rc-base-title { font-family: var(--font-d); font-weight: 700; font-size: 15px; color: rgba(255,255,255,0.9); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.rc-base-desc { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.65; max-width: 240px; }

.rc-overlay { position: absolute; inset: 0; background: var(--rc-accent); clip-path: circle(50px at 64px 64px); padding: 36px 32px; display: flex; flex-direction: column; justify-content: flex-end; }
.rc-logo-wrap { position: absolute; top: 64px; left: 64px; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 7px; }
.rc-logo-wrap svg { width: 44px; height: 31px; }
.rc-logo-most { font-family: var(--font-d); font-weight: 700; font-size: 12px; letter-spacing: 0.18em; line-height: 1; }
.rc-overlay-label { font-family: var(--font-d); font-weight: 500; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rc-muted); margin-bottom: 8px; }
.rc-overlay-title { font-family: var(--font-d); font-weight: 800; font-size: 20px; color: var(--rc-text); letter-spacing: -0.01em; margin-bottom: 10px; line-height: 1.2; }
.rc-overlay-desc  { font-size: 13px; color: var(--rc-muted); line-height: 1.6; max-width: 240px; }

/* ─── Scene 3: Approach ─── */
#scene-approach { align-items: center; justify-content: center; text-align: center; flex-direction: column; padding-left: 120px; padding-right: 120px; }
#scene-approach .s-heading { font-size: clamp(36px, 5.5vw, 68px); max-width: 800px; margin-bottom: 32px; }
#scene-approach .s-body    { max-width: 560px; font-size: 17px; text-align: center; margin-bottom: 48px; }
.approach-stats { display: flex; gap: 64px; justify-content: center; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stat-value { font-family: var(--font-d); font-weight: 800; font-size: 36px; color: var(--amber); letter-spacing: -0.03em; line-height: 1; }
.stat-label { font-size: 10px; font-family: var(--font-d); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.35); }
.approach-rule { width: 40px; height: 2px; background: var(--amber); margin: 0 auto 28px; }

/* ─── Scene 4: About ─── */
#scene-about { align-items: center; gap: 80px; padding-right: 80px; }
.about-text { flex: 1; max-width: 480px; }
#scene-about .s-heading { font-size: clamp(34px, 4.5vw, 54px); margin-bottom: 24px; }
#scene-about .s-body    { font-size: 16px; margin-bottom: 36px; }
.about-detail { display: flex; flex-direction: column; gap: 10px; }
.about-detail-item { display: flex; align-items: center; gap: 14px; font-size: 12px; font-family: var(--font-d); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.35); }
.about-detail-item::before { content: ''; width: 20px; height: 1px; background: var(--amber); flex-shrink: 0; }

.about-photo-wrap { width: 320px; flex-shrink: 0; position: relative; }
.about-photo-frame { width: 100%; aspect-ratio: 3/4; overflow: hidden; position: relative; }
.about-photo-frame::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(13,13,13,0.9) 100%); z-index: 1; }
.about-photo-frame::after  { content: ''; position: absolute; top: -10px; left: -10px; right: 10px; bottom: 10px; border: 1px solid rgba(212,150,58,0.3); z-index: 0; pointer-events: none; }
.about-photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; position: relative; z-index: 0; filter: grayscale(20%) contrast(1.05); }
.about-photo-caption { position: absolute; bottom: 20px; left: 20px; z-index: 2; }
.about-photo-name { font-family: var(--font-d); font-weight: 700; font-size: 13px; color: var(--white); letter-spacing: 0.04em; display: block; }
.about-photo-role { font-family: var(--font-d); font-size: 9px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); display: block; margin-top: 3px; }

/* ─── Scene 5: CTA ─── */
#scene-cta { align-items: center; justify-content: center; flex-direction: column; text-align: center; padding-left: 80px; padding-right: 80px; }
#scene-cta .s-heading { font-size: clamp(40px, 6vw, 80px); max-width: 800px; margin-bottom: 24px; }
#scene-cta .s-body    { max-width: 440px; font-size: 16px; margin-bottom: 48px; text-align: center; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cta-btn {
  font-family: var(--font-d); font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--white); background: var(--amber); padding: 18px 48px;
  text-decoration: none; display: inline-block;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.cta-btn:hover { background: var(--amber-dark); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(212,150,58,0.35); }
.cta-email { font-family: var(--font-d); font-size: 11px; font-weight: 400; letter-spacing: 0.08em; color: rgba(255,255,255,0.3); text-decoration: none; transition: color 0.25s; }
.cta-email:hover { color: rgba(255,255,255,0.7); }

/* ─── Scroll spacer ─── */
#scroll-spacer { height: 550vh; }

/* ─── Mobile ─── */
@media (max-width: 768px) {
  #header { padding: 24px 28px; }
  #nav .nav-link { display: none; }
  .scene { padding: 100px 28px 60px; }
  #scene-hero .s-heading { font-size: 42px; }
  #scene-hero { padding-right: 28px; }
  #scene-approach { padding-left: 28px; padding-right: 28px; }
  #scene-cta { padding-left: 28px; padding-right: 28px; }
  #scene-services .services-grid { grid-template-columns: 1fr; gap: 12px; }
  .reveal-card { height: 280px; }
  #scene-about { flex-direction: column; gap: 40px; }
  .about-photo-wrap { width: 220px; align-self: center; }
  #progress-track { display: none; }
  #section-nav { display: none; }
  #scene-indicator { display: none; }
}
