html { scroll-behavior: smooth; }
body { margin: 0; background: #0b0d10; -webkit-font-smoothing: antialiased; }
a { color: #e8e4dc; }
a:hover { color: #e0b25a; }

.ev-grain {
  background-image: url(img/grain.png);
  background-size: 256px 256px;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0, #000 72%, transparent 100%);
}

.ev-float, .ev-tilt, .ev-sway { position: absolute; inset: 0; transform-style: preserve-3d; }
.ev-float { animation: evFloat 5.6s ease-in-out infinite alternate; }
.ev-tilt { transform: rotateX(var(--ev-rx, 0deg)) rotateY(var(--ev-ry, 0deg)); transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.ev-sway { transform: rotateY(-20deg) rotateX(6deg); animation: evSway 9s ease-in-out infinite alternate; }
.ev-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ev-shadow { animation: evShadow 5.6s ease-in-out infinite alternate; }
.ev-orbit { animation: evOrbit 80s linear infinite; }
.ev-track { animation: evMarquee 29s linear infinite; will-change: transform; }
.ev-bob { animation: evBob 6.4s ease-in-out infinite alternate; }

@keyframes evFloat {
  from { transform: translate3d(0, 8px, 0); }
  to { transform: translate3d(0, -14px, 0); }
}
@keyframes evShadow {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(0.8); opacity: 0.55; }
}
@keyframes evSway {
  from { transform: rotateY(-24deg) rotateX(7deg); }
  to { transform: rotateY(24deg) rotateX(-5deg); }
}
@keyframes evOrbit {
  to { transform: rotate(360deg); }
}
@keyframes evMarquee {
  to { transform: translate3d(-50%, 0, 0); }
}
@keyframes evBob {
  from { transform: translate3d(0, 7px, 0); }
  to { transform: translate3d(0, -9px, 0); }
}

.ev-navlink { transition: color 0.32s; }
.ev-navlink:hover { color: #e8e4dc !important; }
.ev-langbtn { transition: background-color 0.32s, color 0.32s; }
.ev-langbtn:hover { color: #e8e4dc !important; }
.ev-gold { transition: box-shadow 0.32s; }
.ev-gold:hover { box-shadow: 0 0 0 4px #e0b25a33; }
.ev-dark { transition: background-color 0.32s; }
.ev-dark:hover { background-color: #232934 !important; }
.ev-line { transition: background-color 0.32s; }
.ev-line:hover { background-color: rgba(11, 13, 16, 0.1) !important; }
.ev-ghost { transition: background-color 0.32s; }
.ev-ghost:hover { background-color: #171b22 !important; }
.ev-row h3 { transition: color 0.32s; }
.ev-row:hover h3 { color: #e0b25a !important; }
.ev-flink { transition: color 0.32s; }
.ev-flink:hover { color: #e8e4dc !important; }
.ev-field::placeholder { color: #7a8290; }
.ev-field:focus { border-color: #e0b25a !important; background-color: #171b22 !important; }

.ev-pcell { transition: background-color 0.32s; }
.ev-plogo { transition: filter 0.32s; }
.ev-pname { transition: color 0.32s; }
.ev-pph { transition: color 0.32s, border-color 0.32s; }
.ev-mono { background-color: #0b0d10 !important; outline: 1px solid #232934; outline-offset: -1px; }
.ev-mono .ev-pcell { box-shadow: 1px 0 0 #232934, 0 1px 0 #232934 !important; }
.ev-mono .ev-plogo { filter: brightness(0) invert(0.88); }
.ev-mono .ev-pname { color: #9aa0ab !important; }
.ev-mono .ev-pph { color: #9aa0ab !important; border-color: #343c4a !important; }
.ev-mono .ev-pcell:hover { background-color: #e8e4dc; }
.ev-mono .ev-pcell:hover .ev-plogo { filter: none; }
.ev-mono .ev-pcell:hover .ev-pname { color: #0b0d10 !important; }
.ev-mono .ev-pcell:hover .ev-pph { color: #0b0d10 !important; border-color: rgba(11, 13, 16, 0.45) !important; }

.ev-menubtn { display: none !important; }
@media (max-width: 900px) {
  .ev-desk { display: none !important; }
  .ev-menubtn { display: inline-flex !important; }
}
@media (min-width: 901px) {
  .ev-menupanel { display: none !important; }
}
@media (max-width: 720px) {
  .ev-side { display: none !important; }
  .ev-strip-end { text-align: left !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ev-float, .ev-shadow, .ev-sway, .ev-orbit, .ev-track, .ev-bob { animation: none !important; }
}
.ev-still .ev-float, .ev-still .ev-shadow, .ev-still .ev-sway, .ev-still .ev-orbit, .ev-still .ev-track, .ev-still .ev-bob { animation: none !important; }

/* --- site additions --- */
.is-hidden { display: none !important; }
.ev-langbtn { background-color: transparent; color: #9aa0ab; }
.ev-langbtn[aria-pressed="true"] { background-color: #232934; color: #e8e4dc; }
