/* ============================================================
   PIXENTRA — Hero-1 Stylesheet
   Reference viewport: 1600px × 900px
   All colours use variables.css tokens only.
   ============================================================ */

/* ── Section shell ────────────────────────────────────────── */
.h1-hero {
  position: relative;
  width: 100%;
  border-radius: 1.5rem;
  /* border: 2px solid var(--clr-border-light); */
  overflow: visible;
}

/* ── Inner container ──────────────────────────────────────── */
.h1-inner {
  width: 100%;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 32px;
  padding: 0 16px;
  margin: 0;
  box-sizing: border-box;
  align-items: start;
}

/* ============================================================
   LEFT VISUAL COLLAGE
   ============================================================ */
.h1-visual {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 554px;
  align-self: stretch;
}

/* ── Shared card base ─────────────────────────────────────── */
.h1-card {
  position: absolute;
  border-radius: 1.5rem;
  overflow: hidden;
}

/* ── Image placeholder base ───────────────────────────────── */
.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-grey-light);
}

/* ── Card A: Portrait (top-left, 3:4 ratio) ────── */
.h1-portrait {
  top: 0;
  left: 0;
  width: 226px;
  aspect-ratio: 3 / 4;
  height: auto;
  border-radius: 1.5rem 1.5rem 6rem 1.5rem !important;
  z-index: 2;
}

.h1-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 0;
}

.h1-plus-btn {
  position: absolute;
  top: 19px;
  left: 19px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.h1-plus-btn:hover { transform: scale(1.06); }

.h1-plus-icon {
  font-size: 22px;
  font-weight: 300;
  color: var(--color-black);
  line-height: 1;
  margin-top: -2px;
  font-family: var(--font-base);
}

.h1-portrait-labels {
  position: absolute;
  left: 19px;
  top: 98px;
  display: flex;
  flex-direction: column;
  z-index: 3;
}

.h1-portrait-labels span {
  font-family: var(--font-base);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1.55;
  text-shadow: var(--shadow-text);
}

/* ── Card B: Mint (top-right, 236×234) ───────────────────── */
.h1-mint {
  top: 0;
  left: 242px;
  width: 234px;
  height: 234px;
  background-color: var(--clr-hover-bg-mid);
  border: 1px solid var(--clr-green-border);
  z-index: 2;
}

.h1-mint-pattern {
  position: absolute;
  top: 20px;
  right: 0;
  width: 65%;
  height: auto;
  object-fit: contain;
  object-position: right top;
  opacity: 0.2;
  pointer-events: none;
  user-select: none;
}

.h1-mint-copy {
  position: absolute;
  top: 27px;
  left: 22px;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.h1-mint-copy span {
  font-family: var(--font-base);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-grey-dark);
  line-height: 1.72;
}

/* ── Card A2: White card behind portrait ──────────────────── */
.h1-portrait-white {
  top: 16px;
  left: 0;
  width: 242px;
  height: 301px;
  border-radius: 0 0 7rem 0 !important;
  background: var(--color-white);
  z-index: 1;
}

/* ── Card C: Dark (left, 226, top:194) ───────────────────── */
.h1-dark {
  top: 194px;
  left: 0;
  width: 226px;
  height: 240px;
  background: var(--color-black);
  z-index: 0;
}

.h1-dark-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-green-parrot);
  flex-shrink: 0;
  margin-top: 3px;
}

.h1-dark-content {
  position: absolute;
  bottom: 16px;
  left: 19px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
}

.h1-dark-copy {
  display: flex;
  flex-direction: column;
}

.h1-dark-copy span {
  font-family: var(--font-base);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1.46;
}

/* ── Card D: Pattern (left, top:450) ─────────────────────── */
.h1-pattern {
  top: 450px;
  left: 0;
  bottom: 0;
  width: 226px;
  height: auto;
  background: var(--color-page-bg);
  border: 1px solid var(--clr-border-default);
  z-index: 2;
}

.h1-pattern-copy {
  position: absolute;
  bottom: 24px;
  left: 22px;
  z-index: 2;
}

.h1-pattern-bg {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 115%;
  height: auto;
  object-fit: contain;
  object-position: right bottom;
  opacity: 0.1;
  pointer-events: none;
  user-select: none;
}

.h1-pattern-copy p {
  font-family: var(--font-base);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-dark);
  line-height: 1.7;
}

