/* Homepage hero — asymmetrical cut-out layout */

.ink-hero-wrap {
  padding: 20px 20px 0;
  background: var(--ink-900);
}

.ink-hero {
  position: relative;
  min-height: calc(100svh - 40px);
  border-radius: 48px;
  overflow: hidden;
  isolation: isolate;
  --ink-hero-marquee-h: 58px;
}

.ink-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ink-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

.ink-hero__panel {
  position: absolute;
  right: 0;
  left: auto;
  bottom: var(--ink-hero-marquee-h);
  z-index: 2;
  width: min(52%, 560px);
  padding: clamp(24px, 3vw, 36px) clamp(22px, 3vw, 32px) clamp(28px, 3vw, 36px);
  text-align: right;
  background:
    linear-gradient(145deg, rgba(18, 14, 12, 0.58), rgba(32, 24, 20, 0.42)),
    rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px) saturate(1.15);
  -webkit-backdrop-filter: blur(24px) saturate(1.15);
  border: 0.5px solid rgba(255, 255, 255, 0.22);
  border-right: none;
  border-bottom: none;
  border-top-left-radius: clamp(40px, 7vw, 88px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -24px 48px rgba(0, 0, 0, 0.12),
    0 8px 28px rgba(0, 0, 0, 0.18);
}

#cust-root h1.ink-hero__headline {
  margin: 0;
  font-family: var(--serif) !important;
  font-weight: 500;
  font-size: clamp(32px, 4.2vw, 52px) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.ink-hero__line {
  display: block;
}

.ink-hero__line--accent {
  display: block;
  margin-top: 4px;
}

.ink-hero__sub {
  margin: clamp(18px, 2.5vw, 24px) 0 0 auto;
  max-width: 100%;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
}

.ink-hero__sub-line {
  display: block;
}

@media (min-width: 768px) {
  .ink-hero__sub-line {
    white-space: nowrap;
  }
}

/* —— Marquee inside hero —— */
.ink-hero__marquee.cust-marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: none;
  background: rgba(8, 8, 8, 0.52);
  backdrop-filter: blur(14px);
  padding: 16px 0;
  overflow: hidden;
}

.ink-hero__marquee .cust-marquee-word {
  color: rgba(255, 255, 255, 0.55);
  font-size: 22px;
}

.ink-hero__marquee .cust-marquee-word:hover {
  color: var(--brand-400);
}

.ink-hero__marquee .cust-marquee-track {
  animation: marq 40s linear infinite;
}

/* Home header — floating pill at top, transparent on scroll */
#cust-root[data-page="home"] #cust-header {
  position: fixed;
  top: 36px;
  left: 36px;
  right: 36px;
  width: auto;
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition:
    top 0.3s ease,
    left 0.3s ease,
    right 0.3s ease,
    border-radius 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

#cust-root[data-page="home"] #cust-header.solid {
  top: 0;
  left: 0;
  right: 0;
  border-radius: 0;
  background: rgba(10, 10, 10, 0.35) !important;
  backdrop-filter: blur(14px);
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none;
}

#cust-root[data-page="home"] #cust-header .cust-inner {
  height: 64px;
  max-width: none;
  transition: height 0.3s ease;
}

#cust-root[data-page="home"] #cust-header.solid .cust-inner {
  max-width: 1240px;
  height: 78px;
}

#cust-root[data-page="home"] .cust-navlinks a {
  color: #3d3d3d;
  font-size: 14px;
  transition: color 0.2s, background 0.2s;
}

#cust-root[data-page="home"] .cust-navlinks a:hover,
#cust-root[data-page="home"] .cust-navlinks a.active {
  color: var(--brand-600);
  background: rgba(150, 48, 66, 0.08);
}

#cust-root[data-page="home"] #cust-header.solid .cust-navlinks a {
  color: rgba(255, 255, 255, 0.82);
}

#cust-root[data-page="home"] #cust-header.solid .cust-navlinks a:hover,
#cust-root[data-page="home"] #cust-header.solid .cust-navlinks a.active {
  color: var(--brand-400);
  background: rgba(150, 48, 66, 0.12);
}

#cust-root[data-page="home"] #cust-cart-btn {
  border-color: rgba(0, 0, 0, 0.1);
  color: #2a2a2a;
  transition: color 0.2s, border-color 0.2s;
}

#cust-root[data-page="home"] #cust-header.solid #cust-cart-btn {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--cream);
}

#cust-root[data-page="home"] .cust-burger {
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #2a2a2a !important;
  transition: color 0.2s, border-color 0.2s;
}

#cust-root[data-page="home"] #cust-header.solid .cust-burger {
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: var(--cream) !important;
}

#cust-root[data-page="home"] #cust-header:not(.solid) .btn-ghost {
  color: #3d3d3d;
  border-color: rgba(0, 0, 0, 0.12);
}

#cust-root[data-page="home"] #cust-header.solid .btn-ghost {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.15);
}

#cust-root[data-page="home"] #cust-header.solid .btn-ghost:hover {
  color: var(--brand-400);
  border-color: rgba(201, 86, 104, 0.35);
  background: rgba(150, 48, 66, 0.1);
}

#cust-root[data-page="home"] #cust-header:not(.solid) .btn-ghost:hover {
  color: var(--brand-600);
  border-color: rgba(150, 48, 66, 0.25);
  background: rgba(150, 48, 66, 0.06);
}

#cust-root[data-page="home"] #cust-header:not(.solid) .btn-gold {
  background: #5c4a42;
  color: #fff;
  box-shadow: none;
}

