/* Vivid Haiti — landing page
   Layout: one black stage. The logo lives on a fixed layer and flows from a centered hero mark
   into a compact top mark as the sign-up form scrolls into place beneath it. */

:root {
  --vh-ink: #000000;                     /* page */
  --vh-cream: #F6EDCB;                   /* logo cream, the only accent */
  --vh-cream-2: rgba(246, 237, 203, .66);
  --vh-fg: #FFFFFF;
  --vh-fg-2: rgba(255, 255, 255, .64);
  --vh-fg-3: rgba(255, 255, 255, .38);
  --vh-line: rgba(246, 237, 203, .22);
  --vh-error: #FF8A7A;
  --vh-font: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --vh-ease: cubic-bezier(.22, 1, .36, 1);
  --vh-ease-io: cubic-bezier(.65, 0, .35, 1);
  --vh-logo-w: min(74vw, 420px);
  --vh-col: 432px;
  --vh-gutter: 60px;
  color-scheme: dark;
}

/* ---------- page shell ---------- */
.vh-body {
  margin: 0;
  background: var(--vh-ink);
  color: var(--vh-fg);
  font-family: var(--vh-font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  overflow-x: clip;
}
.vh-page { position: relative; min-height: 100vh; min-height: 100svh; background: var(--vh-ink); }
.vh-page *, .vh-page *::before, .vh-page *::after { box-sizing: border-box; }
.vh-page [hidden], .vh-embed [hidden] { display: none !important; }
.vh-probe { position: absolute; top: 0; left: 0; width: 1px; height: 0; padding-top: env(safe-area-inset-top, 0px); visibility: hidden; pointer-events: none; }

/* film grain, very faint */
.vh-grain {
  position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}

/* ---------- logo layer (fixed) ---------- */
.vh-logo-layer {
  position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100svh; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.vh-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 58% 40% at 50% 50%, rgba(246, 237, 203, .11), rgba(246, 237, 203, 0) 72%);
  animation: vh-breathe 7s ease-in-out infinite alternate;
}
.vh-logo { width: var(--vh-logo-w); will-change: transform; transform-origin: 50% 50%; }
.vh-logo-inner { position: relative; }
.vh-logo-svg { display: block; width: 100%; height: auto; overflow: visible; shape-rendering: geometricPrecision; }
.vh-l {
  fill: var(--vh-cream); fill-opacity: 1;
  stroke: var(--vh-cream); stroke-width: 2.2; stroke-opacity: 0;
  stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
.vh-shine { opacity: 0; transform: translateX(-640px); }

/* entrance: letters draw in, then fill, then a single highlight sweep */
.vh-anim .vh-logo-inner { animation: vh-settle 1s var(--vh-ease) both; }
.vh-anim .vh-l {
  animation: vh-draw .55s var(--vh-ease-io) both, vh-fill .5s ease-out both, vh-strokeout .3s ease both;
  animation-delay: calc(var(--i) * 40ms), calc(.25s + var(--i) * 40ms), calc(.65s + var(--i) * 40ms);
}
.vh-anim .vh-shine { animation: vh-sweep .7s cubic-bezier(.5, 0, .2, 1) .7s both; }
@keyframes vh-sweep { from { opacity: 1; transform: translateX(-640px); } 90% { opacity: 1; } to { opacity: 0; transform: translateX(640px); } }
@keyframes vh-settle { from { transform: scale(1.035); } to { transform: scale(1); } }
@keyframes vh-draw { from { stroke-dashoffset: 1; stroke-opacity: .9; } to { stroke-dashoffset: 0; stroke-opacity: .9; } }
@keyframes vh-fill { from { fill-opacity: 0; } to { fill-opacity: 1; } }
@keyframes vh-strokeout { from { stroke-opacity: .9; } to { stroke-opacity: 0; } }
@keyframes vh-breathe { from { transform: scale(1); } to { transform: scale(1.09); } }

/* scroll cue: hairline with a travelling dot; tappable */
.vh-cue {
  position: absolute; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  width: 44px; height: 64px; margin-left: -22px; pointer-events: auto; cursor: pointer;
  background: none; border: 0; padding: 0; -webkit-appearance: none; appearance: none;
}
.vh-cue-in { position: absolute; left: 50%; top: 10px; width: 1px; height: 44px; margin-left: -.5px; background: rgba(246, 237, 203, .16); opacity: 0; }
.vh-anim .vh-cue-in { animation: vh-fadein 1s ease 2.4s both; }
.vh-static .vh-cue-in { opacity: 1; }
.vh-cue-in span { position: absolute; left: -1px; top: 0; width: 3px; height: 3px; border-radius: 50%; background: var(--vh-cream); animation: vh-cue 2.4s var(--vh-ease-io) infinite; }
.vh-cue:focus-visible .vh-cue-in { outline: 1px solid var(--vh-cream); outline-offset: 10px; }
@keyframes vh-cue { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(41px); opacity: 0; } }
@keyframes vh-fadein { from { opacity: 0; } to { opacity: 1; } }