.h1-pattern-line {
  margin-top: 7px;
  width: 21px;
  height: 1px;
  background: var(--color-black);
}

/* ── Large overlapping orb ────────────────────────────────── */
.h1-orb {
  position: absolute;
  top: 152px;
  left: 242px;
  width: 236px;
  height: 236px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid var(--color-dark);
  outline: 16px solid var(--color-white);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.h1-knot-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.h1-orb-img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  border-radius: 50%;
}

/* ── Vertical stem (center = 242 + 118 = 360) ────────────── */
.h1-stem {
  position: absolute;
  left: 360px;
  top: 388px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
}

.h1-stem-line {
  width: 1px;
  height: 69px;
  background: linear-gradient(to bottom, var(--color-green-parrot), var(--color-green-forest));
  align-self: center;
}

.h1-stem-dot {
  position: relative;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.h1-stem-dot::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-green-parrot);
  opacity: 0.4;
  animation: blip-pulse 2s ease-out infinite;
}

.h1-stem-dot::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-green-forest);
}

/* ── Caption under stem ───────────────────────────────────── */
.h1-orb-caption {
  position: absolute;
  left: 360px;
  top: 470px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
}

.h1-orb-caption span {
  font-family: var(--font-base);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-green-forest);
  line-height: 1.6;
}

/* ── Copy top/bottom wrappers (desktop: transparent passthrough) ── */
.h1-copy-top,
.h1-copy-bottom {
  display: contents; /* invisible on desktop, children behave as direct h1-copy children */
}


.h1-visual-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ============================================================
   RIGHT HERO COPY
   ============================================================ */
.h1-copy {
  display: flex;
  flex-direction: column;
  padding-top: 32px;
  padding-bottom: 16px;
  min-width: 0;
  align-self: start;
}

/* ── Process eyebrow ──────────────────────────────────────── */
.h1-process {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  margin-bottom: 30px;
}

.h1-process span {
  font-family: var(--font-base);
  /* Linear interpolation: 6.5px @ 375px → 10px @ 1600px, smooth scaling across all viewports */
  font-size: clamp(6px, calc(5.5px + 0.28vw), 10px);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-green-forest);
  white-space: nowrap;
}

.h1-arrow {
  font-size: 16px;
  color: var(--clr-text-subtle);
  line-height: 1;
  flex-shrink: 0;
}

/* ── Main headline ────────────────────────────────────────── */
.h1-headline {
  display: flex;
  flex-direction: column;
  font-family: var(--font-base);
  font-size: clamp(52px, 5.2vw, 106px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.045em;
  margin-bottom: 22px;
  max-width: 100%;
}

.h1-line1 {
  display: block;
  color: var(--color-black);
}

.h1-line2 {
  display: block;
  background: var(--gradient-brand-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Description ──────────────────────────────────────────── */
.h1-desc {
  font-family: var(--font-base);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--clr-text-secondary);
  max-width: 100%;
}

/* ============================================================
   BENEFITS ROW
   ============================================================ */
.h1-benefits {
  display: flex;
  align-items: center;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
}

.h1-benefit {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 120px;
  min-width: 0;
}

.h1-benefit-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--clr-hover-bg-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-green-primary);
}

.h1-benefit-icon svg {
  width: 20px;
  height: 20px;
}

.h1-benefit-text {
  display: flex;
  flex-direction: column;
}

.h1-benefit-text span {
  font-family: var(--font-base);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.36;
  color: var(--color-grey-dark);
}

.h1-sep {
  width: 1px;
  height: 46px;
  background: var(--clr-border-default);
  flex-shrink: 0;
  margin-inline: 16px;
  align-self: center;
}

/* ============================================================
   CTA ROW
   ============================================================ */
.h1-actions {
  display: flex;
  align-items: center;
  margin-top: 36px;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
}

/* Primary pill button — mirrors header .letstalk-label, sized to match circle button */
.h1-btn-primary {
  flex-shrink: 0;
  height: 56px;
  width: 186px;
  padding: 8px;
}

.h1-btn-primary .letstalk-circle {
  width: 40px;
  height: 40px;
}

.h1-btn-primary .letstalk-icon {
  font-size: 22px;
}

