/* ===========================================================
   Creative Plix — Digital Marketing Agency
   =========================================================== */

:root {
  --bg: #f4f1ea;          /* warm off-white */
  --bg-dark: #0e0e10;     /* near-black */
  --ink: #14141a;
  --ink-soft: #54545e;
  --line: rgba(20, 20, 26, 0.12);
  --accent: #ff4d3d;      /* signature coral-red */
  --accent-2: #5b8def;
  --white: #ffffff;
  --radius: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Custom cursor ---------- */
.cursor, .cursor-dot {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor {
  width: 38px; height: 38px;
  border: 1px solid #fff;
  transition: width .3s var(--ease), height .3s var(--ease), background .3s var(--ease);
}
.cursor-dot { width: 6px; height: 6px; background: #fff; }
.cursor.is-active { width: 70px; height: 70px; background: rgba(255,255,255,.15); border-color: transparent; }
@media (hover: none) { .cursor, .cursor-dot { display: none; } }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0;
  background: var(--bg-dark);
  z-index: 10000;
  display: grid; place-items: center;
  transition: opacity .6s var(--ease), visibility .6s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__text {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700; color: var(--white); letter-spacing: -.03em;
}
.loader__text em { color: var(--accent); font-style: normal; }
.loader__bar {
  margin-top: 22px; height: 2px; width: 220px;
  background: rgba(255,255,255,.18); overflow: hidden; border-radius: 2px;
}
.loader__bar span {
  display: block; height: 100%; width: 0; background: var(--accent);
  animation: load 1.4s var(--ease) forwards;
}
@keyframes load { to { width: 100%; } }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 900;
  padding: 22px 0;
  transition: padding .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.is-scrolled {
  padding: 12px 0;
  background: rgba(244, 241, 234, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.nav__logo {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700; font-size: 1.4rem; letter-spacing: -.02em;
  display: inline-flex; align-items: baseline; gap: 1px;
}
.nav__logo span { color: var(--accent); }
.nav__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); display: inline-block; margin-left: 3px;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.5);opacity:.5} }

.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a {
  font-size: .95rem; font-weight: 500; position: relative;
}
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1.5px; background: var(--ink);
  transition: width .35s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  background: var(--ink); color: var(--bg);
  padding: 11px 22px; border-radius: 100px;
  transition: background .3s, transform .3s var(--ease);
}
.nav__cta:hover { background: var(--accent); transform: translateY(-2px); }

.nav__burger {
  display: none; flex-direction: column; gap: 6px;
  background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav__burger span {
  width: 26px; height: 2px; background: var(--ink);
  transition: transform .35s var(--ease), opacity .3s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: translateY(-0px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 1rem;
  padding: 15px 28px; border-radius: 100px;
  transition: transform .3s var(--ease), background .3s, color .3s;
  will-change: transform;
}
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--ink); }
.btn--ghost { border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); font-size: clamp(1rem,2.4vw,1.5rem); padding: 20px 40px; }
.btn--light:hover { background: var(--accent); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 0 80px; overflow: hidden;
}
.hero__orb {
  position: absolute; border-radius: 50%; filter: blur(80px);
  opacity: .5; z-index: 0;
}
.hero__orb--1 { width: 480px; height: 480px; background: var(--accent); top: -120px; right: -80px; }
.hero__orb--2 { width: 420px; height: 420px; background: var(--accent-2); bottom: -140px; left: -100px; opacity: .35; }
.hero .container { position: relative; z-index: 1; }

.hero__eyebrow {
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase; letter-spacing: .18em;
  font-size: .8rem; font-weight: 600; color: var(--accent);
  margin-bottom: 24px;
}
.hero__title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700; letter-spacing: -.035em; line-height: .98;
  font-size: clamp(2.8rem, 8.5vw, 7.5rem);
}
.hero__title em { font-style: normal; color: var(--accent); }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span {
  display: block; transform: translateY(110%);
  transition: transform 1s var(--ease);
}
.is-loaded .hero__title .line > span { transform: translateY(0); }
.is-loaded .hero__title .line:nth-child(2) > span { transition-delay: .12s; }

