/* RAISE home splash — full-bleed vineyard hero, wordmark, two glass paths.
   Dark, Jost + Inter, gold accent. (Background image resolved by
   AssetMapper from the relative url below.) */

:root {
  --hs-ink: #ffffff;
  --hs-gold: #F5B342;
}

.hs-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  font-family: Inter, system-ui, sans-serif;
  color: var(--hs-ink);
  /* Dark base shown until the clip loads, and under reduced motion. */
  background-color: #080910;
}

/* Full-bleed looping clip. No filter/mask here or on an ancestor
   (breaks Firefox playback); the scrim below does the darkening. */
.hs-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.hs-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 9, 16, .35) 0%, rgba(8, 9, 16, .15) 40%, rgba(8, 9, 16, .55) 100%);
}
/* Header and hero body sit above the video + scrim. */
/* Header above main so its dropdown menu isn't intercepted by main's
   click area (both sit over the video + scrim). */
.hs-main { position: relative; z-index: 2; }
.hs-head { position: relative; z-index: 3; }

/* ── Header ──────────────────────────────────────────────────────── */
.hs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px clamp(20px, 3.5vw, 52px);
}

.hs-wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.hs-wordmark__logo {
  height: 30px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, .45));
}

/* Ambient-sound toggle + quick-links menu — the exact control from the old
   landing. Glass pill, equalizer bars that bounce while playing; hovering
   (or focusing) the toggle drops the menu, bridged across the gap so the
   hover never falls through. Tokens inlined from the old landing. */
.hs-sound {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(12, 11, 9, 0.42);
  border: 1px solid rgba(250, 250, 249, 0.16);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  color: #FAFAF9;
  cursor: pointer;
  transition: transform .2s cubic-bezier(0.22, 1, 0.36, 1), background .2s;
}
.hs-sound:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.16); }
.hs-sound:focus-visible { outline: 2px solid var(--hs-gold); outline-offset: 3px; }

.hs-soundwrap { position: relative; display: inline-flex; }
.hs-menu-pop {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  transform: translateY(-6px);
  min-width: 172px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px;
  background: rgba(12, 11, 9, 0.42);
  border: 1px solid rgba(250, 250, 249, 0.16);
  border-radius: 18px;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, transform .24s cubic-bezier(0.22, 1, 0.36, 1), visibility .22s;
  z-index: 40;
}
/* Transparent bridge across the 12px gap so hover doesn't drop. */
.hs-menu-pop::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.hs-soundwrap:hover .hs-menu-pop,
.hs-soundwrap:focus-within .hs-menu-pop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.hs-menu-pop__item {
  display: block;
  padding: 9px 15px;
  border-radius: 999px;
  font-family: Jost, system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: #FAFAF9;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.hs-menu-pop__item:hover { background: #f9af0e; color: #1a1608; }
.hs-sound__bars { display: inline-flex; align-items: center; gap: 2.5px; height: 16px; }
.hs-sound__bars i { width: 3px; height: 4px; border-radius: 2px; background: currentColor; transition: height .2s; }
.hs-sound.is-playing .hs-sound__bars i { animation: hs-eq 900ms ease-in-out infinite; }
.hs-sound.is-playing .hs-sound__bars i:nth-child(1) { animation-delay: -200ms; }
.hs-sound.is-playing .hs-sound__bars i:nth-child(2) { animation-delay: -520ms; }
.hs-sound.is-playing .hs-sound__bars i:nth-child(3) { animation-delay: -80ms; }
.hs-sound.is-playing .hs-sound__bars i:nth-child(4) { animation-delay: -360ms; }
@keyframes hs-eq { 0%, 100% { height: 4px; } 50% { height: 16px; } }

/* ── Hero body ───────────────────────────────────────────────────── */
.hs-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 96px;
  text-align: center;
}

/* ── CI wordmark (the real logo path, not a typeface) ────────────── */
/* One shared path (#rz-mark) cropped into five per-letter views so each
   glyph keeps its own entrance. Ported from the original landing. */