/* Circle arrow button */
.h1-btn-circle {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--clr-green-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 8px;
  flex-shrink: 0;
  color: var(--color-green-primary);
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.h1-btn-circle:hover {
  background: var(--clr-hover-bg-mid);
  border-color: var(--color-green-primary);
  color: var(--color-green-forest);
  transform: translateY(-2px);
}

.h1-circle-arrow {
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  /* bx-arrow-back rotated to point top-right */
  display: inline-flex;
  transform: rotate(135deg);
  transition: transform 0.22s ease;
}

.h1-btn-circle:hover .h1-circle-arrow {
  transform: rotate(135deg) translateY(2px);
}

/* Avatar group */
.h1-avatars {
  display: flex;
  align-items: center;
  margin-left: 28px;
  flex-shrink: 0;
}

.h1-avatar-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-page-bg);
  flex-shrink: 0;
}

.h1-avatar-wrap + .h1-avatar-wrap { margin-left: -13px; }

.h1-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  overflow: hidden;
}

.h1-av1 { background: var(--color-grey-light); }
.h1-av2 { background: var(--color-grey-light); filter: brightness(0.95); }
.h1-av3 { background: var(--color-grey-light); filter: brightness(0.9); }

.h1-status-dot {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-green-primary);
  border: 1.5px solid var(--color-page-bg);
  z-index: 10;
}

/* ── Avatar group wrapper ─────────────────────────────────── */
.h1-avatar-group {
  display: contents; /* desktop: invisible wrapper, children behave normally */
}

/* Trust copy */
.h1-trust-copy {
  display: flex;
  flex-direction: column;
  margin-left: 13px;
  flex-shrink: 0;
}

.h1-trust-copy span {
  font-family: var(--font-base);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-grey-dark);
}

/* ── Divider ──────────────────────────────────────────────── */
.h1-divider {
  margin-top: 32px;
  border: none;
  border-top: 1px solid var(--clr-border-default);
  width: 100%;
}

/* ============================================================
   TRUSTED BY ROW
   ============================================================ */
.h1-trusted {
  display: flex;
  align-items: center;
  margin-top: 32px;
  min-width: 0;
  overflow: hidden;
}

.h1-trusted-label {
  display: flex;
  flex-direction: column;
  width: 116px;
  min-width: 116px;
  margin-right: 24px;
  flex-shrink: 0;
}

.h1-trusted-label span {
  font-family: var(--font-base);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.55;
  background: var(--gradient-brand-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Marquee ──────────────────────────────────────────────── */
.h1-marquee-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(to right, transparent 0%, rgba(68, 68, 68, 0.08) 35%);
  padding: 10px 0;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.h1-marquee-track {
  display: flex;
  width: max-content;
  animation: h1-marquee-scroll 22s linear infinite;
}

.h1-marquee-track:hover { animation-play-state: paused; }

.h1-marquee-inner {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.h1-mq-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-base);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-black);
  white-space: nowrap;
  padding: 0 20px;
  transition: color 0.2s ease;
}

.h1-mq-item i {
  font-size: 15px;
  color: var(--color-green-forest);
  flex-shrink: 0;
  line-height: 1;
}

.h1-mq-item:hover { color: var(--color-grey-dark); }

.h1-mq-sep {
  font-size: 14px;
  color: var(--clr-border-default);
  flex-shrink: 0;
  line-height: 1;
}

/* Fade edges */
.h1-marquee-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  pointer-events: none;
  z-index: 2;
}

.h1-marquee-fade--left {
  left: 0;
  background: linear-gradient(to right, transparent 0%, transparent 100%);
}

.h1-marquee-fade--right {
  right: 0;
  background: linear-gradient(to left, rgba(68, 68, 68, 0.08) 20%, transparent 100%);
}

@keyframes h1-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Old logos styles removed */
.h1-logos,
.h1-logo-placeholder,
.h1-logo-name { display: none; }

/* ============================================================
   RESPONSIVE — ≤1280px
   ============================================================ */
@media (max-width: 1280px) {
  .h1-inner { gap: 48px; }
  .h1-headline { font-size: clamp(52px, 4.6vw, 76px); }
}

/* ============================================================
   RESPONSIVE — ≤1024px
   ============================================================ */
@media (max-width: 1024px) {
  .h1-inner { gap: 36px; padding: 0 24px; }
  .h1-visual { height: 480px; }
  .h1-headline { font-size: clamp(44px, 4.2vw, 66px); }
  .h1-desc { font-size: 14px; }
  .h1-copy { padding-top: 24px; }
}