/* scrim under the compact mark, so content scrolling beneath it fades out */
.vh-scrim {
  position: fixed; top: 0; left: 0; right: 0; z-index: 4; pointer-events: none; opacity: 0;
  height: calc(env(safe-area-inset-top, 0px) + 104px);
  background: linear-gradient(to bottom, #000 0, #000 55%, rgba(0, 0, 0, 0) 100%);
}

/* ---------- flow ---------- */
.vh-hero { height: 100vh; height: 100svh; }
.vh-main { position: relative; z-index: 2; padding-block: 0 44px; will-change: transform, opacity; }
.vh-wrap {
  width: 100%; max-width: var(--vh-col); margin-inline: auto;
  padding-left: max(var(--vh-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--vh-gutter), env(safe-area-inset-right, 0px));
}
.vh-head { text-align: center; margin: 0 0 36px; }
.vh-title {
  margin: 0; color: var(--vh-fg); font-weight: 600;
  font-size: clamp(28px, 8vw, 42px); line-height: 1.06; letter-spacing: -.022em; text-wrap: balance;
}
.vh-title-en { display: block; }
.vh-title-ht {
  display: block; margin-top: 14px; color: var(--vh-cream);
  font-weight: 300; font-style: italic; font-size: clamp(17px, 4.6vw, 22px); line-height: 1.3; letter-spacing: 0;
}

/* ---------- form ---------- */
.vh-form { display: grid; gap: 26px; margin: 0; }
.vh-field { position: relative; }
.vh-label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin: 0 0 2px; font-size: 13px; font-weight: 500; letter-spacing: .01em; color: var(--vh-fg-2);
  transition: color .3s;
}
.vh-label-ht { font-weight: 400; font-style: italic; color: var(--vh-cream-2); text-align: right; }
.vh-input {
  display: block; width: 100%; min-height: 48px; margin: 0;
  -webkit-appearance: none; appearance: none; background: transparent;
  border: 0; border-bottom: 1px solid var(--vh-line); border-radius: 0;
  padding: 12px 0; font: inherit; font-size: 17px; line-height: 1.4; color: var(--vh-fg);
  caret-color: var(--vh-cream); outline: none; transition: border-color .3s;
}
.vh-input::placeholder { color: var(--vh-fg-3); opacity: 1; }
.vh-input:-webkit-autofill, .vh-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #000 inset; -webkit-text-fill-color: #fff; caret-color: var(--vh-cream); transition: background-color 9999s;
}
.vh-input::-webkit-outer-spin-button, .vh-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.vh-input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.vh-control { position: relative; }
.vh-control::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--vh-cream);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--vh-ease);
  pointer-events: none;
}
.vh-field:focus-within .vh-control::after { transform: scaleX(1); }
.vh-field:focus-within .vh-label { color: var(--vh-fg); }
.vh-field.is-error .vh-input { border-bottom-color: var(--vh-error); }
.vh-msg { display: none; margin: 8px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--vh-error); }
.vh-field.is-error .vh-msg { display: block; }
.vh-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.vh-submit {
  display: block; width: 100%; min-height: 56px; margin: 8px 0 0;
  border: 0; border-radius: 999px; background: var(--vh-cream); color: #000;
  font: inherit; font-size: 16px; font-weight: 600; letter-spacing: -.01em; cursor: pointer;
  transition: background .25s, transform .25s var(--vh-ease), opacity .3s; touch-action: manipulation;
}
.vh-submit:hover { background: #fff; }
.vh-submit:active { transform: scale(.985); }
.vh-submit:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.vh-submit[disabled] { opacity: .55; cursor: default; }
.vh-submit .vh-btn-busy { display: none; }
.vh-form.is-busy .vh-submit .vh-btn-idle { display: none; }
.vh-form.is-busy .vh-submit .vh-btn-busy { display: inline; animation: vh-pulse 1.1s ease-in-out infinite; }
@keyframes vh-pulse { 50% { opacity: .55; } }
.vh-form-error { display: none; margin: 0; text-align: center; font-size: 13px; line-height: 1.45; color: var(--vh-error); }
.vh-form-error.is-visible { display: block; }
.vh-fine { margin: 0; text-align: center; font-size: 12px; line-height: 1.6; color: var(--vh-fg-3); }
.vh-fine span { display: block; }

/* optional spam protection widgets */
.vh-captcha { display: none; }
.vh-captcha.is-active { display: block; min-height: 0; }
.vh-captcha iframe { max-width: 100%; }
.grecaptcha-badge { visibility: hidden; }
.vh-recaptcha-note { margin: 0; text-align: center; font-size: 11px; line-height: 1.5; color: var(--vh-fg-3); }
.vh-recaptcha-note a { color: inherit; }

/* leaving / arriving */
.vh-form, .vh-success { transition: opacity .45s var(--vh-ease), transform .45s var(--vh-ease); }
.vh-form.is-leaving { opacity: 0; transform: translate3d(0, -10px, 0); pointer-events: none; }
.vh-success { text-align: center; padding: 8px 0 18px; opacity: 0; transform: translate3d(0, 14px, 0); }
.vh-success.is-visible { opacity: 1; transform: none; }
.vh-check { display: block; width: 64px; height: 64px; margin: 0 auto 22px; }
.vh-check circle, .vh-check path { fill: none; stroke: var(--vh-cream); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.vh-success.is-visible .vh-check circle { animation: vh-draw-full .9s var(--vh-ease-io) .1s forwards; }
.vh-success.is-visible .vh-check path { animation: vh-draw-full .55s var(--vh-ease) .75s forwards; }
@keyframes vh-draw-full { to { stroke-dashoffset: 0; } }
.vh-success-title { margin: 0; font-size: clamp(26px, 7vw, 36px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; color: var(--vh-fg); }
.vh-success-title .vh-ht { display: block; margin-top: 10px; font-size: clamp(17px, 4.6vw, 22px); font-weight: 300; font-style: italic; letter-spacing: 0; color: var(--vh-cream); }
.vh-success-text { margin: 20px 0 0; font-size: 14px; line-height: 1.6; color: var(--vh-fg-2); }
.vh-success-text span { display: block; }

/* ---------- footer ---------- */
.vh-footer {
  position: relative; z-index: 2; text-align: center;
  padding: 24px max(22px, env(safe-area-inset-left, 0px)) calc(26px + env(safe-area-inset-bottom, 0px)) max(22px, env(safe-area-inset-right, 0px));
  font-size: 11px; letter-spacing: .02em; line-height: 1.7; color: var(--vh-fg-3);
}
.vh-footer p { margin: 0; }
.vh-powered { font-size: 10px; opacity: .8; }
.vh-footer a { color: inherit; text-decoration: none; transition: color .3s; }
.vh-footer a:hover, .vh-footer a:focus-visible { color: var(--vh-cream); outline: none; }

/* ---------- wider screens ---------- */
@media (min-width: 720px) {
  :root { --vh-gutter: 22px; }
  .vh-form { gap: 30px; }
  .vh-head { margin-bottom: 52px; }
}

/* ---------- phones: fewer layers during the scroll animation ---------- */
@media (hover: none) and (pointer: coarse) {
  .vh-shine, .vh-grain { display: none !important; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .vh-anim .vh-logo-inner, .vh-anim .vh-l, .vh-anim .vh-cue-in, .vh-cue-in span, .vh-glow,
  .vh-success.is-visible .vh-check circle, .vh-success.is-visible .vh-check path { animation: none !important; }
  .vh-l { fill-opacity: 1; stroke-opacity: 0; }
  .vh-shine { display: none !important; }
  .vh-cue-in { opacity: 1; }
  .vh-cue-in span { top: 20px; }
  .vh-check circle, .vh-check path { stroke-dashoffset: 0; }
  .vh-form, .vh-success, .vh-field::after, .vh-submit { transition: none; }
}
