/*
Theme Name: gvaranto
Version: 1.0.0
*/

:root {
  --bg: #0f1418;
  --bg-deep: #080b0e;
  --panel: #1b2228;
  --accent: #d8480c;
  --accent-hi: #ff7a33;
  --text: #f5f7f8;
  --text-2: #8d979d;
  --line: #59636a;
  --disp: "Helvetica Neue Condensed Bold", "HelveticaNeue-CondensedBold", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body.gv-home {
  height: 100dvh;
  overflow: hidden;
}

.gv-stage {
  position: relative;
  height: 100dvh;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 120% at 50% 40%, var(--bg) 0%, var(--bg-deep) 100%);
  isolation: isolate;
}

.gv-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform, opacity;
  pointer-events: none;
  z-index: -1;
}

.gv-glow-a {
  width: 56vmin;
  height: 56vmin;
  background: radial-gradient(circle, rgba(216, 72, 12, 0.55) 0%, rgba(216, 72, 12, 0) 70%);
  animation: gv-drift-a 16s ease-in-out infinite alternate;
}

.gv-glow-b {
  width: 42vmin;
  height: 42vmin;
  background: radial-gradient(circle, rgba(255, 122, 51, 0.35) 0%, rgba(255, 122, 51, 0) 70%);
  animation: gv-drift-b 22s ease-in-out infinite alternate;
}

@keyframes gv-drift-a {
  from { transform: translate(-12%, -6%) scale(1); opacity: 0.85; }
  to   { transform: translate(10%, 8%) scale(1.18); opacity: 1; }
}

@keyframes gv-drift-b {
  from { transform: translate(14%, 10%) scale(1.1); opacity: 0.7; }
  to   { transform: translate(-10%, -12%) scale(0.92); opacity: 1; }
}

.gv-logo {
  position: relative;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 18px 60px rgba(216, 72, 12, 0.4));
}

.gv-logo img {
  max-width: min(52vw, 420px);
  max-height: 38vh;
  width: auto;
  height: auto;
}

.gv-wordmark {
  font-family: var(--disp);
  font-weight: 700;
  font-stretch: condensed;
  font-size: clamp(3.2rem, 11vw, 6rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
  user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  .gv-glow-a, .gv-glow-b { animation: none; }
}

body.gv-film {
  min-height: 100dvh;
  background: radial-gradient(140% 100% at 70% 0%, var(--bg) 0%, var(--bg-deep) 100%);
}

.gv-film-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 28px clamp(20px, 4vw, 48px);
}

.gv-film-top a {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s ease-out;
}

.gv-film-top a:hover,
.gv-film-top a:focus-visible {
  opacity: 1;
}

.gv-film-wrap {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 2.2fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding: 110px clamp(20px, 4vw, 48px) 110px;
  max-width: 1560px;
  margin: 0 auto;
}

.gv-film-aside h1 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.gv-film-desc {
  margin-top: 28px;
  color: var(--text-2);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 42ch;
}

.gv-film-desc:empty { display: none; }

.gv-film-main { min-width: 0; }

.gv-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-deep);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.gv-player video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}

.gv-player-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  text-align: center;
  background:
    radial-gradient(60% 80% at 50% 110%, rgba(216, 72, 12, 0.18) 0%, rgba(216, 72, 12, 0) 70%),
    var(--bg-deep);
}

.gv-player-empty strong {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.gv-player-empty span {
  color: var(--text-2);
  font-size: 0.95rem;
}

.gv-download {
  position: fixed;
  right: clamp(20px, 4vw, 48px);
  bottom: max(28px, env(safe-area-inset-bottom, 0px) + 20px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(216, 72, 12, 0.35), 0 4px 10px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease-out, transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.gv-download:hover,
.gv-download:focus-visible {
  background: var(--accent-hi);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(255, 122, 51, 0.4), 0 6px 14px rgba(0, 0, 0, 0.35);
}

.gv-download svg {
  width: 18px;
  height: 18px;
  flex: none;
}

a:focus-visible,
.gv-download:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .gv-film-wrap {
    grid-template-columns: 1fr;
    align-items: start;
    align-content: start;
    gap: 28px;
    padding: 96px 20px 40px;
  }

  .gv-film-aside { order: 1; }
  .gv-film-main { order: 2; }

  .gv-film-desc { margin-top: 16px; }

  .gv-download {
    position: static;
    margin-top: 20px;
    justify-content: center;
    width: 100%;
  }
}
