.hero {
  min-height: calc(100vh - 80px);
  display: grid;
  align-items: center;
  padding: 70px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 72% 43%,
    rgba(255, 255, 255, 0.95) 0 12%,
    rgba(225, 203, 158, 0.28) 26%,
    transparent 55%
  );
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(380px, 1.12fr);
  gap: 30px;
  align-items: center;
  position: relative;
}
.hero-copy {
  z-index: 2;
}
.hero-copy .lead {
  max-width: 580px;
  margin-top: 28px;
}
.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: start;
}
.intro-copy {
  padding: 38px;
  border-radius: var(--radius);
}
.path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.path-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: var(--radius);
}
.path-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.path-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 28%, rgba(27, 23, 17, 0.78));
  z-index: -1;
}
.path-card h3,
.path-card p {
  color: #fff;
}
.path-card h3 {
  font-size: 2rem;
  font-weight: 400;
  margin: 0;
}
.path-card p {
  margin: 8px 0 0;
  opacity: 0.82;
}
.featured-row {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}
.cta {
  padding: 50px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.cta .section-title {
  max-width: 700px;
}
@media (max-width: 900px) {
  .hero-grid,
  .intro-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 45px;
  }
  .hero-copy {
    text-align: center;
  }
  .hero-copy .lead {
    margin-inline: auto;
  }
  .actions {
    justify-content: center;
  }
  .path-grid {
    grid-template-columns: 1fr;
  }
  .featured-row,
  .cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

.home-project-stack {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}
.home-project-panel {
  position: relative;
  display: block;
  min-height: 150px;
  border-radius: 30px;
  overflow: hidden;
  transition: min-height 0.75s cubic-bezier(0.22, 0.8, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(102, 73, 25, 0.12);
}
.home-project-panel.is-open {
  min-height: 520px;
}
.home-project-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-project-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(36, 28, 20, 0.76),
    rgba(36, 28, 20, 0.08) 70%
  );
}
.home-project-panel > div:last-child {
  position: absolute;
  left: 32px;
  bottom: 28px;
  color: #fff;
  z-index: 2;
}
.home-project-panel span {
  font-size: 0.72rem;
  opacity: 0.65;
}
.home-project-panel h3 {
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-weight: 400;
  margin: 4px 0;
}
.home-project-panel p {
  margin: 0;
  opacity: 0.78;
}
.cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 34px;
  align-items: center;
}
.cta-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.cta .btn {
  grid-column: 2;
  grid-row: 1/3;
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-crystal {
    width: min(430px, 78%);
  }
  .home-project-panel.is-open {
    min-height: 430px;
  }
  .cta {
    grid-template-columns: 1fr;
  }
  .cta .btn {
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
  }
}

/* Original SORIEL crystal hero restored */
.hero-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(430px, 58vw, 690px);
  isolation: isolate;
}
.glass-signature-system {
  position: relative;
  width: min(100%, 720px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 34px 55px rgba(67, 82, 112, 0.18));
}
.glass-signature-system::before {
  content: "";
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.75),
    rgba(163, 188, 222, 0.13) 42%,
    transparent 68%
  );
  filter: blur(10px);
}
.soriel-crystal-snowflake {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.soriel-crystal-snowflake .hero-crystal {
  width: min(100%, 720px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 44px rgba(78, 92, 122, 0.2));
}
.snow-orbit {
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  animation: sorielOrbit 18s linear infinite;
}
.snow-orbit span,
.soriel-snow-dust span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 14px rgba(143, 181, 230, 0.65);
}
.snow-orbit span:nth-child(1) {
  top: 10%;
  left: 48%;
}
.snow-orbit span:nth-child(2) {
  top: 58%;
  right: 4%;
}
.snow-orbit span:nth-child(3) {
  bottom: 8%;
  left: 22%;
}
.soriel-snow-dust {
  position: absolute;
  inset: 0;
}
.soriel-snow-dust span:nth-child(1) {
  left: 12%;
  top: 20%;
}
.soriel-snow-dust span:nth-child(2) {
  left: 25%;
  top: 70%;
}
.soriel-snow-dust span:nth-child(3) {
  left: 38%;
  top: 14%;
}
.soriel-snow-dust span:nth-child(4) {
  left: 52%;
  top: 84%;
}
.soriel-snow-dust span:nth-child(5) {
  left: 65%;
  top: 25%;
}
.soriel-snow-dust span:nth-child(6) {
  left: 78%;
  top: 62%;
}
.soriel-snow-dust span:nth-child(7) {
  left: 88%;
  top: 30%;
}
.soriel-snow-dust span:nth-child(8) {
  left: 18%;
  top: 48%;
}
.soriel-snow-dust span:nth-child(9) {
  left: 58%;
  top: 52%;
}
.soriel-snow-dust span:nth-child(10) {
  left: 82%;
  top: 82%;
}
@keyframes sorielOrbit {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 900px) {
  .hero-media {
    min-height: 440px;
  }
  .glass-signature-system {
    width: min(92vw, 620px);
  }
}

