/* ==========================================================================
   FVYDID — Creative Agency
   Brand palette pulled from the holographic logo (3d.png)
   ========================================================================== */

:root {
  --ink: #07070c;
  --ink-2: #0e0e16;
  --ink-3: #15151f;
  --line: rgba(255, 255, 255, 0.08);
  --white: #ffffff;
  --muted: #a7a7b6;

  /* Holographic brand colors from the logo */
  --magenta: #e23bff;
  --pink: #ff36c7;
  --purple: #7b2ff7;
  --cyan: #22e4ff;
  --lime: #b6ff2e;

  --grad: linear-gradient(115deg, var(--cyan) 0%, var(--lime) 22%, var(--magenta) 55%, var(--purple) 100%);
  --grad-soft: linear-gradient(115deg, rgba(34,228,255,0.14), rgba(226,59,255,0.14));

  --radius: 16px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; background: var(--ink); }

body {
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  font-weight: 700;
  background: transparent;
  color: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Dimmed, blurred video background (inner pages) */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
  filter: blur(9px);
  z-index: -2;
  pointer-events: none;
}
/* Dark scrim over the video: heavy at the top so the page title reads on clean
   black, a touch of atmosphere through the mid band, and dark again at the
   bottom. Cards keep their own dark fill, so the mid relief only adds depth. */
.bg-scrim {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(5,5,9,0.9) 0%,
      rgba(6,6,11,0.82) 30%,
      rgba(7,7,12,0.66) 55%,
      rgba(5,5,9,0.86) 100%),
    radial-gradient(90% 55% at 50% 72%, rgba(123,47,247,0.06) 0%, transparent 70%);
}
/* Soft shadow keeps copy legible over any part of the background */
.page-head .lead,
.about-copy p,
.about-copy .mission-label,
.svc-label,
.contact-info h2,
.contact-info p { text-shadow: 0 2px 18px rgba(0,0,0,0.6); }

/* All titles/headings render uppercase site-wide */
h1, h2, h3 { text-transform: uppercase; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ------------------------------------------------------------------ Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 18px 24px;
  background: rgba(7, 7, 12, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand img { height: 30px; width: auto; }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s var(--ease);
  position: relative;
}
.nav__links a:hover, .nav__links a.active { color: var(--white); }
.nav__links a.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

.nav__cta {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--grad);
  color: var(--ink) !important;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.nav__cta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(226, 59, 255, 0.35); }

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.nav__burger span { width: 26px; height: 2px; background: var(--white); border-radius: 2px; transition: 0.3s; }

/* ------------------------------------------------------------------ Hero (home) */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,7,12,0.35) 0%, rgba(7,7,12,0) 35%, rgba(7,7,12,0.15) 60%, var(--ink) 100%);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}
.hero__content--bottom {
  position: absolute;
  left: 0; right: 0;
  bottom: 12vh;
  z-index: 2;
}

/* ---- Home hero scroll motion (desktop/tablet) ----
   Looks exactly like the original at rest. The stage pins (sticky) to give a
   short scroll runway; as you scroll, the "Record Label" copy lifts up and the
   3D logo video swings gently down (driven by main.js). Subtle. */