/* ============================================================
   RESPONSIVE — ≤900px (single column)
   ============================================================ */
@media (max-width: 900px) {
  .h1-inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 32px 0 0;
  }
  /* Mobile order: top copy → visual → bottom copy */
  .h1-copy        { display: contents; } /* unwrap h1-copy so its children become h1-inner flex children */
  .h1-copy-top    { order: 1; display: block; padding-top: 0; width: 100%; }
  .h1-visual      { order: 2; width: 100%; }
  .h1-copy-bottom { order: 3; display: block; width: 100%; min-width: 0; overflow: hidden; }
  .h1-desc br { display: none; }
  .h1-sep { margin-inline: 12px; }
}

/* ============================================================
   RESPONSIVE — ≤600px
   ============================================================ */
@media (max-width: 600px) {
  .h1-inner { padding: 24px 0 0; gap: 16px; }
  .h1-headline { font-size: clamp(48px, 12.5vw, 62px); }
  .h1-desc { font-size: 14px; }
  .h1-process {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    margin-bottom: 16px;
  }
  .h1-process::-webkit-scrollbar { display: none; }
  .h1-benefits { flex-wrap: wrap; gap: 18px; margin-top: 16px; }
  .h1-sep { display: none; }
  .h1-benefit { flex: 0 0 calc(50% - 9px); max-width: calc(50% - 9px); }
  .h1-actions { flex-wrap: wrap; gap: 16px; align-items: center; width: 100%; margin-top: 32px; }
  .h1-btn-circle { display: flex; width: 42px; height: 42px; min-width: 42px; margin-left: 4px; order: 2; }
  .h1-circle-arrow { font-size: 18px; }
  .h1-btn-primary { width: clamp(120px, 32vw, 160px); height: 46px; padding: 5px; flex-shrink: 0; order: 2; }
  .h1-btn-primary .letstalk-circle { width: 32px; height: 32px; }
  .h1-btn-primary .letstalk-icon { font-size: 17px; }
  .h1-avatar-group { display: flex; flex-direction: row; align-items: center; gap: 12px; width: 100%; order: 1; }
  .h1-avatars { margin-left: 0; flex-shrink: 0; }
  .h1-avatar-wrap { width: clamp(46px, 11.5vw, 58px); height: clamp(46px, 11.5vw, 58px); min-width: unset; }
  .h1-avatar-wrap + .h1-avatar-wrap { margin-left: -14px; }
  .h1-trust-copy { margin-left: 0; flex: unset; min-width: 0; flex-direction: column; }
  .h1-trust-copy span { font-size: clamp(11px, 2.8vw, 14px); line-height: 1.5; white-space: nowrap; display: block; }
  .h1-trusted { flex-wrap: nowrap; gap: 12px; align-items: center; }
  .h1-trusted-label { width: auto; min-width: unset; margin-right: 0; flex-shrink: 0; }
  .h1-trusted-label span { font-size: clamp(9px, 2.3vw, 12px); }
  .h1-orb-caption span { font-size: 11px; }

  /* ── Visual collage — mobile scaling ──────────────────── */
  .h1-visual {
    position: relative;
    width: 100%;
    height: auto;
    min-height: unset;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-self: auto;
  }

  .h1-visual-inner {
    position: relative;
    width: 480px;
    height: 554px;
    flex-shrink: 0;
    zoom: calc((100vw - 32px) / 480px);
    transform: none;
    left: auto;
  }
}

/* ============================================================
   RESPONSIVE — ≤480px  (small phones)
   ============================================================ */
@media (max-width: 480px) {
  .h1-visual-inner {
    zoom: calc((100vw - 32px) / 480px);
  }
}

/* ============================================================
   RESPONSIVE — ≤390px  (iPhone SE / very small phones)
   ============================================================ */
@media (max-width: 390px) {
  .h1-visual-inner {
    zoom: calc((100vw - 32px) / 480px);
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .h1-hero *, .h1-hero *::before, .h1-hero *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ── Card animation keyframe (used by hero1.js inline styles) ── */
@keyframes h1-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes blip-pulse {
  0%   { transform: scale(1);  opacity: 0.5; }
  70%  { transform: scale(2);  opacity: 0;   }
  100% { transform: scale(2);  opacity: 0;   }
}
