/* Fonts, served from this site so visitors make no third-party requests.
   Both are under the SIL Open Font License 1.1: see fonts/OFL-SpaceGrotesk.txt and fonts/OFL-JetBrainsMono.txt. */
@font-face {
  font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(fonts/space-grotesk-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url(fonts/jetbrains-mono-latin.woff2) format('woff2');
}

/* The coming-soon page's language switch and projects carousel.
   Colours come from the page's own variables (--text, --muted, --line, --cyan). */

/* Language switch: EN · ES · DE, small, in the page's top row beside the name (D-009). */
.lang {
  display: flex; gap: 1px; padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 999px;
  background: rgba(8, 12, 24, 0.55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.lang button {
  font: 500 10px/1 'Space Grotesk', system-ui, sans-serif; letter-spacing: 0.12em;
  color: var(--muted, #8B98B3); background: transparent; border: 0; border-radius: 999px;
  padding: 5px 8px; cursor: pointer; transition: color 0.2s ease, background 0.2s ease;
}
.lang button:hover { color: var(--text, #E8EEF8); }
.lang button[aria-pressed="true"] { color: #04121A; background: var(--cyan, #22D3EE); }
.lang button:focus-visible { outline: 2px solid var(--cyan, #22D3EE); outline-offset: 2px; }

/* Projects carousel: one card at a time, cross-fading; the active dot fills as the next card nears. */
.projects { width: min(560px, 100%); margin-top: 44px; text-align: left; }
.projects-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted, #8B98B3);
}
.projects-nav { display: flex; align-items: center; gap: 6px; }
.projects .dot {
  position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; overflow: hidden;
  background: rgba(255, 255, 255, 0.18); cursor: pointer; transition: width 0.4s ease, background 0.4s ease;
}
.projects .dot:hover { background: rgba(255, 255, 255, 0.35); }
.projects .dot.on { width: 28px; background: rgba(255, 255, 255, 0.12); }
.projects .dot i {
  position: absolute; inset: 0; background: var(--cyan, #22D3EE);
  transform-origin: left center; transform: scaleX(0); transition: transform 0.1s linear;
}
.projects .dot:not(.on) i { display: none; }
.projects .pp {
  display: grid; place-items: center; width: 24px; height: 24px; margin-left: 4px; padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 50%; background: transparent;
  color: var(--muted, #8B98B3); cursor: pointer;
}
.projects .pp:hover { color: var(--text, #E8EEF8); }
.projects .pp svg { width: 10px; height: 10px; }
.projects button:focus-visible { outline: 2px solid var(--cyan, #22D3EE); outline-offset: 2px; }

.slides { display: grid; }
.slide {
  grid-area: 1 / 1; display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 20px; border: 1px solid var(--line, rgba(255, 255, 255, 0.09)); border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(0.985);
  transition: opacity 0.8s ease, transform 0.8s ease, visibility 0s linear 0.8s;
}
.slide.on {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.8s ease, transform 0.8s ease, visibility 0s;
}
.slide-icon {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  color: var(--cyan, #22D3EE); background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.25);
}
.slide-icon svg { width: 22px; height: 22px; }
.slide-body { min-width: 0; }
.slide-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted, #8B98B3);
}
/* Stage tags are the motto's words (plus Live), kept in English in every language. */
.stage {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
  font-weight: 500; letter-spacing: 0.16em; border: 1px solid currentColor;
  background: color-mix(in srgb, currentColor 10%, transparent);
}
.stage::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stage-live { color: #34D399; }
.stage-live::before { box-shadow: 0 0 8px currentColor; animation: stage-pulse 1.8s ease-in-out infinite; }
.stage-build { color: #22D3EE; }
.stage-research { color: #60A5FA; }
.stage-explore { color: #A78BFA; }
@keyframes stage-pulse { 50% { opacity: 0.35; } }
.slide-title { margin-top: 8px; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; color: var(--text, #E8EEF8); }
.slide-desc { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--muted, #8B98B3); }
.slide-link { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--cyan, #22D3EE); text-decoration: none; }
.slide-link:hover { text-decoration: underline; }

@media (max-width: 420px) {
  .slide { padding: 16px; gap: 12px; }
  .slide-icon { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .slide, .slide.on { transition: none; transform: none; }
  .stage-live::before { animation: none; }
}
