:root {
  --bg: #ededed;
  --ink: #111111;
  --muted: #5d5d5d;
  --red: #ff1b28;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- background ---------- */

#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s ease;
}
html.bg-ready #bg { opacity: 1; }

/* ---------- content ---------- */

.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
  cursor: grab;
  touch-action: none;           /* dragging turns the background instead of scrolling */
}
@media (max-height: 520px) {
  .stage { touch-action: pan-y; }   /* short landscape screens may need to scroll */
}
html.is-dragging, html.is-dragging * {
  cursor: grabbing !important;
  user-select: none;
  -webkit-user-select: none;
}
.logo img { -webkit-user-drag: none; user-select: none; }

/* soft pool of background colour so the logo and text stay crisp over the dust */
.stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: min(760px, 118vw);
  height: min(640px, 92vh);
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(237, 237, 237, 0.93) 0%, rgba(237, 237, 237, 0.8) 45%, rgba(237, 237, 237, 0) 100%);
}

.logo {
  margin: 0 0 clamp(20px, 3.4vh, 34px);
  line-height: 0;
}
.logo img {
  display: block;
  width: min(440px, 68vw);
  height: auto;
}

.tagline {
  margin: 0;
  font-size: clamp(1.05rem, 0.9rem + 0.9vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.35;
}

.contact {
  margin: clamp(24px, 4.2vh, 40px) 0 0;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.contact a {
  display: inline-block;
  padding: 4px 0;
  background: linear-gradient(var(--red), var(--red)) left bottom / 100% 2px no-repeat;
  transition: background-size 0.25s ease, color 0.25s ease;
}
.contact a:hover,
.contact a:focus-visible {
  color: var(--red);
  background-size: 0% 2px;
}

.social {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
}
.social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 2px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  transition: color 0.2s ease;
}
.social a:hover,
.social a:focus-visible { color: var(--red); }
.social svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ---------- entrance ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.stage > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.stage > .tagline { animation-delay: 0.15s; }
.stage > .contact { animation-delay: 0.3s; }
.stage > .social  { animation-delay: 0.42s; }

@media (prefers-reduced-motion: reduce) {
  .stage > * { animation: none; }
  #bg { transition: none; }
}