.hs-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.hs-word {
  margin: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-size: clamp(3.2rem, 11vw, 7.5rem);
  line-height: 1;
  letter-spacing: 0;
  color: var(--hs-ink);
}
.hs-char svg {
  display: block;
  height: 0.72em;
  width: auto;
  fill: currentColor;
  filter: drop-shadow(0 4px 30px rgba(0, 0, 0, .5));
}
/* Wordmark composes itself letter-by-letter (blur → focus). */
.hs-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(32px);
  filter: blur(8px);
  animation: hs-letter-rise 820ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: opacity, transform, filter;
}
.hs-char:nth-child(1) { animation-delay:  700ms; }
.hs-char:nth-child(2) { animation-delay:  860ms; }
.hs-char:nth-child(3) { animation-delay: 1020ms; }
.hs-char:nth-child(4) { animation-delay: 1180ms; }
.hs-char:nth-child(5) { animation-delay: 1340ms; }
@keyframes hs-letter-rise {
  from { opacity: 0; transform: translateY(28px); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ── Tagline, typed in like an AI chat ───────────────────────────── */
.hs-tag {
  margin: clamp(16px, 2.4vh, 26px) 0 0;
  font-family: Jost, sans-serif;
  font-weight: 500;
  font-size: clamp(14px, 1.7vw, 22px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #f4f1ec;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .65), 0 2px 18px rgba(0, 0, 0, .45);
  /* Rises as one block once the wordmark is composed. */
  opacity: 0;
  animation: hs-rise-tag 720ms cubic-bezier(0.22, 1, 0.36, 1) 2300ms forwards;
}
.hs-tag-type { white-space: pre; }
.hs-now { font: inherit; color: inherit; letter-spacing: inherit; }
.hs-caret {
  display: inline-block;
  width: 0.08em;
  min-width: 2px;
  height: 1.05em;
  margin-left: 0.12em;
  vertical-align: -0.12em;
  background: var(--hs-gold);
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(245, 179, 66, .5);
  animation: hs-blink 1s steps(1) infinite;
}
.hs-tag.is-typing .hs-caret { animation: none; opacity: 1; }
@keyframes hs-blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
@keyframes hs-rise-tag {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hs-rise-soft {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hs-kicker {
  margin: 64px 0 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #e6e2dc;
  opacity: 0;
  animation: hs-rise-soft 640ms cubic-bezier(0.22, 1, 0.36, 1) 3000ms forwards;
}

/* ── Path choices ────────────────────────────────────────────────── */
.hs-paths {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 760px;
  opacity: 0;
  animation: hs-rise-soft 680ms cubic-bezier(0.22, 1, 0.36, 1) 3300ms forwards;
}

.hs-choice {
  flex: 1 1 300px;
  max-width: 360px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 22px 22px 24px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(14, 13, 18, .55);
  text-decoration: none;
  color: var(--hs-ink);
  text-align: left;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.hs-choice:hover {
  transform: translateY(-3px);
  background-color: rgba(20, 18, 24, .72);
  border-color: rgba(245, 179, 66, .7);
}
.hs-choice:focus-visible { outline: 2px solid var(--hs-gold); outline-offset: 4px; }

.hs-choice__ico {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  color: #141218;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hs-choice__body { flex-grow: 1; display: flex; flex-direction: column; gap: 4px; }
.hs-choice__title { font-family: Jost, sans-serif; font-size: 24px; font-weight: 500; letter-spacing: 0.02em; }
.hs-choice__sub { font-size: 14px; line-height: 1.4; color: #dcd8d2; }
.hs-choice__arrow { flex-shrink: 0; color: var(--hs-gold); }

@media (max-width: 520px) {
  .hs-head { padding: 22px; }
  .hs-kicker { margin-top: 44px; }
}

/* Honour reduced motion unless a demo forces it on (html[data-force-motion]):
   everything lands composed, the caret holds steady, no typing. */
@media (prefers-reduced-motion: reduce) {
  html:not([data-force-motion]) .hs-char,
  html:not([data-force-motion]) .hs-tag,
  html:not([data-force-motion]) .hs-kicker,
  html:not([data-force-motion]) .hs-paths {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }
  html:not([data-force-motion]) .hs-caret { animation: none; opacity: 1; }
  /* Hold on the still hero rather than playing the clip. */
  html:not([data-force-motion]) .hs-video { display: none; }
  html:not([data-force-motion]) .hs-sound .hs-sound__bars i { animation: none; }
}
