/* ============================================================
   AI MEDIA CREATOR — shared stylesheet (single source of truth)
   Palette derived from the studio's own brand videos:
   deep navy base + luminous cyan/teal accents.
   ============================================================ */

:root{
  /* surfaces — sampled from the videos' darkest fields */
  --ink:      #060e1c;   /* page background        */
  --ink-2:    #0b1830;   /* raised surface         */
  --ink-3:    #112742;   /* cards / panels         */
  --line:     rgba(86,190,217,.18);  /* hairlines  */
  --line-soft:rgba(178,208,218,.10);

  /* accents — the videos' luminous highlights */
  --cyan:     #56bed9;   /* primary accent         */
  --cyan-deep:#3b8db2;   /* secondary accent       */
  --mist:     #b2d0da;   /* soft light / highlights */

  /* text */
  --text:     #d4e6ec;
  --muted:    rgba(212,230,236,.62);
  --faint:    rgba(212,230,236,.40);

  /* type */
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body:    'Inter', system-ui, sans-serif;

  /* scale */
  --maxw: 1160px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;

  --glow: 0 0 28px rgba(86,190,217,.22);
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  font-family:var(--body);
  color:var(--text);
  background:var(--ink);
  -webkit-font-smoothing:antialiased;
  line-height:1.65;
  overflow-x:hidden;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

/* ambient atmosphere: a faint aurora that echoes the videos,
   so every page feels lit from within without a heavy video on each one */
body::before{
  content:"";
  position:fixed; inset:0; z-index:-2;
  background:
    radial-gradient(60vw 50vh at 78% -8%, rgba(59,141,178,.20), transparent 60%),
    radial-gradient(55vw 45vh at 8% 108%, rgba(86,190,217,.14), transparent 60%),
    var(--ink);
}

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

/* ---------- typography ---------- */
h1,h2,h3{ font-family:var(--display); font-weight:600; line-height:1.1; letter-spacing:-.01em; }
.eyebrow{
  font-family:var(--display);
  font-size:.72rem; font-weight:500;
  letter-spacing:.34em; text-transform:uppercase;
  color:var(--cyan);
}
.lead{ font-size:clamp(1rem,1.3vw,1.18rem); color:var(--muted); max-width:62ch; }

/* ---------- header ---------- */
.site-header{
  position:fixed; top:0; left:0; width:100%; z-index:90;
  display:flex; align-items:center; justify-content:space-between;
  height:66px; padding:0 var(--gutter);
  background:rgba(6,14,28,.55);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.wordmark{
  font-family:var(--display); font-weight:600;
  font-size:.98rem; letter-spacing:.22em; text-transform:uppercase;
  color:var(--text);
}
.wordmark b{ color:var(--cyan); font-weight:600; }

.nav-desktop{ display:flex; gap:6px; }
.nav-desktop a{
  font-family:var(--display); font-size:.86rem; letter-spacing:.04em;
  color:var(--muted); padding:8px 14px; border-radius:8px;
  transition:color .25s, background .25s;
}
.nav-desktop a:hover{ color:var(--text); background:rgba(86,190,217,.08); }
.nav-desktop a.active{ color:var(--cyan); }

.nav-toggle{
  display:none; width:42px; height:42px; border:1px solid var(--line);
  border-radius:10px; background:transparent; cursor:pointer;
  align-items:center; justify-content:center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:""; display:block; width:18px; height:1.5px; background:var(--text);
  position:relative; transition:.3s;
}
.nav-toggle span::before{ position:absolute; top:-6px; }
.nav-toggle span::after{ position:absolute; top:6px; }

/* mobile drawer — kept OUTSIDE <header> on purpose:
   a backdrop-filtered ancestor traps position:fixed children
   (the exact bug we fixed on the GVP site). */
.drawer{
  position:fixed; inset:0; z-index:120;
  background:rgba(6,14,28,.94); backdrop-filter:blur(8px);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:6px;
  opacity:0; pointer-events:none; transition:opacity .3s;
}
.drawer.open{ opacity:1; pointer-events:auto; }
.drawer a{
  font-family:var(--display); font-size:1.5rem; letter-spacing:.04em;
  color:var(--text); padding:14px 22px;
}
.drawer a:hover, .drawer a.active{ color:var(--cyan); }
.drawer-close{
  position:absolute; top:18px; right:var(--gutter);
  width:42px; height:42px; border:1px solid var(--line); border-radius:10px;
  background:transparent; color:var(--text); font-size:1.4rem; cursor:pointer;
}

/* ---------- layout ---------- */
main{ flex:1; }
.section{ padding:clamp(64px,9vw,120px) var(--gutter); }
.wrap{ max-width:var(--maxw); margin:0 auto; width:100%; }

/* ---------- header logo mark ---------- */
.wordmark{ display:inline-flex; align-items:center; gap:11px; }
.wordmark-icon{ height:30px; width:auto; filter:drop-shadow(0 0 8px rgba(86,190,217,.35)); }

/* ---------- hero (home) — full-bleed cinematic video ---------- */
.hero{
  position:relative; min-height:100svh;
  display:flex; align-items:center; justify-content:center;
  padding:96px var(--gutter) 72px; text-align:center; overflow:hidden;
}
.hero-video{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; z-index:-2; background:#000;
}
.hero-scrim{
  position:absolute; inset:0; z-index:-1;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 28%, rgba(6,14,28,.5) 100%),
    linear-gradient(180deg, rgba(6,14,28,.5) 0%, rgba(6,14,28,.32) 45%, rgba(6,14,28,.86) 100%);
}
.hero-inner{ max-width:760px; }
.hero-inner h1{
  font-size:clamp(2.1rem,4.6vw,3.5rem); margin:16px 0 20px; color:#fff;
  text-shadow:0 2px 30px rgba(0,0,0,.5);
}
.hero-inner h1 em{ color:var(--cyan); font-style:normal; }
.hero-inner .lead{ margin:0 auto; color:rgba(233,243,247,.92); }
.hero-inner .btn{ margin-top:30px; }
.scroll-cue{
  position:absolute; left:50%; bottom:26px; transform:translateX(-50%);
  display:inline-flex; flex-direction:column; align-items:center; gap:6px;
  color:var(--mist); font-family:var(--display); font-size:.66rem; letter-spacing:.3em;
}
.scroll-cue svg{ width:22px; height:22px; fill:var(--cyan); animation:bob 2.4s ease-in-out infinite; }
.scroll-cue.active svg{ animation:bob 1s ease-in-out infinite; }
@keyframes bob{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(7px);} }