/* Home scale and performance refinements */
.hero-grid {
  grid-template-columns: minmax(0, 0.96fr) minmax(340px, 1.04fr);
}
.hero-media {
  min-height: clamp(390px, 49vw, 570px);
}
.glass-signature-system {
  width: min(88%, 610px);
  filter: drop-shadow(0 24px 38px rgba(67, 82, 112, 0.15));
}
.soriel-crystal-snowflake .hero-crystal {
  width: min(100%, 610px);
  filter: drop-shadow(0 22px 34px rgba(78, 92, 122, 0.17));
}
.soriel-crystal-snowflake {
  animation-duration: 10s;
}
.snow-orbit {
  animation-duration: 28s;
}
.soriel-snow-dust span:nth-child(n/**/+6) {
  display: none;
}
.intro-grid {
  align-items: center;
}
.intro-copy {
  align-self: center;
}
.featured-row {
  margin-bottom: 26px;
}
.home-project-stack {
  max-width: 1040px;
  margin: 32px auto 0;
}
.home-project-panel {
  min-height: 130px;
}
.home-project-panel.is-open {
  min-height: 440px;
}
.home-project-panel img {
  object-position: center;
}
.home-project-panel:first-child img,
.home-project-panel:nth-child(3) img {
  object-fit: contain;
  background: rgba(229, 235, 243, 0.74);
  padding: 18px;
}
.home-project-panel h3 {
  font-size: clamp(1.75rem, 3.4vw, 3.5rem);
}
.hero-copy .display {
  background: linear-gradient(
    105deg,
    #263a56 0%,
    #4d749e 40%,
    #b28a48 72%,
    #647d9d 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (max-width: 900px) {
  .hero-media {
    min-height: 380px;
  }
  .glass-signature-system {
    width: min(78vw, 500px);
  }
  .home-project-panel.is-open {
    min-height: 390px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .soriel-crystal-snowflake,
  .snow-orbit {
    animation: none !important;
  }
}

/* Home refinements */
.hero {
  margin-top: calc(-1 * var(--header-h, 80px));
  padding-top: calc(var(--header-h, 80px) + 44px);
  background:
    radial-gradient(
      circle at 72% 12%,
      rgba(215, 232, 250, 0.86),
      transparent 35rem
    ),
    linear-gradient(180deg, #fbfdff 0%, #edf5fc 100%);
}
.soriel-crystal-scene,
.snowflake-scene {
  transform: scale(0.84);
  transform-origin: center;
}
.hero-media {
  overflow: visible;
}
.home-project-panel img {
  object-fit: cover !important;
  object-position: center !important;
}
.home-project-panel h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.8rem) !important;
}
.home-worlds-title {
  font-size: clamp(1.75rem, 3.2vw, 2.8rem) !important;
}
.cta-support {
  max-width: 620px;
  margin: 0.8rem auto 1.5rem;
  color: var(--muted);
}

/* Home card and preview corrections */
.hero::before {
  background: radial-gradient(
    circle at 72% 43%,
    rgba(255, 255, 255, 0.96) 0 12%,
    rgba(194, 220, 247, 0.36) 28%,
    transparent 58%
  ) !important;
}
.soriel-crystal-scene::before {
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.98),
    rgba(197, 222, 247, 0.38) 45%,
    transparent 72%
  ) !important;
}
.hero-crystal {
  width: min(560px, 86%) !important;
}
.home-project-panel img {
  object-fit: cover !important;
  padding: 0 !important;
  border: 0 !important;
}
.home-project-panel {
  border-color: rgba(76, 113, 154, 0.2) !important;
}
.home-project-panel h3 {
  font-size: clamp(1.55rem, 3vw, 3.25rem) !important;
}
.home-project-panel > div:last-child {
  max-width: min(78%, 620px);
}
.home-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 34px;
  background: rgba(18, 30, 46, 0.84);
  backdrop-filter: blur(18px);
}
.home-preview-modal.is-open {
  display: flex;
}
.home-preview-modal img {
  display: block;
  max-width: min(1100px, 88vw);
  max-height: 84vh;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.35);
}
.home-preview-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Final home refinements */
.hero .actions .btn-home-neutral,
.cta .btn-home-neutral {
  background: rgba(255, 255, 255, 0.58) !important;
  color: #284a70 !important;
  border: 1px solid rgba(70, 108, 150, 0.22) !important;
  box-shadow: 0 12px 34px rgba(59, 91, 128, 0.08) !important;
}
.hero .actions .btn-home-neutral:hover,
.cta .btn-home-neutral:hover {
  background: rgba(223, 237, 251, 0.86) !important;
  border-color: rgba(57, 101, 151, 0.38) !important;
  color: #173b64 !important;
}
.cta-title-refined {
  font-size: clamp(1.55rem, 3vw, 2.65rem) !important;
  line-height: 1.22 !important;
  margin-bottom: 0.7rem !important;
}
.cta-support {
  margin: 0 auto 1.35rem;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.3vw, 1.02rem);
  line-height: 1.9;
}
html[dir="rtl"] .cta-title-refined {
  font-size: clamp(1.35rem, 2.7vw, 2.25rem) !important;
}

