/* ============================================================
   PECULIEX — SITE
   The shared design layer: tokens, type, links, buttons,
   ambient hero background, stats, process rows, running
   strips and the inner-page kit (px-*).
   Loaded on every page after styles.css. Page-specific
   styles live with their page (home.css for the homepage).
   Behaviour is in site.js.
   ============================================================ */

:root {
  --hx-ink: #09090c;
  --hx-ink-2: #121217;
  --hx-lime: #bdf500;
  --hx-purple: #8b2cf5;
  --hx-orange: #ff5a1f;
  --hx-bone: #f4f2ec;
  --hx-serif: 'Instrument Serif', 'Cormorant Garamond', 'Times New Roman', serif;
  --hx-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --hx-strip: 92px;
  --hx-reel-s: 0.3;
  /* distance from the viewport edge to the container's content edge */
  --hx-mx: var(--margin-mobile);
  /* hairlines and secondary text; dark bands override both */
  --hx-line: var(--color-outline-variant);
  --hx-mute: var(--color-on-surface-variant);
}
@media (min-width: 768px) {
  :root {
    --hx-mx: max(var(--margin-desktop), calc((100vw - var(--container-max)) / 2 + var(--margin-desktop)));
  }
}

/* ---------- Type and link primitives ---------- */
.hx-h2 {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(40px, 7.2vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 0;
}
.hx-h2 em,
.hx-accent {
  font-family: var(--hx-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.02em;
  font-size: 1.1em;
  color: var(--color-primary);
}
.hx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-on-surface-variant);
  margin-bottom: clamp(20px, 2.4vw, 32px);
}
.hx-eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hx-purple);
  box-shadow: 0 0 0 0 rgba(139, 44, 245, 0.6);
  animation: hxPulse 2.4s ease-out infinite;
}
@keyframes hxPulse {
  0% { box-shadow: 0 0 0 0 rgba(139, 44, 245, 0.55); }
  70%, 100% { box-shadow: 0 0 0 12px rgba(139, 44, 245, 0); }
}

/* text link with a sliding arrow */
.hx-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: inherit;
  padding-bottom: 8px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.6s var(--hx-ease), color 0.3s ease;
}
.hx-link svg { width: 18px; height: 18px; transition: transform 0.5s var(--hx-ease); }
@media (hover: hover) {
  .hx-link:hover { background-size: 0% 1px; background-position: 100% 100%; color: var(--color-primary); }
  .hx-link:hover svg { transform: translateX(6px); }
}

/* line masks produced by SplitText must not clip italic overhang / accents */
.hx-l-mask { padding: 0.08em 0.06em 0.06em 0; margin: -0.08em -0.06em -0.06em 0; }

/* ---------- Ambient dark background (hero, call-to-action panels) ---------- */
/* ambient background */
.hx-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hx-aurora { position: absolute; border-radius: 50%; will-change: transform; }
.hx-aurora-1 {
  width: 70vmax; height: 70vmax; left: -26vmax; top: -34vmax;
  background: radial-gradient(circle, rgba(139, 44, 245, 0.5) 0%, rgba(139, 44, 245, 0.16) 38%, transparent 66%);
  animation: hxDrift1 22s ease-in-out infinite alternate;
}
.hx-aurora-2 {
  width: 56vmax; height: 56vmax; right: -20vmax; bottom: -30vmax;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.34) 0%, rgba(255, 90, 31, 0.1) 40%, transparent 66%);
  animation: hxDrift2 26s ease-in-out infinite alternate;
}
.hx-aurora-3 {
  width: 34vmax; height: 34vmax; left: 38%; top: 30%;
  background: radial-gradient(circle, rgba(189, 245, 0, 0.09) 0%, transparent 62%);
  animation: hxDrift1 30s ease-in-out infinite alternate-reverse;
}
@keyframes hxDrift1 { to { transform: translate3d(9vmax, 6vmax, 0) scale(1.12); } }
@keyframes hxDrift2 { to { transform: translate3d(-8vmax, -5vmax, 0) scale(1.18); } }
.hx-grain {
  position: absolute; inset: 0; opacity: 0.09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}
/* faint column rules, editorial grid */
.hx-hero-rules {
  position: absolute; inset: 0 var(--hx-mx);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 25%);
  border-right: 1px solid rgba(255, 255, 255, 0.045);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}