/* ---------- intro band ---------- */
.intro h2{ font-size:clamp(1.6rem,3vw,2.4rem); margin:16px 0 18px; max-width:18ch; }

/* ---------- service grid ---------- */
.grid{ display:grid; gap:18px; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); margin-top:42px; }
.card{
  position:relative; display:block; padding:30px 26px; border-radius:var(--radius);
  background:linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border:1px solid var(--line-soft); color:inherit;
  transition:transform .35s, border-color .35s, box-shadow .35s;
}
.card:hover{ transform:translateY(-5px); border-color:var(--line); box-shadow:var(--glow); }
.card .idx{ font-family:var(--display); font-size:.74rem; letter-spacing:.2em; color:var(--cyan-deep); }
.card h3{ font-size:1.18rem; margin:14px 0 10px; color:var(--text); }
.card p{ font-size:.94rem; color:var(--muted); }
.card .go{
  display:inline-block; margin-top:16px; font-family:var(--display);
  font-size:.8rem; letter-spacing:.06em; color:var(--cyan);
  opacity:.7; transition:transform .3s, opacity .3s;
}
.card:hover .go{ opacity:1; transform:translateX(4px); }
.more{
  display:inline-block; margin-top:36px; font-family:var(--display);
  font-size:.9rem; letter-spacing:.04em; color:var(--cyan);
  border-bottom:1px solid var(--line); padding-bottom:3px; transition:color .25s, border-color .25s;
}
.more:hover{ color:var(--mist); border-color:var(--cyan); }