/* Final requested CTA sizing */
.cta {
  padding: clamp(30px, 4vw, 42px) !important;
}
.cta-title-refined {
  font-size: clamp(1.35rem, 2.6vw, 2.3rem) !important;
  margin-bottom: 0 !important;
}
html[dir="rtl"] .cta-title-refined {
  font-size: clamp(1.2rem, 2.35vw, 2rem) !important;
}

/* Final home section alignment and CTA detailing */
.home-projects {
  position: relative;
  padding-block: clamp(58px, 8vw, 92px);
  background: linear-gradient(
    180deg,
    rgba(220, 234, 248, 0.58),
    rgba(236, 245, 253, 0.7)
  );
  border-top: 1px solid rgba(67, 105, 147, 0.15);
  border-bottom: 1px solid rgba(67, 105, 147, 0.15);
}
.home-projects .featured-row {
  max-width: 1040px;
  margin-inline: auto;
  margin-bottom: 22px;
}
.home-worlds-title {
  font-size: clamp(1.45rem, 2.7vw, 2.35rem) !important;
  line-height: 1.3 !important;
  margin: 0;
}
html[dir="rtl"] .home-projects .featured-row {
  text-align: right;
  justify-content: flex-start;
}
html[dir="ltr"] .home-projects .featured-row {
  text-align: left;
  justify-content: flex-start;
}
.home-project-panel h3 {
  font-size: clamp(1.3rem, 2.45vw, 2.55rem) !important;
}
.cta {
  position: relative;
  overflow: hidden;
  width: min(1040px, calc(100% - 2 * var(--container-pad, 24px)));
  margin-inline: auto;
  padding: clamp(34px, 5vw, 48px) !important;
}
.cta-title-refined {
  font-size: clamp(1.25rem, 2.35vw, 2.05rem) !important;
}
html[dir="rtl"] .cta-title-refined {
  font-size: clamp(1.15rem, 2.1vw, 1.85rem) !important;
}
.cta-support {
  grid-column: 1;
  max-width: 650px;
  margin: 0.45rem 0 0 !important;
  font-size: clamp(0.88rem, 1.15vw, 0.98rem);
  line-height: 1.85;
}
html[dir="rtl"] .cta-support {
  text-align: right;
}
.cta-lines {
  position: absolute;
  inset: auto -4% 8% auto;
  width: 42%;
  height: 72%;
  pointer-events: none;
  opacity: 0.34;
  transform: rotate(-8deg);
}
.cta-lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 100, 146, 0.55),
    transparent
  );
  transform-origin: center;
}
.cta-lines span:nth-child(1) {
  top: 20%;
  transform: rotate(7deg);
}
.cta-lines span:nth-child(2) {
  top: 50%;
  transform: rotate(-4deg) scaleX(0.82);
}
.cta-lines span:nth-child(3) {
  top: 76%;
  transform: rotate(11deg) scaleX(0.68);
}
@media (max-width: 900px) {
  .cta {
    width: calc(100% - 2 * var(--container-pad, 24px));
  }
  .cta-support {
    grid-column: auto;
  }
  .cta-lines {
    width: 58%;
    opacity: 0.24;
  }
}

