/* ============================================================
   HOMEPAGE HERO "PRESS PROOF" (hero-lab, 2026-09-24)
   The Separation DNA made literal: the headline prints as color
   separations that lock into registration, the second line floods
   with ink behind a squeegee, real pulled work is fanned out like
   proofs on the sheet, and the stat rail becomes a press color bar.
   Rest state is always the finished state. Entrance motion only runs
   while html.hx-armed is set (head script); an inline timer always
   removes it, so a frozen timeline can never hide the headline.
   ============================================================ */

.hx {
  --nav-h: 76px;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  padding: 0;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.hx .hero-bg img {
  filter: grayscale(0.15) contrast(1.18) brightness(0.78) saturate(1.05);
  object-position: 38% 45%;
  transform: scale(1.06);
  transform-origin: 60% 50%;
}
html.js .hx .hero-bg img {
  animation: hxPush 24s ease-in-out infinite alternate;
}
@keyframes hxPush {
  to {
    transform: scale(1.14) translate3d(-1.2%, -0.6%, 0);
  }
}
.hx .hero-bg::after {
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.94) 0%,
      rgba(0, 0, 0, 0.8) 38%,
      rgba(0, 0, 0, 0.4) 70%,
      rgba(0, 0, 0, 0.6) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0) 30%,
      rgba(0, 0, 0, 0) 62%,
      rgba(0, 0, 0, 0.92) 100%
    );
}
/* halftone screen over the photo, heavier toward the right like a proof under a loupe */
.hx-dots {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(
    circle,
    rgba(150, 255, 0, 0.3) 0.9px,
    transparent 1.5px
  );
  background-size: 8px 8px;
  -webkit-mask-image: linear-gradient(
    100deg,
    transparent 38%,
    rgba(0, 0, 0, 0.9) 78%,
    #000 100%
  );
  mask-image: linear-gradient(
    100deg,
    transparent 38%,
    rgba(0, 0, 0, 0.9) 78%,
    #000 100%
  );
  opacity: 0.5;
  animation: hxDrift 70s linear infinite;
}
@keyframes hxDrift {
  to {
    background-position: 160px 80px;
  }
}
/* press lamp: a soft pool of light behind the proofs */
.hx-lamp {
  position: absolute;
  z-index: 1;
  right: -4%;
  top: 6%;
  width: 58%;
  height: 86%;
  pointer-events: none;
  background: radial-gradient(
    closest-side,
    rgba(150, 255, 0, 0.1),
    rgba(150, 255, 0, 0) 70%
  );
}

.hx-grid {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: clamp(28px, 3.4vw, 56px);
  align-items: center;
  padding-block: min(clamp(40px, 6vw, 84px), 7svh)
    min(clamp(32px, 4vw, 56px), 5svh);
}
.hx .hero-copy {
  max-width: none;
  padding-bottom: 0;
}

/* eyebrow with a registration target */
.hx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: min(20px, 2.4svh);
}
.hx-target {
  --s: 16px;
  position: relative;
  width: var(--s);
  height: var(--s);
  flex: 0 0 var(--s);
  border: 1.5px solid var(--volt);
  border-radius: 50%;
}
.hx-target::before,
.hx-target::after {
  content: "";
  position: absolute;
  background: var(--volt);
}
.hx-target::before {
  left: 50%;
  top: -5px;
  bottom: -5px;
  width: 1.5px;
  transform: translateX(-50%);
}
.hx-target::after {
  top: 50%;
  left: -5px;
  right: -5px;
  height: 1.5px;
  transform: translateY(-50%);
}

/* ---------- the headline: white key plate + four separations ---------- */
.hx-h1 {
  position: relative;
  font-size: min(clamp(34px, 11.6vw, 96px), 6.3vw, 11.5svh);
  line-height: 0.92;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.hx .hx-h1 em {
  font-style: normal;
  color: var(--volt);
}
/* specificity beats the old `.hero h1 span { color: volt }` rule */
.hx .hx-h1 .hx-key {
  position: relative;
  z-index: 2;
  display: block;
  color: var(--paper);
}
.hx .hx-h1 .hx-pl {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  color: var(--c);
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
}
.hx .hx-h1 .hx-pl em {
  color: var(--c);
}
/* the lime plate keeps a hair of misregistration: the one deliberate print tell */
.hx .hx-h1 .hx-pl--1 {
  opacity: 0.5;
  transform: translate3d(0.028em, 0.022em, 0);
}
.hx .hx-h1 .hx-pl--1 em {
  color: transparent;
}

/* ---------- method strip ---------- */
.hx-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin: min(22px, 2.6svh) 0 0;
  font-family: "Staatliches", sans-serif;
  font-size: min(clamp(15px, 1.35vw, 19px), 2.4svh);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7f8b85;
}
.hx-methods span {
  position: relative;
  display: inline-flex;
  align-items: center;
  transition: color 0.35s var(--snap);
}
.hx-methods span + span::before {
  content: "";
  width: 4px;
  height: 4px;
  margin: 0 12px;
  background: #3a4a52;
  display: inline-block;
}
.hx-methods span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  background: var(--c);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--snap);
}
.hx-methods span + span::after {
  left: 28px;
}
.hx-methods span.is-on {
  color: var(--c);
}
.hx-methods span.is-on::after {
  transform: scaleX(1);
}