/* primary CTA: the arrow disc floods the pill on hover */
.hx-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 7px 7px 7px 26px;
  border-radius: 999px;
  background: #fff;
  color: #0b0b0f;
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  transition: color 0.45s ease;
}
.hx-cta::before {
  content: '';
  position: absolute;
  right: 7px; top: 50%;
  width: 46px; height: 46px;
  margin-top: -23px;
  border-radius: 50%;
  background: var(--hx-purple);
  z-index: -1;
  transition: transform 0.75s var(--hx-ease);
}
.hx-cta-ico {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  transition: transform 0.6s var(--hx-ease), background-color 0.45s ease, color 0.45s ease;
}
.hx-cta-ico svg { width: 20px; height: 20px; }
button.hx-cta { border: 0; cursor: pointer; }
@media (hover: hover) {
  .hx-cta:hover { color: #fff; }
  .hx-cta:hover::before { transform: scale(16); }
  .hx-cta:hover .hx-cta-ico { background: #fff; color: var(--hx-purple); transform: rotate(-45deg); }
}
.hx-cta:focus-visible, .hx-orb:focus-visible, .hx-work-media:focus-visible, .hx-reel:focus-visible {
  outline: 2px solid var(--hx-lime);
  outline-offset: 4px;
}

/* ---------- Running strip ---------- */
.hx-marquee {
  position: relative;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.hx-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  list-style: none;
  will-change: transform;
}
.hx-marquee-track li { flex: none; margin-right: clamp(34px, 4.6vw, 84px); }

/* ---------- Stats grid with rolling digits ---------- */
.hx-impact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  border-bottom: 1px solid var(--hx-line);
}
.hx-stat {
  --c: var(--hx-purple);
  --on-c: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(36px, 9vw, 72px);
  min-height: clamp(200px, 44vw, 320px);
  padding: 22px clamp(14px, 2.2vw, 36px) 26px;
  border-top: 1px solid var(--hx-line);
  border-left: 1px solid var(--hx-line);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s ease;
}
.hx-stat:nth-child(odd) { border-left: 0; }
.hx-stat:nth-child(2) { --c: var(--hx-orange); --on-c: #0b0b0f; }
.hx-stat:nth-child(3) { --c: var(--hx-lime); --on-c: #0b0b0f; }
.hx-stat:nth-child(4) { --c: var(--color-on-background); --on-c: var(--color-background); }
/* colour flood from the top bar */
.hx-stat::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--c);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 0.75s var(--hx-ease);
  z-index: -1;
}
.hx-stat::after {
  content: '';
  position: absolute; left: 0; top: -1px;
  width: 100%; height: 3px;
  background: var(--c);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1.3s var(--hx-ease);
}
.hx-stat.is-in::after { transform: scaleX(1); }
.hx-stat-idx {
  font-family: var(--hx-serif);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 26px);
  line-height: 1;
  opacity: 0.6;
}
.hx-stat-num {
  display: flex;
  align-items: flex-start;
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(46px, 13.5vw, 120px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}
.hx-stat-num sup {
  font-size: 0.44em;
  line-height: 1;
  margin: 0.1em 0 0 0.08em;
  color: var(--c);
  transition: color 0.45s ease, transform 0.7s var(--hx-ease);
}
.hx-stat:nth-child(3) .hx-stat-num sup { color: #5d7a00; }
.hx-stat:nth-child(4) .hx-stat-num sup { color: var(--color-primary); }
/* on the dark bands the accents can run at full strength */
:is(.hx-impact, .px-section--ink) .hx-stat:nth-child(4) { --c: var(--hx-bone); --on-c: #0b0b0f; }
:is(.hx-impact, .px-section--ink) .hx-stat:nth-child(3) .hx-stat-num sup,
:is(.hx-impact, .px-section--ink) .hx-stat:nth-child(4) .hx-stat-num sup { color: var(--hx-lime); }
[data-theme="dark"] .hx-stat:nth-child(3) .hx-stat-num sup { color: var(--hx-lime); }
.hx-odo { display: inline-flex; height: 1em; overflow: hidden; }
.hx-odo-col { display: block; height: 1em; }
.hx-odo-strip { display: flex; flex-direction: column; will-change: transform; }
.hx-odo-strip span { display: block; height: 1em; line-height: 1; }
.hx-stat-label {
  margin-top: clamp(10px, 1.2vw, 18px);
  font-family: var(--font-label);
  font-size: clamp(10.5px, 0.9vw, 13px);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hx-mute);
  transition: color 0.45s ease;
}
@media (hover: hover) {
  .hx-stat:hover { color: var(--on-c); }
  .hx-stat:hover::before { transform: scaleY(1); }
  .hx-stat:hover .hx-stat-label { color: currentColor; }
  .hx-stat:hover .hx-stat-num sup { color: currentColor; transform: rotate(90deg); }
}
@media (min-width: 1024px) {
  .hx-impact-grid { grid-template-columns: repeat(4, 1fr); }
  .hx-stat { min-height: clamp(300px, 29vw, 470px); padding-top: 26px; padding-bottom: 32px; }
  .hx-stat:nth-child(odd) { border-left: 1px solid var(--hx-line); }
  .hx-stat:first-child { border-left: 0; }
  .hx-stat-num { font-size: clamp(56px, 8.1vw, 168px); }
}

/* cursor-follow label over project imagery */
.hx-cursor {
  position: fixed; left: 0; top: 0;
  z-index: 9999998;
  width: 104px; height: 104px;
  margin: -52px 0 0 -52px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--hx-lime);
  color: #0b0b0f;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
  transform: scale(0);
  will-change: transform;
}
.hx-cursor-on .custom-cursor { opacity: 0; }
@media (hover: none), (max-width: 768px) { .hx-cursor { display: none; } }

/* ---------- Process rows ---------- */
.hx-steps { list-style: none; border-bottom: 1px solid var(--color-outline-variant); }
.hx-step {
  --c: var(--hx-purple);
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: clamp(16px, 2.4vw, 40px);
  row-gap: 14px;
  padding: clamp(26px, 3.4vw, 54px) 0;
  border-top: 1px solid var(--color-outline-variant);
}
.hx-step:nth-child(2) { --c: var(--hx-orange); }
.hx-step:nth-child(3) { --c: #6b8f00; }
[data-theme="dark"] .hx-step:nth-child(3) { --c: var(--hx-lime); }
.hx-step::before {
  content: '';
  position: absolute; left: 0; top: -1px;
  width: 100%; height: 2px;
  background: var(--c);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1.1s var(--hx-ease);
}
.hx-step.is-active::before { transform: scaleX(1); }
.hx-step-num {
  font-family: var(--hx-serif);
  font-style: italic;
  font-size: clamp(20px, 1.9vw, 32px);
  line-height: 1;
  padding-top: 0.5em;
  color: var(--c);
  min-width: 1.7em;
}
.hx-step-title {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(30px, 9vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 0;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--color-on-background);
  transition: color 0.7s var(--hx-ease), -webkit-text-stroke-color 0.7s ease;
}
.hx-step.is-active .hx-step-title { color: var(--color-on-background); }
.hx-step-desc {
  grid-column: 2;
  max-width: 46ch;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.65;
  color: var(--color-on-surface-variant);
  opacity: 0.55;
  transition: opacity 0.6s ease;
}
.hx-step.is-active .hx-step-desc { opacity: 1; }
.hx-step-ico {
  position: absolute;
  right: 0; top: clamp(26px, 3.4vw, 54px);
  width: clamp(40px, 4.4vw, 68px);
  height: clamp(40px, 4.4vw, 68px);
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--color-outline-variant);
  color: var(--color-on-surface-variant);
  transition: background-color 0.6s ease, color 0.6s ease, border-color 0.6s ease, transform 0.8s var(--hx-ease);
}
.hx-step-ico .material-symbols-outlined { font-size: clamp(20px, 2vw, 30px); }
.hx-step.is-active .hx-step-ico { background: var(--c); border-color: var(--c); color: #fff; transform: rotate(360deg); }
.hx-step:nth-child(3).is-active .hx-step-ico { color: #0b0b0f; }
/* the long step names need the full row on phones */
@media (max-width: 599px) { .hx-step-ico { display: none; } }
@media (min-width: 1024px) {
  .hx-step { padding-right: clamp(64px, 7vw, 110px); row-gap: 18px; }
  /* sized so the longest step name clears the icon at 1024px */
  .hx-step-title { font-size: clamp(40px, 4.9vw, 100px); }
}

/* ============================================================
   INNER-PAGE KIT  (px-*)
   Layout pieces every inner page shares. Sections are light by
   default and follow the theme; add .px-section--ink for the
   dark editorial bands.
   ============================================================ */

/* ---------- Page hero ---------- */
.px-hero {
  --hx-line: rgba(255, 255, 255, 0.14);
  --hx-mute: rgba(255, 255, 255, 0.66);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(520px, 84svh, 900px);
  background: var(--hx-ink);
  color: #fff;
}
.px-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--nav-top) + var(--nav-height) + clamp(44px, 9svh, 110px));
  padding-bottom: clamp(36px, 5.5vw, 80px);
}
.px-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: clamp(20px, 2.6vw, 36px);
}
.px-crumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hx-mute);
}
.px-crumb::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.px-hero-title {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(42px, 9.2vw, 172px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
}
.px-hero-title em {
  font-family: var(--hx-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.02em;
  font-size: 1.1em;
  color: var(--hx-lime);
}
.px-hero-foot {
  display: grid;
  gap: 24px;
  margin-top: clamp(26px, 4vw, 60px);
  padding-top: clamp(20px, 2.4vw, 32px);
  border-top: 1px solid var(--hx-line);
}
.px-hero-sub {
  font-size: clamp(16px, 1.45vw, 22px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.74);
  max-width: 46ch;
}
/* the button keeps its own width when the foot stacks on phones */
.px-hero-foot > .hx-cta { justify-self: start; }
@media (min-width: 900px) {
  .px-hero-foot { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}
/* hero with a photo or video behind the type */
.px-hero-media { position: absolute; inset: 0; z-index: 0; }
.px-hero-media img, .px-hero-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.px-hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9, 9, 12, 0.55) 0%, rgba(9, 9, 12, 0.25) 38%, rgba(9, 9, 12, 0.92) 100%);
}