/* ---------- showcase (portfolio videos) ---------- */
.showcase{ display:grid; gap:20px; grid-template-columns:repeat(4,1fr); margin-top:42px; }
@media (max-width:1000px){ .showcase{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .showcase{ grid-template-columns:1fr; } }
.tile{
  border:1px solid var(--line-soft); border-radius:var(--radius); overflow:hidden;
  background:var(--ink-2); transition:transform .35s, border-color .35s, box-shadow .35s;
}
.tile:hover{ transform:translateY(-4px); border-color:var(--line); box-shadow:var(--glow); }
.tile .media{ position:relative; aspect-ratio:1/1; background:#000; }
.tile .media video{ width:100%; height:100%; object-fit:cover; }
.tile .body{ padding:22px 22px 26px; }
.tile h3{ font-size:1.16rem; margin-bottom:8px; color:var(--text); }
.tile p{ font-size:.92rem; color:var(--muted); }

/* ---------- CTA band ---------- */
.cta-band{ text-align:center; }
.cta-band h2{ font-size:clamp(1.6rem,3.4vw,2.6rem); margin-bottom:18px; }
.btn{
  display:inline-block; font-family:var(--display); font-weight:500;
  font-size:.92rem; letter-spacing:.04em;
  padding:15px 34px; border-radius:10px;
  color:var(--ink); background:linear-gradient(135deg,var(--mist),var(--cyan));
  box-shadow:var(--glow); transition:transform .25s, box-shadow .25s;
}
.btn:hover{ transform:translateY(-2px); box-shadow:0 0 34px rgba(86,190,217,.4); }
.btn.ghost{
  color:var(--cyan); background:transparent; border:1px solid var(--cyan-deep);
  box-shadow:none;
}
.btn.ghost:hover{ background:rgba(86,190,217,.08); }

/* ---------- generic prose pages (privacy / cookies / about / contact) ---------- */
.page-head{ padding:140px var(--gutter) 0; text-align:center; }
.page-head h1{ font-size:clamp(2rem,4vw,3rem); margin-top:14px; color:var(--text); }
.prose{ max-width:760px; margin:0 auto; }
.prose p{ color:var(--muted); margin-bottom:16px; }
.prose .stamp{ color:var(--faint); font-size:.85rem; margin-bottom:28px; }
.prose a{ color:var(--cyan); }

.contact-card{
  max-width:560px; margin:42px auto 0; text-align:center;
  padding:42px 30px; border-radius:var(--radius);
  background:linear-gradient(180deg,var(--ink-3),var(--ink-2));
  border:1px solid var(--line);
}
.contact-card .email{ font-family:var(--display); font-size:clamp(1.2rem,3vw,1.7rem); color:var(--cyan); word-break:break-all; display:block; margin:18px 0 26px; }

/* ---------- footer ---------- */
.site-footer{
  border-top:1px solid var(--line); padding:26px var(--gutter);
  text-align:center; color:var(--faint); font-size:.84rem;
}
.social-row{ display:flex; justify-content:center; gap:22px; margin-bottom:16px; }
.social-row a{ display:inline-flex; padding:6px; border-radius:8px; transition:transform .25s; }
.social-row svg{ width:22px; height:22px; fill:var(--muted); transition:fill .25s; }
.social-row a:hover{ transform:translateY(-2px); }
.social-row a:hover svg{ fill:var(--cyan); }
.site-footer a{ color:var(--muted); margin:0 12px; }
.site-footer a:hover{ color:var(--cyan); }
.site-footer .copy{ margin-top:6px; }

/* ---------- Nova chat widget ---------- */
.nova-fab{
  position:fixed; bottom:22px; right:22px; width:56px; height:56px; z-index:100;
  border:none; border-radius:50%; cursor:pointer;
  background:linear-gradient(135deg,var(--cyan-deep),var(--cyan));
  display:flex; align-items:center; justify-content:center;
  box-shadow:var(--glow); transition:transform .2s, box-shadow .2s;
}
.nova-fab:hover{ transform:scale(1.08); box-shadow:0 0 30px rgba(86,190,217,.5); }
.nova-fab svg{ width:25px; height:25px; fill:var(--ink); }

.nova{
  position:fixed; bottom:90px; right:22px; width:350px; height:460px; z-index:99;
  display:flex; flex-direction:column; overflow:hidden;
  background:var(--ink-2); border:1px solid var(--line); border-radius:14px;
  box-shadow:0 20px 60px rgba(0,0,0,.5);
  transform:scale(.9) translateY(14px); opacity:0; pointer-events:none;
  transform-origin:bottom right; transition:transform .25s, opacity .25s;
}
.nova.open{ transform:none; opacity:1; pointer-events:auto; }
.nova-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:13px 16px; border-bottom:1px solid var(--line);
  font-family:var(--display); font-size:.86rem; letter-spacing:.08em; color:var(--text);
}
.nova-head button{ background:none; border:none; color:var(--cyan); font-size:1.2rem; cursor:pointer; line-height:1; }
.nova-log{ flex:1; padding:14px; overflow-y:auto; display:flex; flex-direction:column; gap:9px; }
.msg{ padding:9px 12px; border-radius:10px; max-width:85%; font-size:.88rem; line-height:1.45; word-break:break-word; }
.msg.ai{ align-self:flex-start; background:var(--ink-3); border-left:2px solid var(--cyan-deep); }
.msg.me{ align-self:flex-end; background:var(--cyan); color:var(--ink); }
.nova-input{ display:flex; gap:8px; padding:12px; border-top:1px solid var(--line); }
.nova-input input{
  flex:1; min-width:0; background:transparent; border:1px solid var(--line);
  color:var(--text); padding:10px; border-radius:8px; font-size:16px; outline:none;
}
.nova-input input:focus{ border-color:var(--cyan); }
.nova-input button{
  padding:0 16px; border:none; border-radius:8px; cursor:pointer; min-height:42px;
  font-family:var(--display); font-size:.84rem; color:var(--ink);
  background:linear-gradient(135deg,var(--cyan-deep),var(--cyan));
}

/* ---------- responsive ---------- */
@media (max-width:820px){
  .nav-desktop{ display:none; }
  .nav-toggle{ display:flex; }
  .hero{ padding:110px var(--gutter) 80px; }
  .scroll-cue{ display:none; }
}
@media (max-width:480px){
  .nova{ width:calc(100vw - 24px); right:12px; left:12px; height:74vh; bottom:84px; transform-origin:bottom center; }
  .nova-fab{ bottom:16px; right:16px; }
}

/* ---------- accessibility ---------- */
:focus-visible{ outline:2px solid var(--cyan); outline-offset:3px; }
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *{ animation:none !important; transition:none !important; }
}