.hx .sub {
  font-size: min(clamp(16.5px, 1.4vw, 19px), 2.5svh);
  max-width: 50ch;
  margin: min(20px, 2.4svh) 0 min(30px, 3.4svh);
}
.hx .hero-cta .btn {
  padding-block: min(15px, 1.9svh);
}
.hx .trust {
  margin-top: min(26px, 3svh);
}

/* ---------- pulled proofs, fanned on the sheet ---------- */
.hx-proofs {
  --px: 0;
  --py: 0;
  position: relative;
  justify-self: stretch;
  margin-right: calc(var(--gut) * -0.6);
  height: min(56svh, 520px);
  min-height: 340px;
}
.hx-proof {
  --w: 52%;
  position: absolute;
  top: 50%;
  margin: 0;
  width: var(--w);
  aspect-ratio: 4 / 5;
  background: #0b1116;
  border: 2px solid #1f2a31;
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: translate3d(
      calc(var(--px) * var(--d) * 1px),
      calc(-50% + var(--lift, 0px) + var(--py) * var(--d) * 1px),
      0
    )
    rotate(var(--r));
  transition:
    transform 0.6s var(--snap),
    border-color 0.25s linear;
  will-change: transform;
}
.hx-proof img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hx-proof figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 30px 14px 12px;
  font-family: "Barlow", sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #e9f0ec;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.88));
}
.hx-proof figcaption b {
  color: var(--volt);
  font-weight: 700;
  margin-right: 6px;
}
.hx-proof:hover {
  border-color: var(--volt);
  --lift: -10px;
}
.hx-proof--1 {
  --r: -8deg;
  --d: -24;
  left: 0;
  z-index: 1;
  --lift: 14px;
}
.hx-proof--2 {
  --r: 1.5deg;
  --d: 16;
  left: 24%;
  z-index: 3;
  --lift: -18px;
}
.hx-proof--3 {
  --r: 9deg;
  --d: -12;
  left: 48%;
  z-index: 2;
  --lift: 22px;
}
.hx-proof--1:hover {
  --lift: 4px;
}
.hx-proof--2:hover {
  --lift: -28px;
}
.hx-proof--3:hover {
  --lift: 12px;
}
.hx-proofs .hx-crop {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 0 solid rgba(255, 255, 255, 0.32);
  pointer-events: none;
}
.hx-proofs .hx-crop.a {
  left: -6px;
  top: 2%;
  border-top-width: 1px;
  border-left-width: 1px;
}
.hx-proofs .hx-crop.b {
  right: 0;
  bottom: 2%;
  border-bottom-width: 1px;
  border-right-width: 1px;
  border-color: var(--volt);
}

/* ---------- press color control bar (the stat rail) ---------- */
.hx-bar {
  position: relative;
  z-index: 2;
  border-top: 2px solid var(--rule);
  background: rgba(5, 9, 11, 0.86);
}
.hx-bar .stats {
  border-top: 0;
}
.hx-bar .stat {
  padding: min(18px, 2.2svh) 20px min(16px, 2svh);
  position: relative;
}
.hx-sw {
  display: grid;
  grid-template-columns: 4fr 3fr 2fr 1fr;
  height: 6px;
  margin-bottom: min(12px, 1.4svh);
  max-width: 150px;
}
.hx-sw i {
  display: block;
  background: var(--c);
}
.hx-sw i:nth-child(2) {
  opacity: 0.7;
}
.hx-sw i:nth-child(3) {
  opacity: 0.45;
}
.hx-sw i:nth-child(4) {
  opacity: 0.22;
}
.hx-bar .stat b {
  font-size: min(clamp(26px, 3vw, 40px), 4.6svh);
}
.hx-slug {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0 9px;
  border-top: 1px solid #172026;
  font-family: "Barlow", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #56635d;
}
.hx-slug b {
  color: var(--volt);
  font-weight: 700;
}