/* Final home-only adjustments */
.cta-lines {
  display: none !important;
}
.home-projects {
  background:
    radial-gradient(
      circle at 18% 18%,
      rgba(255, 255, 255, 0.8),
      transparent 26rem
    ),
    linear-gradient(
      135deg,
      rgba(205, 228, 250, 0.88),
      rgba(235, 246, 255, 0.82) 48%,
      rgba(188, 218, 247, 0.72)
    ) !important;
  border-top-color: rgba(60, 101, 145, 0.18) !important;
  border-bottom-color: rgba(60, 101, 145, 0.18) !important;
}

/* Unified home surfaces and refined Three Directions typography */
.hero,
.home-projects {
  background:
    radial-gradient(
      circle at 18% 18%,
      rgba(255, 255, 255, 0.8),
      transparent 26rem
    ),
    radial-gradient(
      circle at 82% 16%,
      rgba(224, 214, 244, 0.5),
      transparent 30rem
    ),
    linear-gradient(
      135deg,
      rgba(214, 230, 249, 0.88),
      rgba(235, 241, 253, 0.84) 48%,
      rgba(205, 218, 246, 0.78)
    ) !important;
}
.home-worlds-title {
  font-family: var(--font-en) !important;
  font-size: clamp(1.25rem, 2.2vw, 1.95rem) !important;
  line-height: 1.38 !important;
}
html[dir="rtl"] .home-worlds-title {
  font-family: var(--font-fa) !important;
  font-size: clamp(1.12rem, 2vw, 1.72rem) !important;
}

/* Final crystal motion: subtle rotation without vertical floating */
.soriel-crystal-scene {
  perspective: 1200px;
}

.soriel-crystal-snowflake {
  transform-origin: center;
  transform-style: preserve-3d;
  animation: sorielCrystalOrbit 10s linear infinite !important;
  will-change: transform, filter;
}

.soriel-crystal-snowflake .hero-crystal {
  animation: none !important;
}