.hero--home {
  height: 165vh;
  min-height: 0;
  display: block;
  overflow: visible;
}
.hero--home .hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
}
.hero--home .hero__video {
  transform-origin: 50% 0;
  will-change: transform;
}
.hero--home .hero__content {
  position: absolute;
  left: 0; right: 0;
  bottom: 12vh;
  z-index: 2;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
  will-change: transform, opacity;
}
.hero__logo {
  width: min(560px, 82vw);
  margin: 0 auto 22px;
  filter: drop-shadow(0 20px 60px rgba(226, 59, 255, 0.35));
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.hero__tag {
  font-size: clamp(15px, 2vw, 19px);
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero__sub {
  max-width: 540px;
  margin: 0 auto 30px;
  font-weight: 500;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.55;
  color: var(--muted);
}
.hero__scroll {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* ------------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 15px;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 0;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn--primary { background: var(--grad); color: var(--ink); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(123, 47, 247, 0.4); }
.btn--ghost { background: transparent; color: var(--white); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--magenta); color: var(--white); }

/* ------------------------------------------------------------------ Page header (inner pages) */
.page-head {
  padding: 160px 0 60px;
  text-align: center;
  position: relative;
}
.page-head::before {
  content: "";
  position: absolute;
  top: 80px; left: 50%;
  transform: translateX(-50%);
  width: 520px; height: 520px;
  background: var(--grad);
  filter: blur(150px);
  opacity: 0.18;
  z-index: -1;
  border-radius: 50%;
}
.page-head h1 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  /* Fill the hero title with the logo's marbled paint texture, clipped to the letters */
  background-color: #ece7f3; /* fallback so the title is never invisible before the texture paints */
  background-image: url(../images/title-texture.jpg);
  background-size: 230% auto;
  background-position: 22% 45%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: titleMarble 16s ease-in-out infinite alternate;
}
/* accent word inside the hero title inherits the same clipped texture */
.page-head h1 .grad-text {
  color: transparent;
  -webkit-text-fill-color: transparent;
  background: none;
}
@keyframes titleMarble {
  from { background-position: 18% 40%; }
  to   { background-position: 62% 58%; }
}
@media (prefers-reduced-motion: reduce) {
  .page-head h1 { animation: none; }
}
.page-head .lead {
  max-width: 680px;
  margin: 20px auto 0;
  font-weight: 500;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
}
.grad-text {
  color: var(--white);
  -webkit-text-fill-color: currentColor;
}

/* ------------------------------------------------------------------ About copy */
.about-copy { max-width: 720px; margin: 0 auto; text-align: center; }
.about-copy p {
  font-weight: 500;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.7;
  margin-bottom: 24px;
}
.about-copy .mission-label { color: var(--white); margin-bottom: 6px; }
.about-copy .mission {
  font-weight: 800;
  font-size: clamp(23px, 3.6vw, 34px);
  line-height: 1.25;
  margin: 4px auto 30px;
}

/* ------------------------------------------------------------------ Services grid */
.svc-label {
  text-align: center;
  color: var(--white);
  font-size: clamp(17px, 2.2vw, 20px);
  margin-bottom: 26px;
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 14px;
  max-width: 780px;
  margin: 0 auto 60px;
}
.svc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.svc-item::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad);
  flex-shrink: 0;
}
.svc-item:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.16); }

/* ------------------------------------------------------------------ Sections */
.section { padding: 60px 0; }
.section--pad { padding: 40px 0 100px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 14px;
}

/* ------------------------------------------------------------------ Cards / grid */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.16); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { font-weight: 500; color: var(--muted); font-size: 15px; }
.card__num {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 16px;
}

/* ------------------------------------------------------------------ Forms */
.form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--white);
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  transition: border-color 0.25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--magenta);
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; cursor: pointer; }

/* Service radio pills */
.service-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.service-picker input { position: absolute; opacity: 0; }
.service-picker label {
  display: block;
  text-align: center;
  padding: 18px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  color: var(--muted);
  font-size: 15px;
  transition: 0.25s var(--ease);
  text-transform: none;
  letter-spacing: 0;
}
.service-picker input:checked + label {
  border-color: transparent;
  background: var(--grad-soft);
  color: var(--white);
  box-shadow: inset 0 0 0 1px var(--magenta);
}

