/* Bodegga — strictly black & white. No color, no clutter. */

:root {
  --bg: #0a0a0a;
  --fg: #f4f4f4;
  --muted: #8a8a8a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: "Helvetica Neue", Arial, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Full-viewport wrapper. The liquid-warp SVG filter is attached here (only
   when JS confirms support), so pixels can bend around the pointer. */
.warp {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.warp--on {
  filter: url(#liquid);
  will-change: filter;
}

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  gap: 1.5rem;
  /* depth for the egg's parallax tilt */
  perspective: 800px;
}

/* The logo art is dark-on-transparent; invert it to render crisp white
   on the near-black background while staying purely monochrome. */
.logo {
  width: clamp(140px, 28vw, 240px);
  height: auto;
  filter: invert(1) grayscale(1) contrast(1.1);
  opacity: 0.95;
  will-change: transform;
}

.wordmark {
  font-size: clamp(2.25rem, 9vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.35em;
  /* optical centering against the tracking */
  padding-left: 0.35em;
}

.slogan {
  font-size: clamp(0.95rem, 3.5vw, 1.25rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--muted);
}

/* Twin app links — a quiet pair beneath the slogan. Inside .warp, so the
   liquid displacement bends them along with the wordmark. */
.apps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 2.75rem);
  margin-top: 0.5rem;
}

.app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.3s ease;
}

.app__name {
  position: relative;
  font-size: clamp(0.95rem, 3.5vw, 1.25rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  padding-bottom: 0.25rem;
}

/* Hairline underline that wipes in from the center on hover/focus. */
.app__name::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--fg);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.app__desc {
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
  transition: opacity 0.3s ease;
}

.app:hover,
.app:focus-visible {
  color: var(--fg);
  outline: none;
}

.app:hover .app__name::after,
.app:focus-visible .app__name::after {
  width: 100%;
}

.app:hover .app__desc,
.app:focus-visible .app__desc {
  opacity: 0.8;
}

/* Vertical hairline between the two links. */
.app__sep {
  width: 1px;
  height: 2.25rem;
  background: var(--fg);
  opacity: 0.18;
}

@media (prefers-reduced-motion: no-preference) {
  .apps { animation-delay: 0.3s; }
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer .dot {
  opacity: 0.5;
}

@media (prefers-reduced-motion: no-preference) {
  .stage > * {
    animation: rise 0.8s ease both;
  }
  .wordmark { animation-delay: 0.1s; }
  .slogan { animation-delay: 0.2s; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