#cust-root[data-page="home"] #cust-header.solid .btn-gold {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  box-shadow: 0 4px 16px rgba(150, 48, 66, 0.35);
}

#cust-root[data-page="home"] #cust-header:not(.solid) .btn-gold:hover {
  background: #4a3b35;
}

#cust-root[data-page="home"] #cust-header.solid .btn-gold:hover {
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
}

@media (max-width: 1024px) {
  .ink-hero__panel {
    width: min(62%, 520px);
    border-top-left-radius: clamp(32px, 8vw, 72px);
  }

  #cust-root h1.ink-hero__headline {
    font-size: clamp(30px, 5.5vw, 44px) !important;
  }
}

@media (max-width: 900px) {
  #cust-root[data-page="home"] #cust-header {
    top: 16px;
    left: 16px;
    right: 16px;
    border-radius: 20px;
  }

  #cust-root[data-page="home"] #cust-header.solid {
    top: 0;
    left: 0;
    right: 0;
    border-radius: 0;
  }

  .ink-hero-wrap {
    padding: 12px 12px 0;
  }

  .ink-hero {
    min-height: calc(100svh - 24px);
    border-radius: 32px;
  }

  .ink-hero__panel {
    width: min(76%, 460px);
    border-top-left-radius: 44px;
  }

  .ink-hero__marquee .cust-marquee-word {
    font-size: 17px;
    gap: 36px;
  }

  .ink-hero__marquee .cust-marquee-row {
    gap: 36px;
    padding-right: 36px;
  }

  .ink-hero__marquee .cust-marquee-track {
    animation: marq 120s linear infinite !important;
  }
}

@media (max-width: 640px) {
  .ink-hero-wrap {
    padding: 12px 12px 0;
  }

  .ink-hero {
    --ink-hero-marquee-h: 48px;
    border-radius: 24px;
    min-height: calc(100svh - 16px);
    min-height: calc(100dvh - 16px);
  }

  #cust-root[data-page="home"] #cust-header {
    top: 16px;
    left: 16px;
    right: 16px;
    border-radius: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.6) !important;
  }

  #cust-root[data-page="home"] #cust-header .cust-inner {
    height: 56px;
    padding: 0 16px;
  }

  .ink-hero__media img {
    object-position: center 30%;
  }

  .ink-hero__panel {
    right: 0;
    left: 0;
    width: 100%;
    max-width: none;
    padding: 20px 20px 22px;
    text-align: center;
    border: none;
    border-top: 0.5px solid rgba(255, 255, 255, 0.18);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    background:
      linear-gradient(180deg, rgba(18, 14, 12, 0.72), rgba(10, 8, 7, 0.88)),
      rgba(255, 255, 255, 0.04);
  }

  .ink-hero__sub {
    margin: 14px auto 0;
    font-size: 14px;
    line-height: 1.5;
    max-width: none;
  }

  #cust-root h1.ink-hero__headline {
    font-size: clamp(24px, 6.8vw, 32px) !important;
    line-height: 1.15 !important;
  }

  .ink-hero__marquee.cust-marquee {
    padding: 12px 0;
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }

  .ink-hero__marquee .cust-marquee-word {
    font-size: 15px;
  }

  .ink-hero__marquee .cust-marquee-row {
    gap: 28px;
    padding-right: 28px;
  }

  .ink-hero__marquee .cust-marquee-track {
    animation: marq 150s linear infinite !important;
  }

  #story.cust-home-block {
    padding: 48px 20px 28px;
  }

  .cust-home-story__intro {
    text-align: center;
    margin: 0 auto 40px;
    padding: 0 4px;
  }

  .cust-home-story__intro .eyebrow {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    font-size: 10px;
    letter-spacing: 0.14em;
    line-height: 1.5;
    text-align: center;
    white-space: normal;
  }

  .cust-home-story__intro .eyebrow::before {
    display: none;
  }

  #cust-root h2.cust-home-story__title {
    white-space: normal;
    font-size: clamp(22px, 6.2vw, 30px) !important;
    line-height: 1.2 !important;
    text-align: center;
    padding: 0 8px;
  }

  .cust-home-story__lead {
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
    padding: 0 8px;
  }

  .cust-home-story__intro .btn {
    margin-left: auto;
    margin-right: auto;
  }
}

.cust-home-block,
.cust-home-wrap {
  padding-top: 110px;
  padding-bottom: 110px;
}

.cust-home-story__intro {
  text-align: center;
  margin: 0 auto 64px;
}

#cust-root h2.cust-home-story__title {
  margin: 0;
  white-space: nowrap;
  font-size: clamp(17px, 3.6vw, 32px) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.01em;
}

.cust-home-story__lead {
  margin: 20px auto 0;
  max-width: 640px;
}

.cust-home-bands {
  display: flex;
  flex-direction: column;
  gap: 110px;
}

.cust-home-head {
  margin-bottom: 52px;
}

.cust-home-head__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cust-home-head__row h2 {
  margin: 0;
  min-width: 0;
}

.cust-home-head__row .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .cust-home-block,
  .cust-home-wrap {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  #story.cust-home-block {
    padding-top: 64px;
  }

  .cust-home-reviews {
    padding-bottom: 64px;
  }

  .cust-home-bands {
    gap: 48px;
  }

  .cust-home-bands .cust-band__action {
    display: flex !important;
    justify-content: center !important;
    width: 100%;
    text-align: center;
  }

  .cust-home-bands .cust-band__action .btn {
    margin-inline: auto;
  }
}