/* ------------------------------------------------------------------ Merch */
.product {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.product:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.16); }
.product__img {
  aspect-ratio: 1 / 1;
  background: var(--grad-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.product__img span {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.product__body { padding: 20px; }
.product__body h3 { font-size: 18px; }
.product__meta { font-weight: 500; color: var(--muted); font-size: 14px; margin: 6px 0 12px; }
.product__price { color: var(--lime); font-size: 20px; }

.category-title {
  font-size: clamp(24px, 3vw, 32px);
  margin: 40px 0 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.category-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ------------------------------------------------------------------ Contact split */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info { padding-top: 10px; }
.contact-info h2 { font-size: 28px; margin-bottom: 16px; }
.contact-info p { font-weight: 500; color: var(--muted); margin-bottom: 24px; }
.contact-info a.line {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  color: var(--white); font-size: 16px;
}
.contact-info a.line:hover { color: var(--magenta); }

/* ------------------------------------------------------------------ Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 50px 0 40px;
  margin-top: 40px;
}
.footer__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.footer__links a { color: var(--muted); font-size: 14px; transition: color 0.25s var(--ease); }
.footer__links a:hover { color: var(--white); }
.footer__social { display: flex; gap: 16px; }
.footer__social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: 0.25s var(--ease);
}
.footer__social a:hover { color: var(--white); border-color: var(--magenta); transform: translateY(-2px); }
.footer__copy { width: 100%; text-align: center; color: rgba(167,167,182,0.6); font-size: 13px; font-weight: 500; margin-top: 20px; }

/* ------------------------------------------------------------------ Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ Responsive */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  /* Pure black everywhere on mobile so the horizontal video's letterbox bars
     blend seamlessly into the page — no visible edges/lines around the video,
     header or footer. */
  html { background: #000; }
  .hero { background: #000; }
  .nav { background: #000; border-bottom: none; }
  .footer { background: #000; border-top: none; }
  .hero__video { background: #000; }

  /* Hero on portrait: the video is 16:9, so instead of a cropped fullscreen
     cover with dead space, lay the video, tagline and CTA out as a centered
     stacked group that fills the 9:16 screen with balanced spacing. */
  .hero {
    min-height: 100svh;
    height: 100svh;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding: 90px 20px 60px;
  }
  .hero__video {
    position: static;
    width: 100%;
    height: auto;
    max-height: 46vh;
    object-fit: contain;
  }
  .hero__overlay { display: none; }
  .hero__content--bottom {
    position: static;
    left: auto; right: auto; bottom: auto;
    width: 100%;
  }

  /* Home: no parallax on mobile — the stage becomes the stacked column and
     the copy is always visible (keeps the tuned letterbox layout). */
  .hero--home {
    height: 100svh;
    min-height: 100svh;
    display: block;
    overflow: visible;
  }
  .hero--home .hero__stage {
    position: static;
    height: 100svh;
    min-height: 100svh;
    overflow: visible;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding: 90px 20px 60px;
  }
  .hero--home .hero__overlay,
  .hero--home .hero__veil { display: none; }
  .hero--home .hero__content {
    position: static;
    left: auto; right: auto; bottom: auto;
    width: 100%;
    opacity: 1;
    transform: none;
  }
  .hero__tag { font-size: 13px; letter-spacing: 0.12em; margin-bottom: 22px; }
  .hero__scroll { bottom: 22px; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__links.open {
    display: flex;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(7,7,12,0.97);
    backdrop-filter: blur(14px);
    padding: 10px 24px 20px;
    border-bottom: 1px solid var(--line);
  }
  .nav__links.open a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .service-picker { grid-template-columns: 1fr; }
  .form { padding: 26px; }
}

/* ---------------------------------------------- Split-in title animation
   Titles tagged .split-in have their text broken into per-character spans
   (via js/main.js) that glide in from the outside edges and converge to
   center. Outer letters travel furthest. Subtle; respects reduced-motion. */
/* Container keeps its natural display (a block <h1> stays block); only the
   characters inside are inline-block so their transforms compose cleanly. */
.split-in .char {
  display: inline-block;
  white-space: pre;
  opacity: 0;
  transform: translateX(var(--dx, 0));
  filter: blur(6px);
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.55s ease,
              filter 0.55s ease;
  transition-delay: var(--d, 0s);
  will-change: transform, opacity, filter;
}
.split-in.in .char {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0);
}
/* When the marbled page title is split, draw the texture on each character and
   suppress the h1's own text fill + marble animation, so it can't leave a ghost
   layer clipped to the resting glyph positions behind the moving letters. */
.page-head h1.split-in {
  background: none;
  animation: none;
}
.page-head h1.split-in .char {
  background-color: #ece7f3; /* fallback so a letter is never invisible */
  /* Vertical gradient only: no horizontal variation means splitting the title
     into per-character spans leaves no visible seam or repeating texture band.
     Gives a soft metallic sheen that reads as one continuous title. */
  background-image: linear-gradient(178deg, #ffffff 0%, #ece7f3 46%, #c3b9d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
@media (prefers-reduced-motion: reduce) {
  .split-in .char { transition: none; opacity: 1; filter: none; transform: none; }
}

/* Form success state, shown in place of the form after a submission lands */
.form-success {
  text-align: center;
  padding: 56px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--grad-soft);
  animation: successIn 0.5s ease both;
}
.form-success__check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--grad);
  color: var(--ink);
  font-size: 30px;
  font-weight: 800;
  line-height: 64px;
  margin: 0 auto 22px;
}
.form-success h3 { font-size: 28px; margin: 0 0 14px; }
.form-success p { color: var(--muted); max-width: 46ch; margin: 0 auto 10px; }
.form-success p strong { color: var(--white); }
@keyframes successIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
