/* ============================================================
   BerryVue Studios — cinematic dark landing page
   Palette: near-black + chrome/silver + purple (from the logo)
   ============================================================ */

:root {
  --bg:        #08070d;
  --bg-2:      #0d0b15;
  --bg-3:      #14111f;
  --card:      #100d1a;
  --ink:       #f5f3fa;
  --muted:     #a6a1b8;
  --muted-2:   #79738c;
  --line:      rgba(255,255,255,0.09);
  --line-2:    rgba(255,255,255,0.05);

  --purple:      #a855f7;
  --purple-lite: #c99bff;
  --purple-deep: #7c3aed;
  --purple-glow: rgba(168,85,247,0.55);

  --chrome: linear-gradient(180deg,#ffffff 0%,#e6e6ef 20%,#b7b7c6 44%,#f5f5fb 54%,#9a9aa9 72%,#dcdce6 100%);
  --chrome-soft: linear-gradient(180deg,#f4f4f8 0%,#c9c9d4 55%,#eeeef4 100%);

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 18px;

  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient background: layered purple glows + faint grid + grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60vw 60vw at 78% -8%, rgba(124,58,237,0.20), transparent 60%),
    radial-gradient(50vw 50vw at 8% 12%, rgba(168,85,247,0.14), transparent 55%),
    radial-gradient(70vw 50vw at 50% 108%, rgba(124,58,237,0.16), transparent 60%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

/* ---------- Type helpers ---------- */
.metal {
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.4));
}
.grad-purple {
  background: linear-gradient(180deg,#d9b7ff, var(--purple) 60%, var(--purple-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--purple-lite);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple));
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 15px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, background .25s, border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--purple), var(--purple-deep));
  box-shadow: 0 8px 30px -8px var(--purple-glow), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -10px var(--purple-glow), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-ghost {
  color: var(--ink);
  background: rgba(255,255,255,0.04);
  border-color: var(--line);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(168,85,247,0.6); background: rgba(168,85,247,0.08); }

/* ---------- Nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
header.nav.scrolled {
  background: rgba(8,7,13,0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 800; font-size: 21px; letter-spacing: 0.02em;
  display: inline-flex; align-items: baseline; gap: 0;
}
.wordmark .berry { background: var(--chrome-soft); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark .vue { color: var(--purple-lite); }
.wordmark .studios { font-size: 11px; letter-spacing: 0.42em; color: var(--muted-2); font-weight: 600; margin-left: 8px; align-self: center; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 14.5px; color: var(--muted); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.menu-btn { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 8px; }
.menu-btn svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(48px, 9vw, 110px); padding-bottom: clamp(60px, 9vw, 120px); text-align: center; }
.hero .logo-mark {
  width: min(560px, 82vw);
  margin: 0 auto clamp(26px, 4vw, 40px);
  mix-blend-mode: screen;
  filter: drop-shadow(0 10px 60px rgba(124,58,237,0.45));
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .hero .logo-mark { animation: none; } }

.hero h1 {
  font-size: clamp(34px, 6.4vw, 76px);
  max-width: 16ch;
  margin: 0 auto 22px;
}
.hero .sub {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 62ch;
  margin: 0 auto 38px;
}
.hero .sub strong { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.scroll-hint { margin-top: clamp(44px, 7vw, 76px); display: inline-flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted-2); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; }
.scroll-hint .mouse { width: 22px; height: 34px; border: 1.5px solid var(--line); border-radius: 12px; position: relative; }
.scroll-hint .mouse::after { content:""; position:absolute; left:50%; top:7px; width:3px; height:7px; border-radius:2px; background: var(--purple-lite); transform: translateX(-50%); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity:0; transform: translate(-50%,0);} 40%{opacity:1;} 100%{opacity:0; transform: translate(-50%,10px);} }

/* ---------- Client strip ---------- */
.clients { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 34px 0; }
.clients .label { text-align: center; font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 22px; }
.clients .row { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 56px); justify-content: center; align-items: center; }
.clients .row span { font-family: var(--font-display); font-weight: 600; font-size: clamp(13px, 1.8vw, 17px); color: #cfc9df; opacity: 0.62; letter-spacing: 0.01em; transition: opacity .25s, color .25s; }
.clients .row span:hover { opacity: 1; color: #fff; }

/* ---------- Section scaffolding ---------- */
section { position: relative; }
.section-pad { padding-block: clamp(72px, 11vw, 140px); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 68px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 5vw, 54px); margin: 16px 0 18px; }
.section-head p { color: var(--muted); font-size: clamp(16px,2vw,19px); margin: 0; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.svc {
  position: relative;
  padding: 32px 30px 34px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s, background .35s;
}
.svc::before {
  content:""; position:absolute; inset:0; border-radius: inherit; padding:1px;
  background: linear-gradient(140deg, rgba(168,85,247,0.5), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s;
}
.svc:hover { transform: translateY(-6px); border-color: transparent; background: linear-gradient(180deg, rgba(168,85,247,0.08), rgba(255,255,255,0.01)); }
.svc:hover::before { opacity: 1; }
.svc .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 22px; background: linear-gradient(180deg, rgba(168,85,247,0.22), rgba(124,58,237,0.08)); border: 1px solid rgba(168,85,247,0.3); }
.svc .ico svg { width: 24px; height: 24px; stroke: var(--purple-lite); }
.svc h3 { font-size: 22px; margin-bottom: 10px; }
.svc p { color: var(--muted); font-size: 15.5px; margin: 0 0 16px; }
.svc ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.svc li { font-size: 12.5px; color: var(--muted-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }

/* ---------- Work grid ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.work {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px; border: 1px solid var(--line);
  background: var(--card);
  isolation: isolate;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.work::before {
  content:""; position:absolute; inset:0; z-index:-2;
  background: var(--grad, linear-gradient(150deg,#241a3a,#0d0b15));
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.work::after {
  content:""; position:absolute; inset:0; z-index:-1;
  background: linear-gradient(180deg, transparent 35%, rgba(6,5,10,0.85) 100%);
}
.work:hover { transform: translateY(-5px); }
.work:hover::before { transform: scale(1.06); }
.work .tag { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--purple-lite); margin-bottom: 10px; }
.work h3 { font-size: 21px; line-height: 1.12; }
.work p { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.work .num { position: absolute; top: 20px; right: 22px; font-family: var(--font-display); font-weight: 800; font-size: 15px; color: rgba(255,255,255,0.25); }
.work.big { grid-column: span 2; min-height: 300px; }

.work-note { text-align: center; color: var(--muted-2); font-size: 13.5px; margin-top: 26px; }

/* ---------- Reel ---------- */
.reel-wrap { max-width: 940px; margin: 0 auto; }
.reel {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16/9; border: 1px solid var(--line);
  box-shadow: 0 40px 120px -40px rgba(124,58,237,0.55);
  cursor: pointer; background: #000;
}
.reel img { width: 100%; height: 100%; object-fit: cover; opacity: 0.82; transition: opacity .4s, transform .8s; }
.reel:hover img { opacity: 0.62; transform: scale(1.03); }
.reel iframe { width: 100%; height: 100%; border: 0; display: block; }
.reel .play {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
}
.reel .play .disc {
  width: 92px; height: 92px; border-radius: 999px;
  background: linear-gradient(180deg, var(--purple), var(--purple-deep));
  display: grid; place-items: center;
  box-shadow: 0 20px 60px -12px var(--purple-glow), inset 0 1px 0 rgba(255,255,255,0.35);
  transition: transform .3s;
}
.reel:hover .play .disc { transform: scale(1.08); }
.reel .play .disc svg { width: 34px; height: 34px; fill: #fff; margin-left: 5px; }
.reel .cap { position: absolute; left: 24px; bottom: 20px; font-family: var(--font-display); font-weight: 600; font-size: 15px; text-shadow: 0 2px 12px rgba(0,0,0,0.7); }
.reel .cap small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 12.5px; color: var(--muted); letter-spacing: 0.02em; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.about .photo { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.about .photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about .photo::after { content:""; position:absolute; inset:0; box-shadow: inset 0 -80px 90px -40px rgba(8,7,13,0.9); }
.about .photo .badge { position: absolute; left: 18px; bottom: 16px; z-index: 2; font-family: var(--font-display); font-weight: 700; font-size: 13px; color:#fff; background: rgba(124,58,237,0.85); padding: 7px 14px; border-radius: 999px; backdrop-filter: blur(6px); }
.about h2 { font-size: clamp(28px, 4.4vw, 48px); margin-bottom: 22px; }
.about p { color: var(--muted); margin: 0 0 18px; font-size: 16.5px; }
.about p strong { color: var(--ink); font-weight: 600; }
.about .name-line { color: var(--ink); }
.stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.stat { border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; background: rgba(255,255,255,0.02); }
.stat b { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 800; }
.stat b.metal { background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 12.5px; color: var(--muted-2); letter-spacing: 0.04em; }

/* ---------- CTA ---------- */
.cta {
  text-align: center; border-radius: 26px; overflow: hidden; position: relative;
  padding: clamp(52px, 8vw, 96px) var(--pad);
  border: 1px solid var(--line);
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(124,58,237,0.28), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.005));
}
.cta h2 { font-size: clamp(30px, 5.4vw, 60px); margin-bottom: 20px; }
.cta p { color: var(--muted); max-width: 52ch; margin: 0 auto 34px; font-size: clamp(16px,2vw,19px); }
.cta .row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta .email-note { margin-top: 22px; font-size: 13.5px; color: var(--muted-2); }
.cta .email-note a { color: var(--purple-lite); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 54px 0 40px; }
.foot-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
footer .tagline { color: var(--muted-2); font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; margin-top: 14px; }
.foot-links { display: flex; gap: 40px; flex-wrap: wrap; }
.foot-col h4 { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 14px; font-weight: 600; }
.foot-col a { display: block; color: var(--muted); font-size: 14.5px; margin-bottom: 9px; transition: color .2s; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted-2); font-size: 13px; }

/* ---------- Builds showcase ---------- */
.builds-featured {
  position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center;
  padding: 40px clamp(28px, 4vw, 52px); border-radius: 22px; margin-bottom: 20px;
  border: 1px solid var(--line); overflow: hidden;
  background:
    radial-gradient(70% 130% at 100% 0%, rgba(58,168,216,0.16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
  transition: transform .4s cubic-bezier(.2,.7,.2,1), border-color .4s;
}
.builds-featured:hover { transform: translateY(-4px); border-color: rgba(58,168,216,0.4); }
.builds-featured .flag { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: #6fc3e8; margin-bottom: 16px; display: inline-flex; align-items: center; gap: 8px; }
.builds-featured img.wm { height: 46px; width: auto; margin-bottom: 18px; }
.builds-featured .tag { font-family: var(--font-display); font-weight: 600; font-size: clamp(19px,2.4vw,26px); color: var(--ink); margin: 0 0 12px; }
.builds-featured p { color: var(--muted); margin: 0 0 22px; font-size: 16px; }
.builds-featured .visit { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: #7fcaec; }
.builds-featured .art { position: relative; aspect-ratio: 16/10; border-radius: 14px; border: 1px solid var(--line); display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(58,168,216,0.14), rgba(255,255,255,0.02)); overflow: hidden; }
.builds-featured .art img { width: 100%; height: 100%; object-fit: cover; }

.builds-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.build {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 28px 26px 26px; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s, background .35s;
}
.build::after { content:""; position:absolute; inset:0 0 auto 0; height:2px; background: var(--accent, var(--purple)); opacity:.7; }
.build:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent, var(--purple)) 50%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--accent, var(--purple)) 8%, transparent), rgba(255,255,255,0.01)); }
.build .logo-zone { height: 72px; display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.build .logo-zone img { height: 52px; width: auto; }
.build .logo-zone img.tile { border-radius: 13px; }
.build .logo-zone .bn { font-family: var(--font-display); font-weight: 800; font-size: 25px; letter-spacing: -0.01em; color: var(--ink); }
.build .btag { font-size: 13px; font-weight: 600; color: var(--accent, var(--purple-lite)); margin-bottom: 8px; letter-spacing: 0.01em; }
.build .bdesc { color: var(--muted); font-size: 14.5px; margin: 0 0 18px; flex: 1; }
.build .visit { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--ink); opacity: .85; }
.build .visit svg { width: 15px; height: 15px; transition: transform .25s; }
.build:hover .visit svg { transform: translate(3px,-3px); }

/* Film compact section */
.film-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.film-split .txt h2 { font-size: clamp(26px, 3.8vw, 40px); margin-bottom: 18px; }
.film-split .txt p { color: var(--muted); margin: 0 0 18px; font-size: 16px; }
.film-split .txt .film-clients { font-size: 13px; color: var(--muted-2); letter-spacing: .02em; margin: 0 0 24px; }
.film-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Reveal animation ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.reveal { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; } }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: rgba(8,7,13,0.97); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  transform: translateY(-100%); transition: transform .4s cubic-bezier(.2,.7,.2,1); visibility: hidden;
}
.mobile-menu.open { transform: none; visibility: visible; }
.mobile-menu a { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--ink); }
.mobile-menu .close { position: absolute; top: 22px; right: 22px; background: none; border: 0; color: var(--ink); cursor: pointer; }
.mobile-menu .close svg { width: 30px; height: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .services-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work.big { grid-column: span 2; }
  .about { grid-template-columns: 1fr; }
  .about .photo { max-width: 380px; }
  .builds-featured { grid-template-columns: 1fr; gap: 28px; }
  .builds-featured .art { order: -1; }
  .builds-row { grid-template-columns: 1fr; }
  .film-split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .work-grid { grid-template-columns: 1fr; }
  .work.big { grid-column: span 1; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .foot-grid { flex-direction: column; }
}
