/* Violet Terminal. Loaded only by index.html; shared styles stay unchanged. */
.feje-world-home{--world-ink:#0c0a12;--world-muted:#c1b8d1;--world-line:#332b40;--world-accent:#c7a9ff;background:#0c0a12;color:#f4effa}
/* Keep the bypass link available to keyboard users without exposing it
   during touch scrolling, Safari rubber-banding or pointer focus. */
.feje-world-home .skip-link{
  position:fixed;top:0;left:50%;z-index:3000;
  clip-path:inset(50%);opacity:0;pointer-events:none;transition:none;
}
.feje-world-home .skip-link:focus-visible{
  clip-path:none;opacity:1;pointer-events:auto;
}
.feje-world-home .premium-nav{background:#100e18;border-bottom:1px solid var(--world-line)}
.feje-world-home .brand-mark{display:inline-flex;align-items:center;justify-content:center;flex:0 0 26px;width:26px;height:22px;border-radius:0;background:none;box-shadow:none;transform:none;color:#fff}
.feje-world-home .brand-mark svg{display:block;width:100%;height:100%;overflow:visible;stroke:currentColor;stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round}
.feje-world-home .brand-code-left,.feje-world-home .brand-code-right{animation:feje-bracket-open 1.6s ease-in-out 2;transition:transform .2s ease;transform-box:fill-box;transform-origin:center}
.feje-world-home .brand-code-right{animation-name:feje-bracket-close}
.feje-world-home .brand-code-slash{animation:feje-code-slash 1.6s ease-in-out 2}
@keyframes feje-bracket-open{0%,100%{transform:translateX(0);opacity:1}50%{transform:translateX(2px);opacity:.72}}
@keyframes feje-bracket-close{0%,100%{transform:translateX(0);opacity:1}50%{transform:translateX(-2px);opacity:.72}}
@keyframes feje-code-slash{0%,100%{opacity:1}50%{opacity:.65}}
.feje-world-home .nav-brand a:hover .brand-code-left{transform:translateX(-1px)}
.feje-world-home .nav-brand a:hover .brand-code-right{transform:translateX(1px)}
.feje-world-home .footer-bottom .footer-links a{color:#c7a9ff;text-underline-offset:4px;text-decoration-thickness:1px}
@media(prefers-reduced-motion:reduce){.feje-world-home .brand-mark svg path{animation:none;transform:none;transition:none}}
.feje-world-home #home{position:relative;display:grid;grid-template-columns:minmax(285px,.74fr) minmax(0,1.4fr);align-items:center;gap:clamp(24px,4vw,76px);width:min(100%,1600px);margin:auto;padding:calc(var(--nav-height) + 52px) clamp(22px,5vw,82px) 64px;text-align:left;min-height:100svh}
.feje-world-home #home .hero-content{width:100%;min-width:0;align-items:flex-start;text-align:left;display:flex;flex-direction:column;position:relative;z-index:1}
.feje-world-home .world-kicker{font:600 .69rem/1.5 'Space Grotesk',sans-serif;letter-spacing:.2em;color:#c7a9ff;margin-bottom:28px;display:flex;align-items:center;gap:9px}
/* Homepage developer terminal. */
.feje-world-home .world-kicker{max-width:100%}
.feje-world-home .hero-terminal{display:inline-flex;align-items:center;gap:9px;max-width:100%;min-height:24px;padding:0;margin:0;border:0;border-radius:2px;background:none;color:#c7a9ff;font:600 clamp(.65rem,2.6vw,.83rem)/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.065em;text-align:left;box-shadow:none;text-transform:none;cursor:pointer}
.feje-world-home .hero-terminal:disabled{opacity:1;cursor:default}
.feje-world-home .hero-terminal:focus-visible{outline:2px solid #c7a9ff;outline-offset:4px}
.feje-world-home .hero-terminal-icon{width:21px;height:17px;flex:0 0 21px;color:#fff}
.feje-world-home .hero-terminal-line{display:inline-flex;align-items:baseline;min-width:0;white-space:nowrap;font-variant-ligatures:none}
.feje-world-home .hero-terminal-cursor{margin-left:2px;color:#e5d4ff}
.feje-world-home .hero-terminal.is-glitching [data-terminal-text]{text-shadow:1px 0 #f49ac8,-1px 0 #70c9dc}
.feje-world-home .hero-terminal.is-glitching .hero-terminal-icon{filter:drop-shadow(1px 0 #ed82c2) drop-shadow(-1px 0 #71d3e7);transform:translateX(1px)}
@media(prefers-reduced-motion:no-preference){.feje-world-home .hero-terminal.is-running .hero-terminal-cursor{animation:hero-terminal-blink 1.2s step-end infinite}}
@keyframes hero-terminal-blink{50%{opacity:0}}
@media(max-width:360px){.feje-world-home .hero-terminal{gap:6px;letter-spacing:0;font-size:.65rem}}
.feje-world-home .world-title{font-size:clamp(2.8rem,5.3vw,6.7rem);line-height:.92;letter-spacing:-.07em;color:#f6f1fd;margin:0 0 25px!important;word-break:normal}
.feje-world-home .world-title .blur-text{display:block;opacity:1;filter:none;transform:none;animation:none;will-change:auto}
.feje-world-home .world-title .mobile-break{display:none}
.feje-world-home .world-subtitle{font-size:clamp(.94rem,1.4vw,1.15rem);line-height:1.55;color:#ddd2e9;margin-bottom:22px}
.feje-world-home .world-intro{max-width:36ch;color:var(--world-muted);line-height:1.7;font-size:.94rem}
.feje-world-home #home .action-buttons{width:min(100%,345px);align-items:stretch;margin-top:26px;gap:14px}
.feje-world-home #home .primary-action-stack{gap:0}
.feje-world-home #home .star-border{background:transparent;box-shadow:none;border-radius:0;border:0;border-top:1px solid var(--world-line);padding:0;overflow:visible;text-decoration:none}
.feje-world-home #home .star-border:last-child{border-bottom:1px solid var(--world-line)}
.feje-world-home #home .star-border-glow{display:none}
.feje-world-home #home .star-border-inner{background:none;box-shadow:none;border:0;border-radius:0;color:#efe9f8;min-height:48px;justify-content:flex-start;padding:10px 3px;font-size:.9rem;gap:9px}
.feje-world-home #home .star-border:hover{box-shadow:none!important;transform:none}
.feje-world-home #home .star-border:hover .star-border-inner{color:var(--world-accent)}
.feje-world-home #home .star-border-inner::after{content:'↗';margin-left:auto;color:#a897bd}
.feje-world-home #home .sofra-hero-arrow{display:none}
.feje-world-home #home .sofra-hero-icon{filter:none;color:#c7a9ff}
.feje-world-home #home .profile-action-cluster{justify-content:flex-start}
.feje-world-home .world-stage{min-width:0;width:100%;align-self:center;position:relative;font-family:'Space Grotesk',sans-serif}
.feje-world-home .world-viewport{position:relative;height:clamp(340px,50vw,650px);max-height:72svh;min-height:350px;isolation:isolate;overflow:hidden;background:#171222;border:1px solid #54465c;clip-path:polygon(0 0,calc(100% - 21px) 0,100% 21px,100% 100%,21px 100%,0 calc(100% - 21px))}
.feje-world-home .world-poster,.feje-world-home .world-canvas-host{position:absolute;inset:0}
.feje-world-home .world-poster{background:#191325 url('../assets/home-world/terminal.svg') center center/cover no-repeat}
.feje-world-home .world-canvas-host{opacity:0;transition:opacity .4s}
.feje-world-home .world-stage[data-state="live"] .world-canvas-host{opacity:1}
.feje-world-home .world-canvas-host canvas{width:100%;height:100%;display:block;touch-action:pan-y;cursor:grab;outline-offset:-4px}
.feje-world-home .world-canvas-host canvas:active{cursor:grabbing}
.feje-world-home .world-canvas-host canvas:focus-visible{outline:2px solid #eedbff}
.feje-world-home .world-view-label{position:absolute;inset:18px 20px auto;display:flex;justify-content:space-between;gap:8px;color:#f1e5ff;font-size:.65rem;letter-spacing:.15em;text-shadow:0 1px 7px #09060d;pointer-events:none}
.feje-world-home .world-instructions{position:absolute;bottom:15px;left:15px;right:15px;text-align:center;color:#eee6f8;font:500 .7rem/1.5 Inter,sans-serif;text-shadow:0 1px 5px #050407;pointer-events:none}
.feje-world-home .world-launch{position:absolute;bottom:20px;left:20px;color:#f9f4ff;background:#171020;border:1px solid #9a80bf;padding:12px 14px;font:600 .82rem 'Space Grotesk',sans-serif;cursor:pointer}
.feje-world-home .world-launch span{margin-left:8px}
.feje-world-home [hidden]{display:none!important}
.feje-world-home .world-console{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 0;border-bottom:1px solid var(--world-line)}
.feje-world-home .world-caption{min-width:0}
.feje-world-home .world-caption span{color:#cbb3f5;font-size:.7rem;letter-spacing:.14em;font-weight:700}
.feje-world-home .world-caption p{color:#bfb3ce;font:400 .83rem/1.5 Inter,sans-serif;margin-top:5px}
.feje-world-home .world-console a{color:#f3e8ff;font-size:.8rem;line-height:1.5;text-underline-offset:5px;white-space:nowrap}
.feje-world-home .world-controls{display:flex;flex-wrap:wrap;gap:7px;justify-content:space-between;padding-top:10px}
.feje-world-home .world-stations,.feje-world-home .world-tools{display:flex;flex-wrap:wrap;gap:4px}
.feje-world-home .world-controls button{background:transparent;border:1px solid transparent;color:#baaecb;padding:9px 8px;min-height:44px;font:500 .72rem 'Space Grotesk',sans-serif;cursor:pointer;border-radius:0}
.feje-world-home .world-controls button:hover,.feje-world-home .world-controls button[aria-pressed="true"]{color:#f4eaff;border-color:#5c4a73;background:#21182d}
.feje-world-home .world-controls button:focus-visible,.feje-world-home .world-launch:focus-visible{outline:2px solid #d9c3ff;outline-offset:2px}
.feje-world-home main>.section-padding{scroll-margin-top:var(--nav-height);border-top:1px solid var(--world-line);padding:clamp(64px,8vw,120px) 0}
.feje-world-home main>.section-padding>.container{max-width:1120px}
.feje-world-home main>.section-padding .reveal,.feje-world-home .scroll-reveal{opacity:1!important;transform:none!important;filter:none!important;animation:none!important;will-change:auto!important}
.feje-world-home .section-header{text-align:left;margin-bottom:32px}
.feje-world-home .section-header h2,.feje-world-home .profile-header h2,.feje-world-home .contact-box h2,.feje-world-home .sofra-project-card h2{font-family:'Space Grotesk',sans-serif;letter-spacing:-.045em;color:#f2ecfa;font-size:clamp(2rem,4.5vw,3.8rem)!important}
.feje-world-home .glass-panel,.feje-world-home .bento-card,.feje-world-home .goal-item,.feje-world-home .contact-box{border:0;border-radius:0;background:transparent;box-shadow:none;will-change:auto;overflow:visible}
.feje-world-home .glass-panel,.feje-world-home .contact-box{padding:0;text-align:left;max-width:none}
.feje-world-home .profile-header{text-align:left}
.feje-world-home .spotlight-card::before,.feje-world-home .card-bg{display:none}
.feje-world-home .bento-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border-top:1px solid var(--world-line);border-bottom:1px solid var(--world-line)}
.feje-world-home .bento-grid .tilted-card{width:auto;min-width:0;border-inline-end:1px solid var(--world-line);will-change:auto;transform:none!important}
.feje-world-home .bento-grid .tilted-card:last-child{border-inline-end:0}
.feje-world-home .bento-grid .bento-card{height:100%;min-height:255px;padding:26px;transform:none!important}
.feje-world-home .bento-grid .card-content{padding:0;position:relative;transform:none!important}
.feje-world-home .bento-grid .card-icon{opacity:.7}
.feje-world-home .goals-wrapper{max-width:none;gap:0;border-top:1px solid var(--world-line)}
.feje-world-home .goal-item{border-bottom:1px solid var(--world-line);padding:26px 0}
.feje-world-home .project-kicker{display:block;color:var(--world-accent);letter-spacing:.12em}
.feje-world-home .contact-box .method-card,.feje-world-home .sofra-project-card .btn-primary{border-radius:0;background:#17121f;border:1px solid var(--world-line)}
.feje-world-home #surprise{scroll-margin-top:calc(var(--nav-height) + 20px)}
@media(max-width:1100px){.feje-world-home #home{grid-template-columns:minmax(240px,.78fr) minmax(0,1.2fr);padding-inline:28px;gap:24px}.feje-world-home .world-title{font-size:clamp(2.8rem,5.5vw,5rem)}}
@media(max-width:900px){.feje-world-home #home{display:flex;flex-direction:column;align-items:stretch;padding:calc(var(--nav-height) + 32px) 20px 40px;gap:28px;min-height:0}.feje-world-home .world-kicker{margin-bottom:16px}.feje-world-home .world-title{font-size:clamp(3rem,9vw,5.1rem);line-height:.95}.feje-world-home .world-title .blur-text{display:inline}.feje-world-home .world-title .mobile-break{display:block}.feje-world-home .world-subtitle{margin-bottom:10px}.feje-world-home #home .action-buttons{margin-top:18px}.feje-world-home .world-viewport{height:clamp(340px,78vw,560px);max-height:none;min-height:300px}.feje-world-home .world-controls{gap:3px}.feje-world-home .world-stations{gap:2px}.feje-world-home .bento-grid{grid-template-columns:1fr}.feje-world-home .bento-grid .tilted-card{border:0;border-bottom:1px solid var(--world-line)}.feje-world-home .bento-grid .tilted-card:last-child{border-bottom:0}.feje-world-home .bento-grid .bento-card{min-height:170px;padding:22px 0}}
@media(max-width:390px){.feje-world-home .world-console{align-items:flex-start;flex-direction:column;gap:7px}.feje-world-home .world-view-label{font-size:.59rem;inset:12px 13px auto}}
@media(prefers-reduced-motion:reduce){.feje-world-home *, .feje-world-home *::before,.feje-world-home *::after{scroll-behavior:auto!important}.feje-world-home .world-canvas-host{transition:none}}

/* A world-space landmark is projected to the viewport; the button row is its
   keyboard and screen-reader equivalent. Labels never intercept scrolling. */
.feje-world-home .world-markers{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.feje-world-home .world-marker{position:absolute;top:0;left:0;display:flex;align-items:center;gap:5px;padding:3px 5px;color:#fff4ff;background:#171020e0;border:1px solid #9e8ab9;font:500 .61rem/1.25 'Space Grotesk',sans-serif;letter-spacing:.07em;white-space:nowrap;pointer-events:none;transform:translate(-50%,-100%)}
.feje-world-home .world-marker::before{content:'';width:5px;height:5px;background:#d9b9ff;transform:rotate(45deg)}
.feje-world-home .world-stage:not([data-state="live"]) .world-markers{display:none}
.feje-world-home .sofra-project-card::before,.feje-world-home .sofra-project-card::after{display:none}
.feje-world-home .sofra-project-card:hover{transform:none;box-shadow:none}
.feje-world-home .profile-panel{backdrop-filter:none}
.feje-world-home .goals-wrapper{grid-template-columns:1fr}
.feje-world-home .goal-item:hover,.feje-world-home .bento-card:hover,.feje-world-home .contact-box .method-card:hover{transform:none}
.feje-world-home .world-title .blur-text{will-change:auto!important}
.feje-world-home #main-content{scroll-margin-top:var(--nav-height)}
@media(max-width:600px){.feje-world-home .world-marker{font-size:.54rem;padding:2px 3px}}

/* Achievement states are scoped to public homepage goals. */
.feje-world-home #goals .goal-achieved {
  --achievement-ink: #a3efb9;
  --achievement-edge: #32764c;
  --achievement-background: #13251d;
  --achievement-glow: #22c55e20;
}
.feje-world-home #goals .goal-mastered {
  --achievement-ink: #ffafbf;
  --achievement-edge: #e66a82;
  --achievement-background: #331822;
  --achievement-glow: #ff456a38;
}
.feje-world-home #goals .goal-title-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 9px 14px;
  margin-bottom: 10px;
}
.feje-world-home #goals .goal-title-row h3 { margin: 0; min-width: 0; line-height: 1.35; }
.feje-world-home #goals .goal-achievement {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  color: var(--achievement-ink); background: var(--achievement-background);
  border: 1px solid var(--achievement-edge); border-radius: 6px;
  padding: 5px 8px; font: 700 .67rem/1.25 'Space Grotesk', sans-serif;
  letter-spacing: .07em; white-space: nowrap;
  box-shadow: 0 0 12px var(--achievement-glow);
}
.feje-world-home #goals .goal-achievement svg { display: block; width: 14px; height: 14px; flex-shrink: 0; }
.feje-world-home #goals .goal-mastered .goal-achievement {
  box-shadow: 0 0 14px var(--achievement-glow), inset 0 0 8px #e65a7824;
}
.feje-world-home #goals .goal-achieved .goal-content p { margin: 0; }

.feje-world-home .world-view-label{z-index:2}
.feje-world-home .world-instructions{z-index:2}

/* Feje's Collectibles. Keeps the purple site chrome, lets only the exhibit
   accent reflect the selected world; no layout change outside this stage. */
.feje-world-home .world-stage{--collection-accent:#c6a2ff}
.feje-world-home .world-poster{background-image:url('../assets/home-world/collectible-1.svg')}
.feje-world-home .world-collection-transition{position:absolute;inset:0;z-index:1;background:#0d0b15;opacity:0;pointer-events:none;transition:opacity .18s ease}
.feje-world-home .world-stage[data-switching="true"] .world-collection-transition{opacity:1}
.feje-world-home .world-stage[data-switching="true"] .world-markers{visibility:hidden}
.feje-world-home .world-collection{padding:19px 0 15px;border-bottom:1px solid var(--world-line);min-width:0}
.feje-world-home .collection-header{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:12px;align-items:center}
.feje-world-home .collection-title{min-width:0;text-align:center}
.feje-world-home .collection-kicker{display:flex;justify-content:center;gap:9px;color:var(--collection-accent);font-size:.63rem;letter-spacing:.13em}
.feje-world-home .collection-kicker span{color:#bfb5cd}
.feje-world-home .collection-title h2{font:700 clamp(1.12rem,2.5vw,1.85rem)/1.19 'Space Grotesk',sans-serif;letter-spacing:-.035em;color:#f5effa;margin:5px 0 3px;overflow-wrap:break-word}
.feje-world-home .collection-title p{font-size:.79rem;line-height:1.4;color:var(--collection-accent);margin:0}
.feje-world-home .collection-arrow,.feje-world-home .collection-slots button{display:grid;place-items:center;color:#c9bfd8;background:#15111e;border:1px solid #42364e;border-radius:0;min-width:0;min-height:44px;cursor:pointer;font:600 .78rem 'Space Grotesk',sans-serif;transition:border-color .18s,color .18s,background .18s}
.feje-world-home .collection-arrow svg{width:20px;height:20px}
.feje-world-home .collection-slots{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin-top:14px}
.feje-world-home .collection-slots button[aria-pressed="true"]{color:var(--collection-accent);border-color:var(--collection-accent);background:#241b30;box-shadow:inset 0 -2px 0 var(--collection-accent)}
.feje-world-home .collection-arrow:hover,.feje-world-home .collection-slots button:hover{color:var(--collection-accent);border-color:var(--collection-accent)}
.feje-world-home .collection-arrow:focus-visible,.feje-world-home .collection-slots button:focus-visible{outline:2px solid var(--collection-accent);outline-offset:2px}
.feje-world-home .collection-note{font-size:.68rem;color:#bdb1ca;margin-top:9px;text-align:center;line-height:1.4}
.feje-world-home .collection-note span{color:var(--collection-accent);padding:0 3px}
.feje-world-home .world-view-label{letter-spacing:.12em}
.feje-world-home #world-showcase:disabled{opacity:.5;cursor:default}
@media(min-width:1380px){.feje-world-home .collection-slots{grid-template-columns:repeat(10,minmax(0,1fr))}}
@media(max-width:350px){.feje-world-home .world-view-label{font-size:.53rem;inset-inline:10px}.feje-world-home .collection-header{gap:6px}}
@media(prefers-reduced-motion:reduce){.feje-world-home .world-collection-transition,.feje-world-home .collection-arrow,.feje-world-home .collection-slots button{transition:none}}

/* Desktop typesetting and contrast also apply with reduced motion. */
@media (width > 900px) and (any-hover: hover) and (any-pointer: fine) {
 .feje-world-home #home .hero-content {
  align-self:start;
  margin-block-start:clamp(40px, 14svh, 130px);
 }
 .feje-world-home #contact a.method-card {
  color:#eee5fa;
 }
 .feje-world-home #contact a.method-card:focus-visible {
  outline:2px solid #d9b7ff;
  outline-offset:4px;
 }
 .feje-world-home #home .star-border-inner::after {
  content:"";
  flex:none;
  width:7px;
  height:7px;
  margin-inline-end:3px;
  border-top:1px solid;
  border-right:1px solid;
  background:linear-gradient(-45deg,transparent 45%,currentColor 46% 54%,transparent 55%);
 }
}

/* Match the other contact controls on touch layouts, including reduced motion. */
.feje-world-home[data-mobile-touch] #contact a.method-card {
  color: #eee5fa;
}
