/* Homepage-only Sofra exhibit. Deliberately independent of glass-panel and
   action-buttons so the world layout cannot collapse its intended spacing. */
.feje-world-home #sofra-project .sofra-feature {
  --sf-rose: #ffb3ce;
  --sf-line: #69324f;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .62fr);
  grid-template-areas: "meta mascot" "heading mascot" "description mascot" "actions mascot";
  gap: 20px 24px;
  align-items: center;
  padding: clamp(26px, 4.6vw, 60px);
  border: 1px solid var(--sf-line);
  border-radius: 22px;
  background: radial-gradient(ellipse at 91% 30%, #58213e73, transparent 57%),
              radial-gradient(ellipse at 0% 100%, #481b3570, transparent 55%),
              linear-gradient(145deg, #211522, #160f1d 70%);
  box-shadow: 0 16px 48px #06040b8c, inset 0 1px 0 #ffa8d113;
  overflow: hidden;
  color: #fff5fa;
}
.feje-world-home .sofra-feature::before,
.feje-world-home .sofra-feature::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}
.feje-world-home .sofra-feature::before {
  width: 64%; height: 1px; top: 0; right: 7%;
  background: linear-gradient(90deg, transparent, #ff9dc8 80%, transparent);
  box-shadow: 0 0 14px 2px #f75e9b60;
}
.feje-world-home .sofra-feature::after {
  inset: auto auto -132px -86px; width: 320px; height: 210px;
  border: 1px solid #d9508e70; border-radius: 50%;
  box-shadow: 0 0 28px #d9508e2b, inset 0 0 22px #d9508e22;
  transform: rotate(-17deg);
}
.feje-world-home .sofra-feature-meta {
  grid-area: meta; display: grid; justify-items: start; gap: 13px; min-width: 0;
}
.feje-world-home .sofra-feature-kicker {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font: 500 .72rem/1.4 'Space Grotesk', sans-serif; letter-spacing: .045em;
  color: #dfbcd1;
}
.feje-world-home .sofra-feature-kicker > span:first-child { color: #ff90bb; font-size: 1rem; }
.feje-world-home .sofra-feature-kicker strong { color: #ffb3cf; text-transform: uppercase; font-weight: 700; }
.feje-world-home .sofra-feature-slash { color: #a27b98; }
.feje-world-home .sofra-feature-status {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  padding: 8px 11px; border: 1px solid #a14760; border-radius: 99px;
  background: #72253d40; color: #ffe4e9;
  font: 650 .68rem/1.35 Inter, sans-serif; letter-spacing: .035em;
  text-transform: uppercase; box-shadow: 0 0 16px #d93e6326;
}
.feje-world-home .sofra-feature-status-dot {
  flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%;
  background: #ff819c; box-shadow: 0 0 0 3px #ff819c20, 0 0 9px #ff658f;
}
.feje-world-home .sofra-feature-heading { display: contents; }
.feje-world-home #sofra-project .sofra-feature h2 {
  grid-area: heading; margin: 0; min-width: 0;
  font: 700 clamp(2.25rem, 4.65vw, 4.25rem)/1.03 'Space Grotesk', sans-serif;
  letter-spacing: -.055em; color: #fff4fa;
  overflow-wrap: normal;
}
.feje-world-home .sofra-feature h2 > span { display: block; color: #ff9fc3; }
.feje-world-home .sofra-feature-description {
  grid-area: description; margin: 0; max-width: 56ch; color: #e2cfdd;
  font: 400 clamp(.94rem, 1.25vw, 1.05rem)/1.7 Inter, sans-serif;
  overflow-wrap: anywhere;
}
.feje-world-home .sofra-feature-description strong { color: #ffd4e6; font-weight: 600; }
.feje-world-home .sofra-feature-mascot {
  grid-area: mascot; align-self: center; justify-self: center;
  width: 100%; max-width: 300px; min-width: 0;
  position: relative; padding: 0; pointer-events: none;
}
.feje-world-home .sofra-kitty { display: block; width: 100%; height: auto; overflow: visible; image-rendering: pixelated; }
.feje-world-home .sofra-feature-actions { grid-area: actions; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; min-width: 0; }
.feje-world-home .sofra-feature-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 48px; padding: 12px 20px;
  border: 1px solid #d977a5; border-radius: 12px;
  background: linear-gradient(125deg, #a42b57, #762449);
  box-shadow: inset 0 1px 0 #fff2, 0 4px 18px #e13d7640;
  font: 700 .98rem/1.3 'Space Grotesk', sans-serif; color: #fff5fa;
  text-decoration: none; transition: background .18s, box-shadow .18s;
}
.feje-world-home .sofra-feature-primary > svg { width: 16px; height: 16px; flex: 0 0 16px; }
.feje-world-home .sofra-feature-secondary {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 2px;
  min-height: 44px; max-width: 100%;
  color: #d8bdd0; font: 500 .76rem/1.5 Inter, sans-serif; text-decoration: none;
}
.feje-world-home .sofra-feature-secondary > span { color: #ffbad5; text-decoration: underline; text-underline-offset: 4px; }
.feje-world-home .sofra-feature a:focus-visible { outline: 2px solid #ffcedf; outline-offset: 4px; }
@media (hover: hover) {
  .feje-world-home .sofra-feature-primary:hover { background: #b43c6c; box-shadow: 0 5px 22px #ff6ea155; }
  .feje-world-home .sofra-feature-secondary:hover > span { color: #fff1f7; }
}
/* Five 2-second moods with a 200ms overlap. The last flower pose is the
   no-JS/reduced-motion default. Each scene uses crisp pixel shapes. */
.feje-world-home #sofra-project .sofra-feature-mascot {
  display: block; appearance: none; border: 0; background: transparent;
  box-shadow: none; color: inherit; line-height: 0; cursor: pointer;
  pointer-events: auto; -webkit-tap-highlight-color: transparent;
}
.feje-world-home #sofra-project .sofra-feature-mascot:disabled { opacity: 1; cursor: default; }
.feje-world-home #sofra-project .sofra-feature-mascot:focus-visible { outline: 2px solid #ffb8d4; outline-offset: 4px; }
.feje-world-home .sf-mood-scene { opacity: 0; }
.feje-world-home .sf-mood-flowers { opacity: 1; }
.feje-world-home .sofra-feature-mascot.is-enhanced .sf-mood-scene { animation: sf-mood-cycle 10s linear infinite both; }
.feje-world-home .sofra-feature-mascot.is-enhanced .sf-mood-robot { animation-delay: 0s; }
.feje-world-home .sofra-feature-mascot.is-enhanced .sf-mood-love { animation-delay: -8s; }
.feje-world-home .sofra-feature-mascot.is-enhanced .sf-mood-sad { animation-delay: -6s; }
.feje-world-home .sofra-feature-mascot.is-enhanced .sf-mood-angry { animation-delay: -4s; }
.feje-world-home .sofra-feature-mascot.is-enhanced .sf-mood-flowers { animation-delay: -2s; }
@keyframes sf-mood-cycle { 0%,18% { opacity: 1; } 20%,98% { opacity: 0; } 100% { opacity: 1; } }
.feje-world-home .sofra-feature-mascot.is-enhanced .sf-mood-bob { animation: sf-mood-bob .5s steps(2,end) infinite; }
.feje-world-home .sofra-feature-mascot.is-enhanced .sf-mood-scan { animation: sf-mood-scan 1s steps(2,end) infinite; }
.feje-world-home .sofra-feature-mascot.is-enhanced .sf-mood-signal { animation: sf-mood-twinkle .65s steps(2,end) infinite; }
.feje-world-home .sofra-feature-mascot.is-enhanced .sf-love-heart-big { animation: sf-mood-bob .5s steps(2,end) infinite; }
.feje-world-home .sofra-feature-mascot.is-enhanced .sf-love-heart-one { animation: sf-love-float 1s steps(4,end) infinite; }
.feje-world-home .sofra-feature-mascot.is-enhanced .sf-love-heart-two { animation: sf-love-float 1s -.33s steps(4,end) infinite; }
.feje-world-home .sofra-feature-mascot.is-enhanced .sf-love-heart-three { animation: sf-love-float 1s -.66s steps(4,end) infinite; }
.feje-world-home .sofra-feature-mascot.is-enhanced .sf-mood-cloud { animation: sf-mood-cloud 1s steps(2,end) infinite; }
.feje-world-home .sofra-feature-mascot.is-enhanced .sf-mood-sad-bob { animation: sf-mood-sad 1s steps(2,end) infinite; }
.feje-world-home .sofra-feature-mascot.is-enhanced .sf-mood-tears,
.feje-world-home .sofra-feature-mascot.is-enhanced .sf-mood-rain { animation: sf-mood-tears .65s steps(3,end) infinite; }
.feje-world-home .sofra-feature-mascot.is-enhanced .sf-mood-stomp { animation: sf-mood-stomp .5s steps(2,end) infinite; }
.feje-world-home .sofra-feature-mascot.is-enhanced .sf-mood-angry-mark { animation: sf-mood-twinkle .5s steps(2,end) infinite; }
.feje-world-home .sofra-feature-mascot.is-enhanced .sf-mood-steam { animation: sf-love-float .65s steps(3,end) infinite; }
.feje-world-home .sofra-feature-mascot.is-enhanced .sf-bouquet-stems { animation: sf-bouquet-stems 10s steps(1,end) infinite both; }
.feje-world-home .sofra-feature-mascot.is-enhanced .sf-bloom-one { animation: sf-bloom-one 10s steps(1,end) infinite both; }
.feje-world-home .sofra-feature-mascot.is-enhanced .sf-bloom-two { animation: sf-bloom-two 10s steps(1,end) infinite both; }
.feje-world-home .sofra-feature-mascot.is-enhanced .sf-bloom-three { animation: sf-bloom-three 10s steps(1,end) infinite both; }
.feje-world-home .sofra-feature-mascot.is-enhanced .sf-bloom-four { animation: sf-bloom-four 10s steps(1,end) infinite both; }
.feje-world-home .sofra-feature-mascot.is-enhanced .sf-bouquet-wrap { animation: sf-bouquet-wrap 10s steps(1,end) infinite both; }
.feje-world-home .sofra-feature-mascot.is-enhanced .sf-bouquet-heart { animation: sf-bouquet-heart 10s steps(1,end) infinite both; }
.feje-world-home .sofra-feature-mascot:not(.is-running) .sofra-kitty * { animation-play-state: paused!important; }
@keyframes sf-mood-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes sf-mood-scan { 0%,100% { opacity: 1; } 50% { opacity: .65; } }
@keyframes sf-mood-twinkle { 0%,100% { opacity: .65; } 50% { opacity: 1; } }
@keyframes sf-love-float { 0%,100% { opacity: .8; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes sf-mood-cloud { 0%,100% { transform: translateX(0); } 50% { transform: translateX(2px); } }
@keyframes sf-mood-sad { 0%,100% { transform: translateY(0); } 50% { transform: translateY(1px); } }
@keyframes sf-mood-tears { 0% { opacity: .8; transform: translateY(0); } 100% { opacity: .25; transform: translateY(3px); } }
@keyframes sf-mood-stomp { 0%,100% { transform: translateX(0); } 25% { transform: translate(-1px,-1px); } 75% { transform: translate(1px,-1px); } }
/* Bouquet is assembled within the last slot, then remains intact through the wrap fade. */
@keyframes sf-bouquet-stems { 0%,80% { opacity: 0; } 81%,100% { opacity: 1; } }
@keyframes sf-bloom-one { 0%,82% { opacity: 0; } 83%,100% { opacity: 1; } }
@keyframes sf-bloom-two { 0%,84% { opacity: 0; } 85%,100% { opacity: 1; } }
@keyframes sf-bloom-three { 0%,86% { opacity: 0; } 87%,100% { opacity: 1; } }
@keyframes sf-bloom-four { 0%,88% { opacity: 0; } 89%,100% { opacity: 1; } }
@keyframes sf-bouquet-wrap { 0%,90% { opacity: 0; } 91%,100% { opacity: 1; } }
@keyframes sf-bouquet-heart { 0%,93% { opacity: 0; } 94%,100% { opacity: 1; } }
@media (max-width: 900px) {
  .feje-world-home #sofra-project { padding-block: 48px; }
  .feje-world-home #sofra-project > .container { padding-inline: clamp(12px, 4vw, 24px); }
  .feje-world-home #sofra-project .sofra-feature {
    grid-template-columns: minmax(0, 1fr) clamp(100px, 28vw, 170px);
    grid-template-areas: "meta meta" "heading mascot" "description description" "actions actions";
    gap: 18px 8px; padding: clamp(18px, 5vw, 36px); border-radius: 18px;
  }
  .feje-world-home #sofra-project .sofra-feature h2 { font-size: clamp(1.75rem, 6.4vw, 3.25rem); }
  .feje-world-home .sofra-feature-actions { gap: 10px 18px; }
}
@media (max-width: 480px) {
  .feje-world-home .sofra-feature-actions { display: grid; justify-items: stretch; text-align: center; gap: 10px; }
  .feje-world-home .sofra-feature-secondary { align-items: center; }
  .feje-world-home .sofra-feature-status { font-size: .64rem; letter-spacing: .015em; }
}
@media (max-width: 350px) {
  .feje-world-home #sofra-project .sofra-feature { grid-template-columns: minmax(0, 1fr) 88px; padding: 16px; }
  .feje-world-home #sofra-project .sofra-feature h2 { font-size: 1.65rem; }
}
@media (prefers-reduced-motion: reduce) {
  .feje-world-home .sofra-feature-mascot .sofra-kitty * { animation: none!important; }
  .feje-world-home .sf-mood-scene { opacity: 0; }
  .feje-world-home .sf-mood-flowers { opacity: 1; }
  .feje-world-home .sofra-feature-primary { transition: none; }
}