@keyframes sorielCrystalOrbit {
  0% {
    transform:
      translate3d(0, -8px, 0)
      rotateX(6deg)
      rotateY(0deg)
      rotateZ(-1deg)
      scale(1);
    filter: brightness(1) drop-shadow(0 0 18px rgba(255, 255, 255, 0.16));
  }

  25% {
    transform:
      translate3d(12px, 0, 0)
      rotateX(0deg)
      rotateY(14deg)
      rotateZ(1deg)
      scale(1.015);
    filter: brightness(1.06) drop-shadow(0 0 24px rgba(255, 255, 255, 0.22));
  }

  50% {
    transform:
      translate3d(0, 8px, 0)
      rotateX(-6deg)
      rotateY(0deg)
      rotateZ(1deg)
      scale(1);
    filter: brightness(1.02) drop-shadow(0 0 20px rgba(255, 255, 255, 0.18));
  }

  75% {
    transform:
      translate3d(-12px, 0, 0)
      rotateX(0deg)
      rotateY(-14deg)
      rotateZ(-1deg)
      scale(0.985);
    filter: brightness(0.98) drop-shadow(0 0 16px rgba(255, 255, 255, 0.14));
  }

  100% {
    transform:
      translate3d(0, -8px, 0)
      rotateX(6deg)
      rotateY(0deg)
      rotateZ(-1deg)
      scale(1);
    filter: brightness(1) drop-shadow(0 0 18px rgba(255, 255, 255, 0.16));
  }
}

@media (max-width: 900px) {
  .soriel-crystal-snowflake {
    animation-duration: 12s !important;
  }

  @keyframes sorielCrystalOrbit {
    0% {
      transform:
        translate3d(0, -5px, 0)
        rotateX(4deg)
        rotateY(0deg)
        scale(1);
    }

    25% {
      transform:
        translate3d(7px, 0, 0)
        rotateX(0deg)
        rotateY(9deg)
        scale(1.01);
    }

    50% {
      transform:
        translate3d(0, 5px, 0)
        rotateX(-4deg)
        rotateY(0deg)
        scale(1);
    }

    75% {
      transform:
        translate3d(-7px, 0, 0)
        rotateX(0deg)
        rotateY(-9deg)
        scale(0.99);
    }

    100% {
      transform:
        translate3d(0, -5px, 0)
        rotateX(4deg)
        rotateY(0deg)
        scale(1);
    }
  }
}
/* Mobile responsive corrections — Home hero */
@media (max-width: 700px) {
  .hero {
    min-height: auto !important;
    padding-top: calc(var(--header-h, 80px) + 34px) !important;
    padding-bottom: 54px !important;
    overflow: hidden !important;
  }
  .hero .container.hero-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
    width: min(100% - 32px, 680px) !important;
  }
  .hero-copy {
    width: 100% !important;
    max-width: none !important;
    text-align: center !important;
    order: 1 !important;
  }
  .hero-copy .display {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: auto !important;
    font-size: clamp(2.35rem, 12vw, 3.65rem) !important;
    line-height: 1.02 !important;
    text-wrap: balance;
  }
  .hero-copy .lead {
    width: 100% !important;
    max-width: 34rem !important;
    margin: 20px auto 0 !important;
    font-size: 1rem !important;
    line-height: 1.75 !important;
    text-wrap: pretty;
  }
  .hero-media {
    order: 2 !important;
    min-height: 310px !important;
    width: 100% !important;
  }
  .glass-signature-system {
    width: min(86vw, 420px) !important;
  }
  .actions {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }
}


/* Final accessibility guard for crystal motion */
@media (prefers-reduced-motion: reduce) {
  .soriel-crystal-snowflake,
  .snow-orbit {
    animation: none !important;
  }
}

