/* SJC Hero — "Wear Your Story": one dress, re-draped in print after print. Needs rail.css for the shared tokens. */

.sjc-hero {
  position: relative;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: clamp(28px, 5vw, 64px) 16px clamp(36px, 5vw, 64px);
  background:
    radial-gradient(60% 80% at 78% 40%, rgba(62, 64, 149, 0.08), rgba(62, 64, 149, 0) 70%),
    var(--sr-calico);
  color: var(--sr-ink);
  font-family: var(--sr-sans);
}

.sjc-hero .sh-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-areas:
    "copy stage"
    "actions stage";
  grid-template-rows: auto 1fr;
  column-gap: clamp(24px, 4vw, 64px);
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}
.sjc-hero .sh-copy { grid-area: copy; align-self: end; padding-top: clamp(12px, 5vw, 72px); }
.sjc-hero .sh-stage { grid-area: stage; }
.sjc-hero .sh-actions { grid-area: actions; }

.sjc-hero .sh-eyebrow {
  margin: 0 0 18px;
  font: 700 11.5px/1.4 var(--sr-sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sr-indigo);
}
.sjc-hero .sh-title {
  margin: 0 0 18px;
  font: 700 clamp(44px, 6.4vw, 84px)/0.98 var(--sr-head);
  letter-spacing: -0.03em;
  color: var(--sr-ink);
}
.sjc-hero .sh-title span {
  display: block;
  font: 400 1.04em/1 var(--sr-serif);
  letter-spacing: -0.01em;
  color: var(--sr-indigo);
}
.sjc-hero .sh-lede {
  max-width: 36ch;
  margin: 0;
  font: 400 clamp(16px, 1.5vw, 19px)/1.55 var(--sr-sans);
  color: var(--sr-muted);
}

/* Calls to action */
.sjc-hero .sh-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 3vw, 34px);
}
.sjc-hero .sh-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 8px 28px;
  border-radius: 999px;
  font: 700 15px/1.2 var(--sr-sans);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.sjc-hero .sh-cta:active { transform: scale(0.98); }
.sjc-hero .sh-cta:focus-visible { outline: 2px solid var(--sr-indigo); outline-offset: 3px; }
.sjc-hero .sh-cta small { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; opacity: 0.85; }
.sjc-hero .sh-cta--main { background: var(--sr-red); color: #fff; box-shadow: 0 10px 24px rgba(235, 49, 55, 0.28); }
.sjc-hero .sh-cta--main:hover { background: #d2252b; color: #fff; }
.sjc-hero .sh-cta--alt { border: 1.5px solid var(--sr-ink); color: var(--sr-ink); background: transparent; }
.sjc-hero .sh-cta--alt:hover { background: var(--sr-ink); color: #fff; }
.sjc-hero .sh-more { margin: 16px 0 0; font: 600 14px/1.4 var(--sr-sans); }
.sjc-hero .sh-more a { color: var(--sr-indigo); text-underline-offset: 4px; }
.sjc-hero .sh-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: clamp(22px, 3vw, 36px) 0 0;
  padding: 0;
  list-style: none;
  font: 600 12.5px/1.4 var(--sr-sans);
  color: var(--sr-muted);
}
.sjc-hero .sh-proof li { display: flex; align-items: center; gap: 7px; margin: 0; }
.sjc-hero .sh-proof li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sr-red);
}

/* ---------- The stage: an indigo arch, the dress, its swing tag, the swatches ---------- */

.sjc-hero .sh-stage {
  position: relative;
  display: grid;
  justify-items: center;
  padding-top: 8px;
}
.sjc-hero .sh-arch {
  position: absolute;
  top: 6%;
  left: 50%;
  width: min(78%, 400px);
  height: 74%;
  transform: translateX(-50%);
  border-radius: 999px 999px 18px 18px;
  background: linear-gradient(180deg, #4b4ea6 0%, var(--sr-indigo) 55%, #2c2e72 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.sjc-hero .sh-arch::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(201, 149, 102, 0.55);
  border-radius: inherit;
}

.sjc-hero .sh-figures {
  position: relative;
  height: min(600px, 66vh);
  max-width: 100%;
}
.sjc-hero .sh-figures::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -8px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(40, 28, 16, 0.28), rgba(40, 28, 16, 0));
  z-index: 0;
}
.sjc-hero .sh-fig {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  object-fit: contain;
  object-position: 50% 100%;
  opacity: 0;
  user-select: none;
  -webkit-user-drag: none;
}
.sjc-hero .sh-fig.is-current { opacity: 1; z-index: 2; }
/* The next print drapes down over the last one, top to bottom, like cloth falling into place. */
.sjc-hero .sh-fig.is-entering {
  opacity: 1;
  z-index: 3;
  clip-path: inset(0 0 100% 0);
}
.sjc-hero .sh-fig.is-entering.is-in {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.1s cubic-bezier(0.65, 0.05, 0.36, 1);
}