/* ---------- entrance (armed only) ---------- */
@keyframes hxReg {
  0% {
    opacity: 1;
    transform: translate3d(var(--x), var(--y), 0);
  }
  18% {
    opacity: 1;
    transform: translate3d(var(--x), var(--y), 0);
  }
  66% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }
}
@keyframes hxRegLime {
  0% {
    opacity: 1;
    transform: translate3d(var(--x), var(--y), 0);
  }
  18% {
    opacity: 1;
    transform: translate3d(var(--x), var(--y), 0);
  }
  66% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  100% {
    opacity: 0.5;
    transform: translate3d(0.028em, 0.022em, 0);
  }
}
@keyframes hxKey {
  0%,
  55% {
    opacity: 0;
  }
  78%,
  100% {
    opacity: 1;
  }
}
@keyframes hxFlood {
  from {
    background-size:
      0% 100%,
      100% 100%;
  }
  to {
    background-size:
      100% 100%,
      100% 100%;
  }
}
@keyframes hxSqueegee {
  0% {
    left: 0;
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}
@keyframes hxUp {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes hxDeal {
  from {
    opacity: 0;
    transform: translate3d(160px, calc(-50% + 90px), 0)
      rotate(calc(var(--r) + 16deg));
  }
  to {
    opacity: 1;
    transform: translate3d(0, calc(-50% + var(--lift, 0px)), 0) rotate(var(--r));
  }
}
@keyframes hxSwatch {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes hxSpin {
  from {
    transform: rotate(-180deg) scale(0.4);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

html.hx-armed .hx .hx-h1 .hx-pl {
  animation: hxReg 1.25s cubic-bezier(0.65, 0, 0.25, 1) both;
}
html.hx-armed .hx .hx-h1 .hx-pl--1 {
  --x: -0.42em;
  --y: -0.16em;
  animation-name: hxRegLime;
}
html.hx-armed .hx .hx-h1 .hx-pl--2 {
  --x: 0.46em;
  --y: 0.1em;
  animation-delay: 0.05s;
}
html.hx-armed .hx .hx-h1 .hx-pl--3 {
  --x: -0.2em;
  --y: 0.3em;
  animation-delay: 0.1s;
}
html.hx-armed .hx .hx-h1 .hx-pl--4 {
  --x: 0.3em;
  --y: -0.26em;
  animation-delay: 0.15s;
}
html.hx-armed .hx .hx-h1 .hx-key {
  animation: hxKey 1.25s linear both;
}
html.hx-armed .hx .hx-h1 .hx-key em {
  position: relative;
  color: transparent;
  background:
    linear-gradient(var(--volt), var(--volt)) left / 0% 100% no-repeat,
    linear-gradient(#fff, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  animation: hxFlood 0.62s cubic-bezier(0.6, 0, 0.3, 1) 1.2s both;
}
html.hx-armed .hx .hx-h1 .hx-key em::after {
  content: "";
  position: absolute;
  top: 8%;
  bottom: 4%;
  width: 3px;
  background: var(--volt);
  box-shadow: 0 0 18px rgba(150, 255, 0, 0.7);
  opacity: 0;
  animation: hxSqueegee 0.62s cubic-bezier(0.6, 0, 0.3, 1) 1.2s both;
}
html.hx-armed .hx-eyebrow {
  animation: hxUp 0.5s var(--snap) 0.15s both;
}
html.hx-armed .hx-target {
  animation: hxSpin 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
}
html.hx-armed .hx-methods {
  animation: hxUp 0.5s var(--snap) 0.8s both;
}
html.hx-armed .hx .sub {
  animation: hxUp 0.5s var(--snap) 0.9s both;
}
html.hx-armed .hx .hero-cta {
  animation: hxUp 0.5s var(--snap) 1s both;
}
html.hx-armed .hx .trust {
  animation: hxUp 0.5s var(--snap) 1.1s both;
}
html.hx-armed .hx-proof {
  animation: hxDeal 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
html.hx-armed .hx-proof--1 {
  animation-delay: 0.45s;
}
html.hx-armed .hx-proof--3 {
  animation-delay: 0.6s;
}
html.hx-armed .hx-proof--2 {
  animation-delay: 0.75s;
}
html.hx-armed .hx-sw i {
  transform-origin: left;
  animation: hxSwatch 0.5s var(--snap) both;
}
html.hx-armed .stat:nth-child(1) .hx-sw i {
  animation-delay: 1.15s;
}
html.hx-armed .stat:nth-child(2) .hx-sw i {
  animation-delay: 1.25s;
}
html.hx-armed .stat:nth-child(3) .hx-sw i {
  animation-delay: 1.35s;
}
html.hx-armed .stat:nth-child(4) .hx-sw i {
  animation-delay: 1.45s;
}
/* the disarm snaps everything to the finished state */
html.hx-done .hx .hx-h1 .hx-pl,
html.hx-done .hx .hx-h1 .hx-key,
html.hx-done .hx .hx-h1 .hx-key em,
html.hx-done .hx .hx-h1 .hx-key em::after,
html.hx-done .hx-eyebrow,
html.hx-done .hx-target,
html.hx-done .hx-methods,
html.hx-done .hx .sub,
html.hx-done .hx .hero-cta,
html.hx-done .hx .trust,
html.hx-done .hx-proof,
html.hx-done .hx-sw i {
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .hx .hero-bg img,
  .hx-dots {
    animation: none !important;
  }
  .hx-proof,
  .hx-methods span,
  .hx-methods span::after {
    transition: none;
  }
}

/* ---------- sizes ---------- */
@media (max-width: 1100px) {
  .hx-grid {
    grid-template-columns: 1fr;
  }
  .hx-proofs {
    display: none;
  }
  .hx-h1 {
    font-size: min(clamp(34px, 11.6vw, 108px), 11.5svh);
  }
  .hx .hero-bg::after {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.62) 42%,
      rgba(0, 0, 0, 0.94) 100%
    );
  }
  .hx-dots {
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
    mask-image: linear-gradient(180deg, #000, transparent 70%);
    opacity: 0.35;
  }
}
@media (max-width: 1020px) {
  .hx {
    --nav-h: 68px;
  }
  .hx-methods {
    justify-content: center;
  }
  .hx .sub {
    margin-inline: auto;
  }
  .hx-sw {
    margin-inline: auto;
  }
  .hx-slug {
    display: none;
  }
}
@media (max-width: 560px) {
  .hx-target,
  .hx-eyebrow__t > span {
    display: none;
  }
  .hx-methods {
    font-size: 14px;
    letter-spacing: 0.06em;
    gap: 8px 16px;
  }
  .hx-methods span + span::before {
    display: none;
  }
  .hx-methods span + span::after {
    left: 0;
  }
  .hx .trust .trust-i:not(.trust-rev) {
    display: none;
  }
  .hx-bar .stats {
    grid-template-columns: 1fr 1fr;
  }
  .hx-bar .stat:nth-child(2) {
    border-right: none;
  }
  .hx-bar .stat:nth-child(-n + 2) {
    border-bottom: 2px solid var(--rule);
  }
  .hx-bar .stat span:last-child {
    letter-spacing: 0.1em;
  }
}
@media (max-width: 380px), (max-height: 700px) and (max-width: 1020px) {
  .hx-methods {
    display: none;
  }
}
@media (max-height: 460px) and (orientation: landscape) {
  .hx {
    min-height: 0;
  }
  .hx .sub,
  .hx-methods,
  .hx .trust,
  .hx-bar {
    display: none;
  }
  .hx-grid {
    padding-block: 28px;
  }
  .hx-h1 {
    font-size: min(clamp(30px, 6vw, 60px), 13svh);
  }
}

/* auto margins on .wrap cancel the flex stretch, so give the grid its full width */
.hx > .wrap {
  width: 100%;
}

/* fan: only the front proof carries its caption; a back proof comes forward with its caption on hover */
.hx-proof--1 figcaption,
.hx-proof--3 figcaption {
  opacity: 0;
  transition: opacity 0.25s linear;
}
.hx-proof:hover {
  z-index: 5;
}
.hx-proof:hover figcaption {
  opacity: 1;
}

/* tall tablets: the proofs return as a fanned row under the copy instead of leaving the photo empty */
@media (max-width: 1100px) and (min-width: 700px) and (min-height: 1150px) {
  .hx-grid {
    justify-items: start;
  }
  .hx-proofs {
    display: block;
    width: min(640px, 100%);
    height: 320px;
    min-height: 0;
    margin: 12px 0 0;
  }
  .hx-proof {
    --w: 38%;
  }
  .hx-proof--1 {
    left: 2%;
  }
  .hx-proof--2 {
    left: 31%;
  }
  .hx-proof--3 {
    left: 60%;
  }
}
@media (max-width: 1020px) and (min-width: 700px) and (min-height: 1150px) {
  .hx-grid {
    justify-items: center;
  }
}

/* phones: the six methods sit as two even rows of three, never an orphan */
@media (max-width: 560px) {
  .hx-methods {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    gap: 10px 20px;
  }
  .hx-methods span {
    justify-content: center;
  }
}
@media (max-width: 380px) {
  .hx-methods {
    display: none;
  }
}
