/* Homepage hero: the copy beside an interactive passport (passport.js). */

.hero-inner.hero-split {
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 32px;
  align-items: center;
  text-align: left;
}
.hero-split .hero-sub { margin-left: 0; }
.hero-split .hero-logo-link { display: block; width: max-content; }
.hero-split h1 { font-size: clamp(2.1rem, 3.9vw, 3.1rem); }
.hero-split .hero-ctas { justify-content: flex-start; }

.hero-art { position: relative; }
.hero-art::before {
  content: ''; position: absolute; inset: 8% 4%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}
.vpp-stage {
  position: relative;
  width: 100%; max-width: 580px; margin: 0 auto;
  --hairline-stroke: 1.1;
  cursor: pointer;
}

@media (max-width: 900px) {
  .hero-inner.hero-split { grid-template-columns: 1fr; text-align: center; gap: 8px; }
  .hero-split .hero-sub { margin-left: auto; }
  .hero-split .hero-logo-link { margin-inline: auto; }
  .hero-split .hero-ctas { justify-content: center; }
  .vpp-stage { max-width: 420px; }
}

/* the passport's palette: navy cover, gold crest, paper pages */
.vpp-stage {
  --vpp-cover: #1c3461; --vpp-rim: #0e1d3a; --vpp-edge: #0a1630;
  --vpp-lining: #e4ecf8; --vpp-lining-line: #c7d5ea;
  --vpp-gold: #d99a1c; --vpp-gold-fill: #e9b33f;
  --vpp-paper: #fdfdfb; --vpp-pageside: #e8edf4; --vpp-pageline: #c4cfde; --vpp-ink: #9aaac1;
  --vpp-photo: #d9eefc; --vpp-photo-ink: #0ea5e9;
  --vpp-stamp: #10b981;
  --vpp-leaf-1: #fdf6e8; --vpp-leaf-2: #edf5ff; --vpp-leaf-3: #f4f0ff; --vpp-leaf-line: #d9dfe9;
  --vpp-rose: #e11d48; --vpp-violet: #7c3aed; --vpp-goldink: #c58a12;
  --vpp-shadow: rgba(15, 23, 42, .26);
}
[data-theme="dark"] .vpp-stage {
  --vpp-cover: #2b4f8f; --vpp-rim: #172f5c; --vpp-edge: #0b1a36;
  --vpp-lining: #d5e0f2; --vpp-lining-line: #aebfdb;
  --vpp-gold: #f2b84b; --vpp-gold-fill: #f5c35e;
  --vpp-paper: #eef3fa; --vpp-pageside: #b7c4d8; --vpp-pageline: #93a4bf; --vpp-ink: #7f91ad;
  --vpp-photo: #c3e3fa; --vpp-photo-ink: #0284c7;
  --vpp-shadow: rgba(0, 0, 0, .6);
  --vpp-leaf-1: #efe6d2; --vpp-leaf-2: #dde9f9; --vpp-leaf-3: #e6e0fa; --vpp-leaf-line: #b9c3d3;
}

.vpp-stage svg path { stroke: var(--vpp-edge); stroke-width: 1; fill: none; }
.vpp-stage .vpp-shadow { fill: var(--vpp-shadow); stroke: none; }
.vpp-stage .vpp-shadow-cover { transition: opacity .2s; }
.vpp-stage .vpp-rim { fill: var(--vpp-rim); }
.vpp-stage .vpp-cover { fill: var(--vpp-cover); }
.vpp-stage .vpp-cover.is-inside { stroke: var(--vpp-lining-line); }
.vpp-stage .vpp-lining-lines { stroke: var(--vpp-lining-line); stroke-width: .7; }
.vpp-stage .vpp-gold { stroke: var(--vpp-gold); stroke-width: 1.2; }
.vpp-stage .vpp-gold-fill { fill: var(--vpp-gold-fill); stroke: var(--vpp-gold); }
.vpp-stage .vpp-pageside { fill: var(--vpp-pageside); stroke: var(--vpp-pageline); }
.vpp-stage .vpp-pagelines { stroke: var(--vpp-pageline); stroke-width: .6; }
.vpp-stage .vpp-paper { fill: var(--vpp-paper); stroke: var(--vpp-pageline); }
.vpp-stage .vpp-photo { fill: var(--vpp-photo); stroke: var(--vpp-photo-ink); }
.vpp-stage .vpp-person { stroke: var(--vpp-photo-ink); stroke-width: 1.2; }
.vpp-stage .vpp-text { stroke: var(--vpp-ink); stroke-width: 1.3; }
.vpp-stage .vpp-mrz { stroke: var(--vpp-ink); stroke-width: .8; stroke-dasharray: 1.5 1.2; }

.vpp-stage .vpp-stamp { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(1.25); transition: opacity .25s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.vpp-stage .is-stamped .vpp-stamp { opacity: 1; transform: scale(1); }
.vpp-stage .vpp-stamp-ring { stroke: var(--vpp-stamp); stroke-width: 1.4; }
.vpp-stage .vpp-stamp-tick { stroke: var(--vpp-stamp); stroke-width: 2; }

/* the visa pages */
.vpp-stage .vpp-leaf-rim { fill: var(--vpp-pageside); stroke: var(--vpp-pageline); }
.vpp-stage .vpp-leaf { stroke: var(--vpp-pageline); }
.vpp-stage .vpp-leaf-lines { stroke: var(--vpp-leaf-line); stroke-width: .6; }
.vpp-stage .vpp-leaf-stamp { stroke-width: 1.3; opacity: .85; }
.vpp-stage .vpp-ink-rose { stroke: var(--vpp-rose); }
.vpp-stage .vpp-ink-violet { stroke: var(--vpp-violet); }
.vpp-stage .vpp-ink-gold { stroke: var(--vpp-goldink); stroke-dasharray: 2 1.4; }

/* a gold-white shine across the shut cover, every few seconds */
.vpp-stage .vpp-shine { transition: opacity .3s; }
.vpp-stage .vpp-shine-bar { animation: vpp-shine 5.5s cubic-bezier(.45, 0, .2, 1) infinite; }
.vpp-stage .is-open .vpp-shine { opacity: 0; }
@keyframes vpp-shine { 0%, 45% { transform: translateX(0); } 75%, 100% { transform: translateX(620px); } }

/* a slow float, with the shadow breathing under it */
.vpp-stage .vpp-float { animation: vpp-float 6s ease-in-out infinite; }
.vpp-stage .vpp-shade { animation: vpp-shade 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes vpp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes vpp-shade { 0%, 100% { opacity: 1; } 50% { opacity: .78; } }

.vpp-hint {
  margin: 4px 0 0; font-size: .8rem; font-weight: 600; color: var(--tx3);
  text-align: center; transition: opacity .4s;
}
.vpp-hint.is-gone { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .vpp-stage .vpp-stamp { transition: none; }
  .vpp-stage .vpp-shine-bar, .vpp-stage .vpp-float, .vpp-stage .vpp-shade { animation: none; }
}