.hero__lead {
  max-width: 560px; margin-top: 30px;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-soft);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

.hero__scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .7rem; text-transform: uppercase; letter-spacing: .2em; color: var(--ink-soft);
}
.hero__scroll-line { width: 1px; height: 50px; background: var(--ink-soft); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--accent); animation: scrolldown 1.8s infinite;
}
@keyframes scrolldown { 0%{top:-50%} 100%{top:100%} }

/* ---------- Marquee ---------- */
.marquee-wrap { border-block: 1px solid var(--line); padding: 26px 0; background: var(--bg); }
.marquee { overflow: hidden; }
.marquee__track {
  display: flex; align-items: center; gap: 40px; width: max-content;
  animation: marquee 26s linear infinite;
  font-family: "Space Grotesk", sans-serif; font-weight: 600;
  font-size: clamp(1.3rem, 3vw, 2rem); color: var(--ink);
}
.marquee__track .dot { color: var(--accent); font-size: 1rem; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Statement ---------- */
.statement { padding: clamp(80px, 12vw, 160px) 0; }
.statement__text {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500; letter-spacing: -.02em; line-height: 1.18;
  font-size: clamp(1.6rem, 4.2vw, 3.4rem); max-width: 18ch;
}
.statement__text .word { display: inline-block; opacity: .15; transition: opacity .4s var(--ease); }
.statement__text .word.is-lit { opacity: 1; }

/* ---------- Showcase / studio band ---------- */
.showcase {
  position: relative; height: clamp(380px, 60vh, 620px);
  display: flex; align-items: flex-end; overflow: hidden;
}
.showcase__media {
  position: absolute; inset: -10% 0; z-index: 0;
  background-size: cover; background-position: center;
  will-change: transform;
}
.showcase::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(14,14,16,.85), rgba(14,14,16,.25) 55%, rgba(14,14,16,.4));
}
.showcase__inner { position: relative; z-index: 2; padding-bottom: clamp(40px, 7vw, 80px); color: #fff; }
.showcase__label {
  font-family: "Space Grotesk", sans-serif; text-transform: uppercase;
  letter-spacing: .16em; font-size: .8rem; font-weight: 600; color: var(--accent); margin-bottom: 16px;
}
.showcase__text {
  font-family: "Space Grotesk", sans-serif; font-weight: 600;
  font-size: clamp(1.5rem, 3.6vw, 2.8rem); letter-spacing: -.02em;
  line-height: 1.12; max-width: 20ch;
}

/* ---------- Section heads ---------- */
.section-head { margin-bottom: 56px; }
.section-head__label {
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase; letter-spacing: .16em; font-size: .8rem;
  font-weight: 600; color: var(--accent); margin-bottom: 14px;
}
.section-head__title {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  letter-spacing: -.03em; line-height: 1.02;
  font-size: clamp(2rem, 5vw, 3.6rem);
}

/* ---------- Work ---------- */
.work { padding: 60px 0 clamp(80px,10vw,140px); }
.work__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.case { cursor: pointer; }
.case__media {
  border-radius: var(--radius); overflow: hidden; position: relative;
  aspect-ratio: 4 / 3;
}
.case__img {
  position: absolute; inset: 0;
  background-color: var(--c1);
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end; padding: 22px;
  transition: transform .9s var(--ease);
  transform: scale(1.08);
}
.case:hover .case__img { transform: scale(1); }
/* brand-colour tint keeps the photos cohesive with the palette */
.case__img::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(150deg, var(--c1), var(--c2));
  mix-blend-mode: multiply; opacity: .46;
  transition: opacity .5s var(--ease);
}
.case:hover .case__img::before { opacity: .26; }
.case__img::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,.55), transparent 48%),
    radial-gradient(120% 120% at 80% 10%, rgba(255,255,255,.22), transparent 50%);
}
.case__badge {
  position: relative; z-index: 1;
  background: rgba(0,0,0,.4); backdrop-filter: blur(6px);
  color: #fff; font-size: .78rem; font-weight: 600;
  padding: 7px 14px; border-radius: 100px;
}
.case__meta { padding: 22px 4px 0; }
.case__meta h3 {
  font-family: "Space Grotesk", sans-serif; font-size: 1.5rem;
  font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px;
  transition: color .3s;
}
.case:hover .case__meta h3 { color: var(--accent); }
.case__meta p { color: var(--ink-soft); max-width: 46ch; }
.case__tags {
  display: inline-block; margin-top: 14px; font-size: .82rem;
  font-weight: 500; color: var(--ink); opacity: .7;
}

