/* Home hero, owner-chosen reference style (black base, liquid-metal pills, serif italic accent).
   Own photo and brand only. Scoped to .page-home. */
html, body.page-home { background: #000; }
.page-home main { background: var(--bg); }

.page-home { --hv-muted: #9a9a9a; --hv-line: rgba(255, 255, 255, .16); --hv-y: #ffcb05;
  --hv-font: "Inter", "Roboto Flex", system-ui, sans-serif; --hv-serif: "Unbounded", "Inter", sans-serif; --hv-display: "Unbounded", "Inter", system-ui, sans-serif; }

/* Header: 3-column grid over the hero */
.hv-hdr { position: fixed; inset: 0 0 auto 0; z-index: 40; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  height: 72px; padding: 0 clamp(16px, 3vw, 40px); font-family: var(--hv-font); color: #fff;
  transition: background-color 240ms ease, border-color 240ms ease, backdrop-filter 240ms ease; border-bottom: 1px solid transparent; }
.hv-hdr.is-solid { background: rgba(0, 0, 0, .78); border-bottom-color: var(--hv-line);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.hv-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; justify-self: start;
  font-weight: 600; letter-spacing: -0.02em; font-size: 1.02rem; }
.hv-logo img { width: 36px; height: auto; }
.hv-logo b { color: var(--hv-y); font-weight: 600; }
.hv-logo:hover { color: #fff; }
.hv-nav { display: flex; gap: 8px; }
.hv-pill { position: relative; overflow: hidden; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 7px;
  border: 1px solid rgba(198, 198, 198, .55); background: linear-gradient(105deg, #050505, #2a2a2a 48%, #4a4a4a);
  color: #f2f2f2; text-decoration: none; font-size: .9rem; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); transition: border-color 200ms ease, transform 160ms var(--ease-out); }
.hv-pill::before { content: ""; position: absolute; inset: -1px auto -1px -60%; width: 50%; transform: skewX(-20deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent); transition: left 600ms var(--ease-out); left: -60%; }
.hv-pill:hover { color: #fff; border-color: rgba(230, 230, 230, .85); }
.hv-pill:hover::before { left: 120%; }
.hv-pill:active { transform: scale(0.97); }
.hv-menu-only { display: none; }
.hv-cta { justify-self: end; display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 7px; background: #fff; color: #0a0a0a;
  text-decoration: none; font-weight: 600; font-size: .9rem; letter-spacing: -0.01em; transition: transform 160ms var(--ease-out), box-shadow 200ms ease; }
.hv-cta:hover { color: #0a0a0a; box-shadow: 0 0 0 4px rgba(255, 203, 5, .35); }
.hv-cta:active { transform: scale(0.97); }
.hv-burger { display: none; justify-self: end; width: 44px; height: 44px; border-radius: 7px; border: 1px solid rgba(198, 198, 198, .55);
  background: linear-gradient(105deg, #050505, #2a2a2a 48%, #4a4a4a); cursor: pointer; position: relative; }
.hv-burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: #fff; transition: transform 220ms var(--ease-out), top 220ms var(--ease-out); }
.hv-burger span:first-child { top: 17px; }
.hv-burger span:last-child { top: 25px; }
.menu-open .hv-burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .hv-burger span:last-child { top: 21px; transform: rotate(-45deg); }
.hv-hdr :focus-visible { outline: 2px solid var(--hv-y); outline-offset: 2px; }

@media (max-width: 900px) {
  .hv-hdr { grid-template-columns: 1fr auto; }
  .hv-cta { display: none; }
  .hv-burger { display: block; z-index: 2; }
  .hv-logo { position: relative; z-index: 2; }
  .hv-nav { position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; align-items: stretch; gap: 10px;
    padding: 96px 24px 40px; background: rgba(0, 0, 0, .72); backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2);
    opacity: 0; visibility: hidden; transition: opacity 240ms var(--ease-out), visibility 0s linear 240ms; }
  .hv-nav .hv-pill { height: 54px; font-size: 1.1rem; justify-content: center; translate: 0 8px; transition: translate 300ms var(--ease-out), border-color 200ms ease; }
  .hv-menu-only { display: inline-flex; }
  .menu-open .hv-nav { opacity: 1; visibility: visible; transition-delay: 0s; }
  .menu-open .hv-nav .hv-pill { translate: 0 0; }
}

/* Hero */
.hero-v { position: relative; isolation: isolate; min-height: 100vh; min-height: 100dvh; display: flex; align-items: flex-end; justify-content: center;
  background: #000; color: #fff; overflow: hidden; font-family: var(--hv-font); }
.hv-bg { position: absolute; inset: 0; margin: 0; z-index: -2; }
.hv-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 45%; transform-origin: 60% 50%; }
.hero-v::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .25) 30%, rgba(0, 0, 0, .55) 58%, #000 100%),
    radial-gradient(120% 80% at 50% 100%, rgba(0, 0, 0, .65), transparent 70%); }
.hv-content { width: 100%; max-width: 1180px; padding: 120px clamp(16px, 3vw, 40px) 28px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hv-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 5px; font-size: .74rem; font-weight: 600; letter-spacing: .08em;
  background: linear-gradient(135deg, #7d7d7d, #2a2a2a 45%, #0a0a0a); border: 1px solid var(--hv-line); color: #f0f0f0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
.hv-badge .ic { width: 14px; height: 14px; color: var(--hv-y); }
.hv-title { margin: 22px 0 18px; font-weight: 500; letter-spacing: -0.045em; line-height: 1.02; font-size: clamp(2.6rem, 1rem + 6.4vw, 6.6rem); }
.hv-mask { display: block; overflow: hidden; padding-bottom: .06em; }
.hv-line { display: block; }
.hv-title em { font-family: var(--hv-serif); font-style: italic; font-weight: 400; color: var(--hv-y); letter-spacing: -0.01em; padding-right: .04em; }
.hv-mask + .hv-mask .hv-line { font-size: .5em; letter-spacing: -0.035em; color: #ededed; line-height: 1.15; }
.hv-lede { max-width: 470px; margin: 0 auto 28px; color: var(--hv-muted); font-size: 1.02rem; line-height: 1.6; }
.hv-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: clamp(36px, 7vh, 72px); }
.hv-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 24px; border-radius: 7px;
  font-weight: 600; font-size: .98rem; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  transition: transform 160ms var(--ease-out), box-shadow 240ms ease, border-color 200ms ease; }
.hv-btn:active { transform: scale(0.97); }
.hv-solid { color: #0b0b0b; background: linear-gradient(180deg, #fff, #e7e7e7 55%, #cfcfcf); border: 1px solid #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 8px 24px -10px rgba(255, 255, 255, .35); }
.hv-solid::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; transform: skewX(-20deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent); transition: left 700ms var(--ease-out); }
.hv-solid:hover { color: #0b0b0b; box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 0 0 4px rgba(255, 203, 5, .28), 0 12px 36px -8px rgba(255, 255, 255, .45); }
.hv-solid:hover::before { left: 120%; }
.hv-glass { color: #fff; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); }
.hv-glass:hover { color: #fff; border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .12); }
@media (prefers-reduced-transparency: reduce) { .hv-glass { background: #1a1a1a; backdrop-filter: none; } }
.hv-stats { list-style: none; margin: 0; padding: 18px 0 0; width: 100%; display: flex; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--hv-line); color: #d8d8d8; font-size: 13.5px; }
.hv-stats li { display: inline-flex; align-items: center; gap: 8px; }
.hv-stats .ic { width: 16px; height: 16px; color: var(--hv-y); }

@media (max-width: 767px) {
  .hv-content { padding-bottom: calc(64px + 20px + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  .hv-actions { width: 100%; flex-direction: column; }
  .hv-btn { width: 100%; }
  .hv-stats { flex-direction: column; align-items: center; gap: 8px; }
  .hv-badge { font-size: .66rem; letter-spacing: .05em; }
}

/* Motion: slow pan on the photo + one entrance sequence (~1.5s). */
@media (prefers-reduced-motion: no-preference) {
  .hv-bg img { animation: hv-pan 20s ease-in-out infinite alternate; }
  @keyframes hv-pan { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.06) translate3d(-1.5%, -1%, 0); } }

  .anim:not(.anim-done) .appear { animation-duration: 700ms; animation-timing-function: var(--ease-out); animation-fill-mode: both; }
  .anim:not(.anim-done) .a-logo, .anim:not(.anim-done) .a-nav, .anim:not(.anim-done) .a-cta { animation-name: hv-scale; }
  .anim:not(.anim-done) .a-nav { animation-delay: 80ms; }
  .anim:not(.anim-done) .a-cta { animation-delay: 160ms; }
  .anim:not(.anim-done) .a-badge { animation-name: hv-pop; animation-delay: 200ms; animation-duration: 600ms; }
  .anim:not(.anim-done) .a-l1 { animation-name: hv-rise; animation-delay: 0ms; }
  .anim:not(.anim-done) .a-l2 { animation-name: hv-rise; animation-delay: 140ms; }
  .anim:not(.anim-done) .a-lede { animation-name: hv-soft; animation-delay: 240ms; }
  .anim:not(.anim-done) .a-b1 { animation-name: hv-left; animation-delay: 320ms; }
  .anim:not(.anim-done) .a-b2 { animation-name: hv-right; animation-delay: 360ms; }
  .anim:not(.anim-done) .a-stats { animation-name: hv-up; animation-delay: 440ms; }
  @keyframes hv-scale { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
  @keyframes hv-pop { 0% { opacity: 0; transform: scale(.85); } 70% { opacity: 1; transform: scale(1.03); } 100% { opacity: 1; transform: none; } }
  @keyframes hv-rise { from { transform: translateY(32%); } to { transform: none; } }
  @keyframes hv-soft { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: none; } }
  @keyframes hv-left { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
  @keyframes hv-right { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
  @keyframes hv-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
.appear { opacity: 1; }
.hv-logo img { width: auto; height: 34px; }
@media (max-width: 400px) { .hv-logo img { height: 28px; } }
.hv-mark { width: clamp(64px, 6vw, 88px); height: auto; margin-bottom: 18px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .5)); }
@media (prefers-reduced-motion: no-preference) {
  .anim:not(.anim-done) .a-mark { animation-name: hv-pop; animation-delay: 120ms; animation-duration: 650ms; }
}
/* Header on inner pages: sticky, solid black */
.hv-hdr.hv-sticky { position: sticky; }
.hv-pill[aria-current="page"] { border-color: var(--hv-y); color: #fff; }

/* 9/10 Captain: more modern type, no serif italic */
.hv-title { font-family: var(--hv-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1; text-transform: uppercase; }
.hv-title em { font-family: var(--hv-display); font-style: normal; font-weight: 800; color: var(--hv-y); letter-spacing: -0.03em; }

/* 9/10 fix: a backdrop-filter on the header makes it the containing block for the
   position:fixed mobile menu, so the menu was clipped to the 72px header on scrolled/inner
   pages ("burger does nothing"). Drop the header's own filter while the menu is open. */
@media (max-width: 900px) {
  .hv-hdr.menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-bottom-color: transparent; }
}
.hv-logo { min-height: 44px; }