/* ---------- Sections ---------- */
.px-section { position: relative; padding: clamp(80px, 11vw, 180px) 0; }
.px-section--tight { padding: clamp(56px, 7vw, 110px) 0; }
.px-section--flush-top { padding-top: 0; }
.px-section--raised { background: var(--color-surface-container-lowest); }
.px-section--ink {
  --hx-line: rgba(255, 255, 255, 0.14);
  --hx-mute: rgba(255, 255, 255, 0.62);
  background: var(--hx-ink);
  color: #fff;
}
.px-section--ink .hx-h2 em, .px-cta .hx-h2 em { color: var(--hx-lime); }
.px-section--ink .hx-eyebrow { color: var(--hx-mute); }
.px-section--ink .hx-link:hover { color: var(--hx-lime); }

.px-head { display: grid; gap: clamp(20px, 3vw, 40px); margin-bottom: clamp(40px, 6vw, 96px); }
.px-head > :first-child > .tag-acid { margin-bottom: clamp(20px, 2.2vw, 30px); }
@media (min-width: 1024px) {
  .px-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
}
.px-lede {
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.6;
  color: var(--hx-mute);
  max-width: 46ch;
}
/* large running statement; pair with data-hx-words to light it up on scroll */
.px-statement {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(24px, 3.3vw, 58px);
  line-height: 1.16;
  letter-spacing: -0.03em;
  max-width: 24em;
}
.px-statement em { font-family: var(--hx-serif); font-weight: 400; color: var(--color-primary); font-size: 1.06em; }
.px-section--ink .px-statement em { color: var(--hx-lime); }
.px-cite {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 40px);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hx-mute);
}
.px-cite::before { content: ''; width: 36px; height: 1px; background: currentColor; }