/* Home services slider — replaces the former stacked accordion */
.home-project-stack[data-home-slider] {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 1040px;
  height: 620px;
  margin: 32px auto 0;
  overflow: hidden;
}
.home-project-stack[data-home-slider] .home-project-panel {
  flex: 0.62 1 0;
  min-width: 0;
  min-height: 0 !important;
  height: 100%;
  border-radius: 26px;
  transition:
    flex 0.85s cubic-bezier(0.22, 0.8, 0.2, 1),
    transform 0.85s cubic-bezier(0.22, 0.8, 0.2, 1),
    border-color 0.35s ease;
  will-change: flex;
}
.home-project-stack[data-home-slider] .home-project-panel.is-open {
  flex: 3.25 1 0;
  min-height: 0 !important;
}
.home-project-stack[data-home-slider] .home-project-panel:not(.is-open) {
  transform: scaleY(0.965);
}
.home-project-stack[data-home-slider] .home-project-panel img {
  transition: transform 1.1s cubic-bezier(0.22, 0.8, 0.2, 1), filter 0.7s ease;
}
.home-project-stack[data-home-slider] .home-project-panel.is-open img {
  transform: scale(1.025);
}
.home-project-stack[data-home-slider] .home-project-panel:not(.is-open) img {
  filter: saturate(0.72) brightness(0.82);
}
.home-project-stack[data-home-slider] .home-project-shade {
  background: linear-gradient(
    180deg,
    rgba(24, 35, 51, 0.03) 24%,
    rgba(24, 35, 51, 0.82) 100%
  );
  transition: background 0.7s ease;
}
.home-project-stack[data-home-slider] .home-project-panel > div:last-child {
  left: 26px;
  right: 26px;
  bottom: 26px;
  max-width: 620px;
  transform: translateY(0);
  transition: transform 0.7s cubic-bezier(0.22, 0.8, 0.2, 1);
}
.home-project-stack[data-home-slider] .home-project-panel:not(.is-open) > div:last-child {
  left: 50%;
  right: auto;
  bottom: 34px;
  width: max-content;
  max-width: none;
  transform: translateX(-50%) rotate(-90deg) translateX(50%);
  transform-origin: center bottom;
}
.home-project-stack[data-home-slider] .home-project-panel:not(.is-open) span,
.home-project-stack[data-home-slider] .home-project-panel:not(.is-open) p {
  display: none;
}
.home-project-stack[data-home-slider] .home-project-panel:not(.is-open) h3 {
  margin: 0;
  white-space: nowrap;
  font-size: clamp(1rem, 1.5vw, 1.3rem) !important;
  letter-spacing: 0.02em;
}
html[dir="rtl"] .home-project-stack[data-home-slider] .home-project-panel > div:last-child {
  text-align: right;
}

@media (max-width: 900px) {
  .home-project-stack[data-home-slider] {
    height: 560px;
    gap: 8px;
  }
  .home-project-stack[data-home-slider] .home-project-panel {
    border-radius: 22px;
  }
  .home-project-stack[data-home-slider] .home-project-panel.is-open {
    flex: 4.2 1 0;
  }
}
@media (max-width: 640px) {
  .home-project-stack[data-home-slider] {
    height: 500px;
    gap: 6px;
  }
  .home-project-stack[data-home-slider] .home-project-panel {
    flex-basis: 46px;
    border-radius: 18px;
  }
  .home-project-stack[data-home-slider] .home-project-panel.is-open {
    flex: 1 1 auto;
  }
  .home-project-stack[data-home-slider] .home-project-panel > div:last-child {
    left: 18px;
    right: 18px;
    bottom: 20px;
  }
  .home-project-stack[data-home-slider] .home-project-panel:not(.is-open) > div:last-child {
    left: 50%;
    right: auto;
    bottom: 26px;
  }
  .home-project-stack[data-home-slider] .home-project-panel:not(.is-open) h3 {
    font-size: 0.88rem !important;
  }
  .home-project-stack[data-home-slider] .home-project-panel.is-open h3 {
    font-size: clamp(1.35rem, 7vw, 2rem) !important;
  }
  .home-project-stack[data-home-slider] .home-project-panel.is-open p {
    font-size: 0.86rem;
    line-height: 1.65;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-project-stack[data-home-slider] .home-project-panel,
  .home-project-stack[data-home-slider] .home-project-panel img,
  .home-project-stack[data-home-slider] .home-project-panel > div:last-child {
    transition-duration: 0.01ms !important;
  }
}
