/* ==========================================================================
   Postfy Solutions 2.0 — hub aligned to Features / Pricing
   ========================================================================== */

html:has(body.pf-body--solutions) {
  --sx-dock-top: 5.6rem;
  --sx-scroll-pad: 9.2rem;
  scroll-padding-top: var(--sx-scroll-pad);
  scroll-behavior: auto;
}
body.pf-body--solutions {
  background: var(--pf-ink);
  color: #f7f4ef;
}
body.pf-body--solutions .pf-main {
  background: var(--pf-ink);
  padding-top: 0;
  overflow-x: clip;
}
body.pf-body--solutions :focus-visible {
  outline: 2px solid var(--pf-cyan);
  outline-offset: 3px;
}
body.pf-body--solutions .pf-header--home:not(.is-scrolled):not(.is-mega-open) .pf-btn--primary {
  background: var(--pf-coral);
  color: #fff;
}
body.pf-body--solutions .pf-btn--ghost {
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55);
}
body.pf-body--solutions .sx-sec--paper .pf-btn--ghost {
  color: var(--pf-ink);
  box-shadow: inset 0 0 0 1.5px rgba(11, 11, 12, 0.16);
}
body.pf-body--solutions .pf-footer {
  background: #080809;
  color: rgba(255, 255, 255, 0.72);
}
body.pf-body--solutions .pf-footer a { color: rgba(255, 255, 255, 0.78); }
body.pf-body--solutions .pf-footer a:hover { color: #fff; }
body.pf-body--solutions .pf-footer__heading { color: #fff; }
body.pf-body--solutions .pf-footer .pf-social__link,
body.pf-body--solutions .pf-footer .pf-social__link svg {
  color: #fff;
  fill: #fff;
}
body.pf-body--solutions .pf-footer .pf-social__link:hover,
body.pf-body--solutions .pf-footer .pf-social__link:hover svg {
  color: #111;
  fill: #111;
}

.sx-kicker {
  display: inline-flex;
  margin: 0 0 0.7rem;
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  background: rgba(255, 45, 85, 0.14);
  color: #ff8aa0;
  border: 1px solid rgba(255, 45, 85, 0.28);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sx-sec--paper .sx-kicker {
  background: rgba(255, 45, 85, 0.1);
  color: var(--pf-coral);
  border-color: rgba(255, 45, 85, 0.22);
}
.sx-lead {
  margin: 1.15rem 0 0;
  max-width: 36rem;
  color: rgba(247, 244, 239, 0.7);
  font-size: 1.08rem;
  line-height: 1.5;
}
.sx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}
.sx-actions .pf-btn--primary {
  background: var(--pf-coral);
  color: #fff;
}

/* —— Hero —— */
.sx-hero {
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 7.2rem 0 2.6rem;
  overflow: hidden;
}
.sx-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 11, 12, 0.55) 0%, rgba(11, 11, 12, 0.72) 42%, #0b0b0c 100%),
    url("/img/hero-atelier-bg.jpg") center / cover no-repeat;
}
.sx-hero__grid {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 2.4rem 3rem;
  align-items: center;
}
.sx-hero h1 {
  margin: 0;
  max-width: 11em;
  font-family: var(--pf-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5.8vw, 4.4rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}
.sx-hero .sx-kicker { animation: sx-rise 0.7s 0.04s both; }
.sx-hero h1 { animation: sx-rise 0.85s 0.12s both; }
.sx-hero .sx-lead { animation: sx-rise 0.7s 0.26s both; }
.sx-hero .sx-actions { animation: sx-rise 0.7s 0.38s both; }

.sx-stage {
  position: relative;
  min-height: 28rem;
}
.sx-shot {
  position: absolute;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.38);
  background: #161618;
  margin: 0;
}
.sx-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sx-shot--poster {
  width: 58%;
  aspect-ratio: 4 / 3;
  right: 2%;
  top: 0;
  z-index: 2;
  animation: sx-pop 0.9s 0.2s both;
}
.sx-shot--cafe {
  width: 36%;
  aspect-ratio: 4 / 5;
  left: 0;
  top: 12%;
  z-index: 3;
  animation: sx-pop 0.9s 0.34s both;
}
.sx-shot--run {
  width: 42%;
  aspect-ratio: 16 / 10;
  left: 22%;
  bottom: 0;
  z-index: 4;
  animation: sx-pop 0.9s 0.46s both;
}