.px-split { display: grid; gap: clamp(32px, 5vw, 80px); }
@media (min-width: 1024px) {
  .px-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .px-split--top { align-items: start; }
  .px-sticky { position: sticky; top: calc(var(--nav-top) + var(--nav-height) + 40px); }
}

/* ---------- Cards: bordered tiles that flood with colour on hover ---------- */
.px-cards {
  display: grid;
  gap: clamp(14px, 1.6vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  list-style: none;
}
.px-card {
  --c: var(--hx-purple);
  --on-c: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: clamp(220px, 20vw, 320px);
  padding: clamp(22px, 2.4vw, 36px);
  border: 1px solid var(--hx-line);
  border-radius: 22px;
  background: var(--color-surface-container-lowest);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s ease, border-color 0.45s ease, transform 0.7s var(--hx-ease);
}
.px-section--ink .px-card { background: rgba(255, 255, 255, 0.03); }
.px-card:nth-child(4n + 2) { --c: var(--hx-orange); --on-c: #0b0b0f; }
.px-card:nth-child(4n + 3) { --c: var(--hx-lime); --on-c: #0b0b0f; }
.px-card:nth-child(4n) { --c: var(--color-on-background); --on-c: var(--color-background); }
.px-section--ink .px-card:nth-child(4n) { --c: var(--hx-bone); --on-c: #0b0b0f; }
.px-card::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--c);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.75s var(--hx-ease);
  z-index: -1;
}
.px-card-idx { font-family: var(--hx-serif); font-style: italic; font-size: clamp(18px, 1.6vw, 26px); line-height: 1; opacity: 0.6; }
.px-card-title {
  margin: auto 0 0;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: clamp(20px, 1.9vw, 30px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.px-card-text { font-size: clamp(14.5px, 1.05vw, 16.5px); line-height: 1.6; color: var(--hx-mute); transition: color 0.45s ease; }
@media (hover: hover) {
  .px-card:hover { color: var(--on-c); border-color: transparent; transform: translateY(-6px); }
  .px-card:hover::before { transform: scaleY(1); }
  .px-card:hover .px-card-text { color: currentColor; }
}

/* ---------- Media frame ---------- */
.px-frame { position: relative; overflow: hidden; border-radius: 22px; background: var(--color-surface-container); }
.px-frame img, .px-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Big type band (text marquee) ---------- */
.px-band { padding: clamp(28px, 4vw, 64px) 0; border-top: 1px solid var(--hx-line); border-bottom: 1px solid var(--hx-line); }
.px-band .hx-marquee { -webkit-mask-image: none; mask-image: none; }
.px-band .hx-marquee-track li {
  display: inline-flex;
  align-items: center;
  gap: clamp(20px, 3vw, 56px);
  margin-right: clamp(20px, 3vw, 56px);
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(38px, 7.4vw, 132px);
  line-height: 1;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}
.px-band .hx-marquee-track li:nth-child(even) { font-family: var(--hx-serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -0.02em; color: var(--color-primary); }
.px-section--ink .px-band .hx-marquee-track li:nth-child(even), .px-band--ink .hx-marquee-track li:nth-child(even) { color: var(--hx-lime); }
.px-band .hx-marquee-track li::after { content: '✦'; font-family: var(--font-body); font-style: normal; font-size: 0.34em; opacity: 0.5; }

/* ---------- Closing call to action ---------- */
.px-cta {
  --hx-line: rgba(255, 255, 255, 0.14);
  --hx-mute: rgba(255, 255, 255, 0.7);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: clamp(28px, 4vw, 60px);
  padding: clamp(56px, 9vw, 150px) clamp(24px, 6vw, 110px);
  border-radius: clamp(24px, 3vw, 44px);
  background: var(--hx-ink);
  color: #fff;
}
.px-cta > :not(.hx-hero-bg) { position: relative; z-index: 2; }
/* on the dark theme the panel would melt into the page without an edge */
[data-theme="dark"] .px-cta { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.px-cta .hx-h2 { font-size: clamp(40px, 8vw, 150px); }
.px-cta-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-top: clamp(20px, 2.4vw, 32px); border-top: 1px solid var(--hx-line); }
.px-cta-foot p { font-size: clamp(16px, 1.4vw, 21px); line-height: 1.5; color: var(--hx-mute); max-width: 40ch; }

@media (prefers-reduced-motion: reduce) {
  .hx-aurora, .hx-eyebrow i { animation: none; }
  .hx-step-title { color: var(--color-on-background); }
  .hx-step-desc { opacity: 1; }
  .px-card, .px-card::before { transition: none; }
}