/* ---------- Services ---------- */
.services { padding: clamp(80px,10vw,140px) 0; background: var(--bg-dark); color: var(--bg); }
.services .section-head__title { color: #fff; }
.services__list { list-style: none; border-top: 1px solid rgba(255,255,255,.14); }
.service {
  display: grid; grid-template-columns: 70px 1fr auto;
  align-items: center; gap: 28px;
  padding: 34px 10px; border-bottom: 1px solid rgba(255,255,255,.14);
  position: relative; cursor: pointer; transition: padding .4s var(--ease);
}
.service::before {
  content: ""; position: absolute; inset: 0; background: var(--accent);
  transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); z-index: 0;
}
.service:hover::before { transform: scaleY(1); }
.service:hover { padding-left: 28px; }
.service > * { position: relative; z-index: 1; }
.service__num { font-family: "Space Grotesk", sans-serif; color: rgba(255,255,255,.4); font-size: .9rem; }
.service__title { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: clamp(1.3rem,2.6vw,2rem); letter-spacing: -.02em; }
.service__desc { color: rgba(255,255,255,.55); max-width: 50ch; font-size: .98rem; transition: color .3s; }
.service:hover .service__desc { color: rgba(255,255,255,.9); }
.service__arrow { font-style: normal; font-size: 1.6rem; opacity: 0; transform: translateX(-12px); transition: all .4s var(--ease); }
.service:hover .service__arrow { opacity: 1; transform: translateX(0); }
@media (max-width: 760px) {
  .service { grid-template-columns: 44px 1fr; }
  .service__desc { grid-column: 2; }
  .service__arrow { display: none; }
}

/* ---------- Video band ---------- */
.videoband {
  position: relative; min-height: clamp(460px, 78vh, 760px);
  display: flex; align-items: flex-end; overflow: hidden;
  background: var(--bg-dark);
}
.videoband__media {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.videoband::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(14,14,16,.9), rgba(14,14,16,.2) 55%, rgba(14,14,16,.55));
}
.videoband__inner { position: relative; z-index: 2; color: #fff; padding: clamp(46px, 8vw, 90px) 28px; }
.videoband__label {
  font-family: "Space Grotesk", sans-serif; text-transform: uppercase;
  letter-spacing: .18em; font-size: .8rem; font-weight: 600; color: var(--accent); margin-bottom: 16px;
}
.videoband__title {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 5.5rem); letter-spacing: -.035em; line-height: 1;
}
.videoband__text { margin-top: 18px; font-size: clamp(1rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.8); max-width: 46ch; }
.videoband__sound {
  margin-top: 30px; display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  color: #fff; padding: 11px 20px; border-radius: 100px; cursor: pointer;
  font-family: "Inter", sans-serif; font-size: .92rem; font-weight: 500;
  backdrop-filter: blur(8px); transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.videoband__sound:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.videoband__sound-icon { font-size: 1.05rem; line-height: 1; }

/* ---------- Stats ---------- */
.stats { padding: clamp(70px,8vw,110px) 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 30px; }
.stat { text-align: left; border-left: 2px solid var(--accent); padding-left: 20px; }
.stat__num, .stat__plus {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -.04em; line-height: 1;
}
.stat__plus { color: var(--accent); }
.stat__label { margin-top: 12px; color: var(--ink-soft); font-size: .95rem; }

/* ---------- Process ---------- */
.process { padding: clamp(80px,10vw,140px) 0; }
.process__steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 30px; }
.pstep { padding-top: 26px; border-top: 1px solid var(--line); }
.pstep__num {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: 1.1rem; color: var(--accent);
}
.pstep h3 {
  font-family: "Space Grotesk", sans-serif; font-weight: 600;
  font-size: 1.6rem; letter-spacing: -.02em; margin: 14px 0 10px;
}
.pstep p { color: var(--ink-soft); font-size: .96rem; }

