/* kalavera hero, No Queue. Kit file hero-scroll.css, tokenised (colours from tokens.css, @font-face lives in site.css). */

.hq { --hq-travel: 115vh; position: relative; height: calc(100vh + var(--hq-travel)); height: calc(100svh + var(--hq-travel));
      background: var(--paper); color: var(--ink); }
.hq__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--paper); }
.hq__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.hq__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right bottom; display: none; }
.hq:not(.is-ready) .hq__fallback { display: block; }
.hq:not(.is-ready) .hq__canvas { visibility: hidden; }

.hq__copy { position: absolute; z-index: 2; left: clamp(24px, 6.7vw, 120px); top: 50%; transform: translateY(-50%); width: min(54vw, 820px); }
.hq__eyebrow { font: 300 13px/1.2 'DM Sans', system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); opacity: .55; margin: 0 0 26px; }
.hq__title { font: 300 clamp(44px, 4.4vw, 80px)/1.04 'Outfit', system-ui, sans-serif; letter-spacing: -0.01em; margin: 0 0 30px; }
.hq__sub { font: 300 clamp(17px, 1.35vw, 20px)/1.55 'DM Sans', system-ui, sans-serif; opacity: .78; max-width: 30em; margin: 0 0 40px; }
.hq__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.hq__cta { font: 300 16px/1 'DM Sans', system-ui, sans-serif; color: var(--paper); background: var(--signal); padding: 18px 30px; text-decoration: none; }
.hq__cta:hover, .hq__cta:focus-visible { background: var(--ink); }
.hq__link { font: 300 16px/1 'DM Sans', system-ui, sans-serif; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--fog); padding-bottom: 4px; }
.hq__link:hover { border-color: var(--ink); }

@media (max-width: 719px), (max-aspect-ratio: 21/20) {
  /* Copy in normal flow at the top; the canvas fills only the space under it, so the
     pixel stack isn't stranded at the bottom of a full-viewport canvas. */
  .hq__pin { display: grid; grid-template-rows: auto 1fr; grid-template-columns: 100%; }
  .hq__copy { position: relative; top: auto; transform: none; left: auto; right: auto; width: auto;
              grid-row: 1; margin-top: clamp(96px, 14svh, 150px); padding: 0 24px 8px; }
  .hq__title { font-size: clamp(32px, 9vw, 60px); margin-bottom: 20px; }
  .hq__sub { font-size: 16px; margin-bottom: 28px; }
  .hq__eyebrow { margin-bottom: 18px; font-size: 12px; }
  .hq__canvas, .hq__fallback { position: relative; inset: auto; grid-row: 2; width: 100%; height: 100%; min-height: 0; }
  .hq__canvas { min-height: 200px; }
  .hq__fallback { object-fit: cover; object-position: left bottom; }
  html:not(.js) .hq, html:not(.js) .hq__pin { height: 100svh; max-height: 100svh; min-height: 100svh; }
}

/* reduced motion: no pin, no scrub; a single calm state is drawn once */
@media (prefers-reduced-motion: reduce) { .hq { height: auto; min-height: 100svh; } .hq__pin { position: relative; } }
.hq.is-reduced { height: auto; min-height: 100svh; }
.hq.is-reduced .hq__pin { position: relative; }

/* integration additions (not in the kit file) */
html:not(.js) .hq{height:auto;min-height:100vh;min-height:100svh}
html:not(.js) .hq__pin{position:relative;height:auto;min-height:100vh;min-height:100svh}
.hq__link{position:relative}
.hq__link::before{content:"";position:absolute;inset:-14px -8px}
.hq__cta{display:inline-block}
.hq__fallback-pic{display:contents}