@keyframes sx-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes sx-pop {
  from { opacity: 0; transform: translateY(22px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes sx-float {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

/* —— Subnav (same dock as Features) —— */
body.pf-body--solutions .pf-header--home .pf-header__bar {
  transition:
    background 0.45s ease,
    box-shadow 0.45s ease,
    color 0.35s ease,
    border-radius 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
body.pf-body--solutions .pf-header.is-sx-docked:not(.is-mega-open) .pf-header__bar {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: none;
}
.sx-nav {
  position: sticky;
  top: var(--sx-dock-top);
  z-index: 8;
  padding: 0 var(--pf-gutter) 0.5rem;
  background: transparent;
  pointer-events: none;
}
.sx-nav__bar {
  max-width: var(--pf-max);
  margin: 0 auto;
  padding: 0.32rem 0.38rem;
  border-radius: var(--pf-chrome-radius);
  background: #161618;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  pointer-events: auto;
  transition:
    border-radius 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease;
}
.sx-nav.is-docked .sx-nav__bar {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.28),
    inset 1px 0 0 rgba(255, 255, 255, 0.1),
    inset -1px 0 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}
.sx-nav__list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.sx-nav__list::-webkit-scrollbar { display: none; }
.sx-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  color: rgba(247, 244, 239, 0.62);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.sx-nav a svg {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sx-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.sx-nav a.is-on { background: #fff; color: #111; }

/* —— Path —— */
.sx-path {
  padding: 0.4rem 0 3.2rem;
}
.sx-path__list {
  list-style: none;
  margin: 0;
  padding: 1.15rem 1.3rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 1.6rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.sx-path li {
  position: relative;
  display: grid;
  gap: 0.18rem;
}
.sx-path li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0.55rem;
  right: -0.95rem;
  width: 1.9rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(45, 226, 230, 0.55), rgba(45, 226, 230, 0));
}
.sx-path li:nth-child(1) { animation: sx-rise 0.7s 0.08s both; }
.sx-path li:nth-child(2) { animation: sx-rise 0.7s 0.16s both; }
.sx-path li:nth-child(3) { animation: sx-rise 0.7s 0.24s both; }
.sx-path li:nth-child(4) { animation: sx-rise 0.7s 0.32s both; }
.sx-path span {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pf-cyan);
}
.sx-path strong {
  font-family: var(--pf-display);
  font-size: 1.12rem;
  letter-spacing: -0.03em;
}
.sx-path em {
  font-style: normal;
  color: rgba(247, 244, 239, 0.55);
  font-size: 0.88rem;
  line-height: 1.4;
}

/* —— Sections —— */
.sx-sec {
  padding: 4.6rem 0 5rem;
}
.sx-sec--paper {
  background: var(--pf-cream);
  color: var(--pf-ink);
}
#sx-role,
#sx-ops,
#sx-alts {
  scroll-margin-top: 0;
}
.sx-sec__head {
  max-width: 40rem;
  margin: 0 0 2.2rem;
}
.sx-sec__head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--pf-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.05em;
  line-height: 0.98;
}
.sx-sec__head p:not(.sx-kicker) {
  margin: 0;
  color: rgba(247, 244, 239, 0.66);
  font-size: 1.05rem;
  line-height: 1.5;
}
.sx-sec--paper .sx-sec__head p:not(.sx-kicker) {
  color: rgba(11, 11, 12, 0.62);
}

/* —— Cards —— */
.sx-card {
  display: grid;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: #141416;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.sx-sec--paper .sx-card {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(11, 11, 12, 0.08);
}
.sx-card:hover {
  transform: translateY(-5px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 22px 40px rgba(0, 0, 0, 0.28);
}
.sx-sec--paper .sx-card:hover {
  box-shadow:
    inset 0 0 0 1px rgba(11, 11, 12, 0.18),
    0 18px 36px rgba(11, 11, 12, 0.08);
}
.sx-card:hover .sx-card__go {
  transform: translateX(3px);
}
.sx-card__media {
  margin: 0;
  overflow: hidden;
  background: #111;
}
.sx-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.sx-card:hover .sx-card__media img {
  transform: scale(1.04);
}
.sx-card__body {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 0.45rem;
  padding: 1.25rem 1.3rem 1.35rem;
}
.sx-card__body h3 {
  margin: 0;
  font-family: var(--pf-display);
  font-weight: 750;
  font-size: 1.35rem;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.sx-card__body p:not(.sx-kicker) {
  margin: 0;
  color: rgba(247, 244, 239, 0.62);
  font-size: 0.94rem;
  line-height: 1.45;
}
.sx-sec--paper .sx-card__body p:not(.sx-kicker) {
  color: rgba(11, 11, 12, 0.58);
}
.sx-card__go {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  font-weight: 750;
  color: var(--pf-cyan);
  transition: transform 0.25s ease;
}
.sx-sec--paper .sx-card__go { color: #0d7c81; }

.sx-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.sx-split--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.sx-card--split {
  grid-template-rows: minmax(15rem, 20rem) auto;
}
.sx-card--split .sx-card__media { min-height: 15rem; }
.sx-split--3 .sx-card--split:nth-child(2) {
  grid-template-rows: minmax(16.5rem, 22rem) auto;
}
.sx-split--3 .sx-card--split:nth-child(3) .sx-card__media img {
  object-position: 50% 35%;
}

.sx-split.pf-reveal,
.sx-grid.pf-reveal,
.sx-band.pf-reveal {
  opacity: 1;
  transform: none;
}
.sx-split.pf-reveal > .sx-card,
.sx-grid.pf-reveal > .sx-card,
.sx-band.pf-reveal > .sx-card {
  opacity: 0;
  transition:
    opacity 0.7s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease;
  transition-delay: var(--d, 0s);
}
.sx-split.pf-reveal > .sx-card:nth-child(1),
.sx-grid.pf-reveal > .sx-card:nth-child(1) { transform: translateY(22px); }
.sx-split.pf-reveal > .sx-card:nth-child(2),
.sx-grid.pf-reveal > .sx-card:nth-child(2) { transform: translateY(28px) translateX(8px); }
.sx-split.pf-reveal > .sx-card:nth-child(3),
.sx-grid.pf-reveal > .sx-card:nth-child(3) { transform: translateY(18px) translateX(-6px); }
.sx-grid.pf-reveal > .sx-card:nth-child(4) { transform: translateY(26px); }
.sx-band.pf-reveal > .sx-card:nth-child(1) { transform: translateX(-16px); }
.sx-band.pf-reveal > .sx-card:nth-child(2) { transform: translateX(16px); }
.sx-split.pf-reveal.is-in > .sx-card,
.sx-grid.pf-reveal.is-in > .sx-card,
.sx-band.pf-reveal.is-in > .sx-card {
  opacity: 1;
  transform: none;
}
.sx-split.pf-reveal.is-in > .sx-card:hover,
.sx-grid.pf-reveal.is-in > .sx-card:hover,
.sx-band.pf-reveal.is-in > .sx-card:hover {
  transform: translateY(-5px);
}

.sx-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem;
}
.sx-card--grid {
  grid-template-columns: minmax(13.5rem, 1fr) minmax(0, 1.05fr);
  align-items: stretch;
}
.sx-card--grid .sx-card__media { min-height: 13.5rem; }
.sx-grid .sx-card--grid:nth-child(2) .sx-card__media img,
.sx-grid .sx-card--grid:nth-child(4) .sx-card__media img {
  object-position: 82% 50%;
}
.sx-grid .sx-card--grid:nth-child(3) .sx-card__media img {
  object-position: 50% 50%;
}
.sx-card--grid .sx-card__body {
  padding: 1.35rem 1.4rem 1.4rem;
  align-content: center;
}
.sx-card--grid .sx-card__body h3 { font-size: 1.32rem; }

.sx-band {
  display: grid;
  gap: 1rem;
}
.sx-card--band {
  grid-template-columns: 10rem minmax(0, 1fr);
  align-items: center;
}
.sx-card--band .sx-card__media {
  min-height: 10rem;
  max-height: 11rem;
  margin: 0.85rem 0 0.85rem 0.85rem;
  border-radius: 16px;
}
.sx-card--band .sx-card__body {
  padding: 1.35rem 1.5rem 1.35rem 1.15rem;
  align-content: center;
}
.sx-card--band .sx-card__body h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.sx-card--band .sx-card__body p:not(.sx-kicker) {
  max-width: 42rem;
  font-size: 1.02rem;
}

body.pf-body--solutions .pf-marquee__track {
  display: flex;
  width: max-content;
}
body.pf-body--solutions .pf-marquee__set {
  flex: 0 0 auto;
}

/* —— English index —— */
.sx-lang {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}
.sx-lang a {
  display: grid;
  gap: 0.3rem;
  min-height: 100%;
  padding: 1.15rem 1.2rem;
  border-radius: 18px;
  text-decoration: none;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(11, 11, 12, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.sx-lang a:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 0 0 1px rgba(11, 11, 12, 0.12),
    0 16px 32px rgba(11, 11, 12, 0.08);
}
.sx-lang strong {
  font-family: var(--pf-display);
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}
.sx-lang span {
  color: rgba(11, 11, 12, 0.56);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* —— Finale —— */
.sx-finale {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 5.5rem;
  background: var(--pf-coral);
  color: #fff;
  text-align: center;
}
.sx-finale__inner {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 var(--pf-gutter);
}
.sx-finale .sx-kicker {
  margin-bottom: 1.35rem;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.sx-finale h2 {
  margin: 0 auto;
  max-width: 16ch;
  font-family: var(--pf-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 6.2vw, 3.8rem);
  letter-spacing: -0.05em;
  line-height: 1;
  text-wrap: balance;
}
.sx-finale p {
  margin: 1rem auto 0;
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.84);
}
.sx-finale .sx-actions { justify-content: center; }
.sx-finale .pf-btn--primary { background: #fff; color: var(--pf-ink); }
.sx-finale .pf-btn--ghost {
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55);
}
.sx-finale__marks { position: absolute; inset: 0; pointer-events: none; }
.sx-finale__marks img {
  position: absolute;
  width: 7rem;
  height: 9rem;
  object-fit: cover;
  border-radius: 14px;
  opacity: 0.28;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
  animation: sx-float 8s ease-in-out infinite alternate;
}
.sx-finale__marks img:nth-child(1) { top: 14%; left: 8%; }
.sx-finale__marks img:nth-child(2) { top: 16%; right: 9%; }
.sx-finale__marks img:nth-child(3) { bottom: 14%; left: 16%; }
.sx-finale__marks img:nth-child(4) { bottom: 10%; right: 14%; }

@media (max-width: 1180px) {
  .sx-split--3 { grid-template-columns: 1fr; }
  .sx-split--3 .sx-card--split:nth-child(2) {
    grid-template-rows: minmax(15rem, 20rem) auto;
  }
}

@media (max-width: 1100px) {
  .sx-path__list { grid-template-columns: 1fr 1fr; }
  .sx-path li:nth-child(2)::after,
  .sx-path li:nth-child(4)::after { display: none; }
}

@media (max-width: 980px) {
  .sx-hero {
    display: block;
    padding: 7.2rem 0 2.4rem;
  }
  .sx-hero__grid { display: block; }
  .sx-stage {
    min-height: 22rem;
    margin-top: 2rem;
  }
  .sx-split,
  .sx-split--3,
  .sx-grid,
  .sx-lang { grid-template-columns: 1fr; }
  .sx-card--band { grid-template-columns: 8.5rem minmax(0, 1fr); }
  .sx-card--band .sx-card__media {
    min-height: 8.5rem;
    max-height: 9.5rem;
    margin: 0.75rem 0 0.75rem 0.75rem;
  }
}

@media (max-width: 640px) {
  .sx-kicker {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    letter-spacing: 0.1em;
  }
  .sx-hero h1 { font-size: clamp(2.2rem, 12vw, 3rem); }
  .sx-stage { min-height: 18rem; }
  .sx-grid,
  .sx-path__list { grid-template-columns: 1fr; }
  .sx-path li::after { display: none; }
  .sx-card--grid { grid-template-columns: 1fr; }
  .sx-actions .pf-btn { width: 100%; }
  .sx-nav { top: var(--sx-dock-top); }
  .sx-card--band { grid-template-columns: 1fr; }
  .sx-card--band .sx-card__media {
    min-height: 9rem;
    max-height: 10rem;
    margin: 0.75rem 0.75rem 0;
  }
  .sx-finale__marks img { width: 4.5rem; height: 6rem; }
  html:has(body.pf-body--solutions) { --sx-scroll-pad: 8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(body.pf-body--solutions) { scroll-behavior: auto; }
  body.pf-body--solutions .pf-header--home .pf-header__bar,
  .sx-nav__bar { transition: none; }
  .sx-hero .sx-kicker,
  .sx-hero h1,
  .sx-hero .sx-lead,
  .sx-hero .sx-actions,
  .sx-shot,
  .sx-card,
  .sx-path li,
  .sx-finale__marks img,
  .sx-split.pf-reveal > .sx-card,
  .sx-grid.pf-reveal > .sx-card,
  .sx-band.pf-reveal > .sx-card {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