/* ---------- About ---------- */
.about { padding: clamp(80px,10vw,140px) 0; }
.about__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; align-items: center; }
.about__title {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: clamp(2rem,4.5vw,3.2rem); letter-spacing: -.03em;
  line-height: 1.05; margin: 16px 0 22px;
}
.about__text { color: var(--ink-soft); font-size: 1.08rem; max-width: 48ch; margin-bottom: 30px; }
.about__right { display: flex; flex-direction: column; gap: 22px; }
.about__media {
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16 / 10; background-size: cover; background-position: center;
}
.about__media-inner { width: 100%; height: 100%; transition: transform .9s var(--ease); }
.about__media:hover .about__media-inner { transform: scale(1.05); }
.about__quote {
  background: var(--bg-dark); color: var(--bg);
  border-radius: var(--radius); padding: 40px;
}
.about__quote blockquote {
  font-family: "Space Grotesk", sans-serif; font-weight: 500;
  font-size: clamp(1.3rem,2.4vw,1.7rem); line-height: 1.4; letter-spacing: -.01em;
}
.about__quote figcaption { margin-top: 28px; display: flex; flex-direction: column; gap: 2px; }
.about__quote figcaption strong { color: var(--accent); }
.about__quote figcaption span { color: rgba(255,255,255,.55); font-size: .9rem; }

/* ---------- CTA ---------- */
.cta { padding: clamp(90px,12vw,170px) 0; background: var(--accent); color: #fff; text-align: center; }
.cta__title {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: clamp(2.2rem,6vw,5rem); letter-spacing: -.035em; line-height: 1.02;
  max-width: 16ch; margin: 0 auto 22px;
}
.cta__title .word { display: inline-block; opacity: .35; transition: opacity .4s var(--ease); }
.cta__title .word.is-lit { opacity: 1; }
.cta__text { font-size: 1.15rem; opacity: .9; margin-bottom: 40px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-dark); color: var(--bg); padding: 80px 0 36px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer__brand .nav__logo { color: #fff; }
.footer__brand p { color: rgba(255,255,255,.5); margin-top: 16px; font-size: .95rem; }
.footer__col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.footer__col a { display: block; color: rgba(255,255,255,.8); margin-bottom: 10px; transition: color .25s, padding-left .25s var(--ease); }
.footer__col a:hover { color: var(--accent); padding-left: 5px; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .85rem; color: rgba(255,255,255,.5);
}

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .work__grid { grid-template-columns: 1fr; }
  .stats__grid, .process__steps { grid-template-columns: repeat(2,1fr); }
  .about__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 340px);
    background: var(--bg-dark); flex-direction: column; justify-content: center;
    align-items: flex-start; gap: 26px; padding: 40px;
    transform: translateX(100%); transition: transform .5s var(--ease); z-index: 800;
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { color: #fff; font-size: 1.4rem; }
  .nav__cta { background: var(--accent); }
  .nav__burger { display: flex; z-index: 850; }
  .nav__burger.is-open span { background: #fff; }
}
@media (max-width: 560px) {
  .stats__grid, .process__steps, .footer__inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal, .hero__title .line > span { opacity: 1 !important; transform: none !important; }
}