/* Swing tag on a string */
.sjc-hero .sh-tag {
  position: absolute;
  top: 34%;
  right: max(0px, calc(50% - 290px));
  z-index: 5;
  width: 168px;
  transform-origin: 50% -46px;
  transform: rotate(-3deg);
}
.sjc-hero .sh-tag::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -46px;
  width: 1px;
  height: 52px;
  background: linear-gradient(180deg, rgba(201, 149, 102, 0), #b98b5c 40%);
}
.sjc-hero .sh-tag-card {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 18px 16px 14px;
  border-radius: 6px 6px 10px 10px;
  background: var(--sr-paper);
  box-shadow: 0 12px 28px rgba(40, 28, 16, 0.18);
  color: var(--sr-ink);
  text-decoration: none;
}
.sjc-hero .sh-tag-card::before {
  content: "";
  position: absolute;
  top: 7px;
  left: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sr-calico);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}
.sjc-hero .sh-tag-eyebrow { font: 700 9.5px/1.3 var(--sr-sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--sr-muted); }
.sjc-hero .sh-tag-name { font: 400 17px/1.2 var(--sr-serif); color: var(--sr-ink); }
.sjc-hero .sh-tag-meta { font: 700 12px/1.3 var(--sr-sans); color: var(--sr-indigo); }
.sjc-hero .sh-tag-ai {
  justify-self: start;
  margin-top: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(62, 64, 149, 0.1);
  color: var(--sr-indigo);
  font: 800 9px/1.4 var(--sr-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sjc-hero .sh-tag-ai[hidden] { display: none; }
.sjc-hero .sh-tag.is-swinging { animation: sh-swing 1.4s cubic-bezier(0.3, 0.7, 0.4, 1); }
@keyframes sh-swing {
  0% { transform: rotate(-3deg); }
  25% { transform: rotate(5deg); }
  55% { transform: rotate(-5deg); }
  80% { transform: rotate(-1deg); }
  100% { transform: rotate(-3deg); }
}

/* Swatches: pick a print yourself */
.sjc-hero .sh-swatches {
  position: relative;
  z-index: 5;
  display: flex;
  gap: 10px;
  margin-top: 26px;
}
.sjc-hero .sh-swatch {
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ddd center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(40, 28, 16, 0.12);
  cursor: pointer;
  transition: transform 0.2s var(--sr-settle), box-shadow 0.2s ease;
}
.sjc-hero .sh-swatch:hover { transform: translateY(-2px); }
.sjc-hero .sh-swatch[aria-checked="true"] { box-shadow: 0 0 0 3px var(--sr-calico), 0 0 0 5px var(--sr-indigo); }
.sjc-hero .sh-swatch:focus-visible { outline: 2px solid var(--sr-indigo); outline-offset: 4px; }
.sjc-hero .sh-caption {
  margin: 12px 0 0;
  font: 400 15px/1.4 var(--sr-serif);
  color: var(--sr-muted);
  text-align: center;
}

/* ---------- Phones: headline, then the dress, then the buttons ---------- */

@media (max-width: 860px) {
  .sjc-hero .sh-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "stage" "actions";
    grid-template-rows: auto;
  }
  .sjc-hero { padding-top: 22px; }
  .sjc-hero .sh-copy { padding-top: 0; text-align: center; }
  .sjc-hero .sh-eyebrow { margin-bottom: 10px; font-size: 10.5px; }
  .sjc-hero .sh-lede { margin: 0 auto; font-size: 15px; }
  .sjc-hero .sh-title { margin-bottom: 10px; font-size: clamp(38px, 11vw, 52px); }
  .sjc-hero .sh-stage { margin-top: 10px; }
  .sjc-hero .sh-figures { height: min(360px, 46vh); }
  .sjc-hero .sh-swatches { margin-top: 16px; }
  .sjc-hero .sh-caption { font-size: 14px; }
  .sjc-hero .sh-arch { width: min(70%, 300px); }
  .sjc-hero .sh-tag { top: 30%; right: 2%; width: 132px; }
  .sjc-hero .sh-tag-card { padding: 16px 12px 12px; }
  .sjc-hero .sh-tag-name { font-size: 15px; }
  .sjc-hero .sh-swatch { width: 36px; height: 36px; }
  .sjc-hero .sh-actions { text-align: center; }
  .sjc-hero .sh-ctas { justify-content: center; margin-top: 22px; }
  .sjc-hero .sh-cta { flex: 1 1 100%; }
  .sjc-hero .sh-proof { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .sjc-hero .sh-fig.is-entering.is-in { transition-duration: 0.01ms; }
  .sjc-hero .sh-tag.is-swinging { animation: none; }
}
