:root {
  --bg: #150c1b;
  --bg-2: #1d1024;
  --ink: #fff3f8;
  --pink: #ef5b98;
  --pink-deep: #b02a62;
  --line: rgba(255, 243, 248, 0.08);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --header-h: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
}

img { display: block; }

a { color: inherit; text-decoration: none; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(16px, calc((100vw - 1200px) / 2));
  background: rgba(21, 12, 27, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 40px; height: auto; image-rendering: pixelated; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: 0.02em; }
.brand-name b { color: var(--pink); font-weight: 700; }
.brand-sub { color: var(--pink); font-size: 10px; font-weight: 700; letter-spacing: 0.32em; margin-top: 2px; }

.site-nav { display: flex; gap: 36px; }
.site-nav a { font-weight: 700; font-size: 14px; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--pink); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--bg-2);
}

.hero-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.hero-horse {
  --s: 13;                       /* screen px per sprite pixel */
  position: absolute;
  left: 50%;
  bottom: 10%;
  width: calc(34px * var(--s));
  height: calc(23px * var(--s));
  margin-left: calc(-34px * var(--s) * 0.32);
  background: url("/assets/horse-gallop.png") 0 0 / calc(136px * var(--s)) 100% no-repeat;
  image-rendering: pixelated;
  animation: gallop 0.48s steps(4) infinite;
}

@keyframes gallop {
  to { background-position-x: calc(-136px * var(--s)); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: calc(var(--header-h) + 24px) 16px 18vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  margin: 0 0 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.hero-title { margin: 0 0 40px; }
.hero-title img { width: min(540px, 86vw); height: auto; }

.btn {
  display: inline-block;
  padding: 14px 20px;
  background: var(--pink);
  color: #1a0b16;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 4px 4px 0 #3b1236;
  transition: transform 0.08s steps(2), box-shadow 0.08s steps(2);
}
.btn:hover, .btn:focus-visible { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #3b1236; }

@media (max-width: 720px) {
  :root { --header-h: 56px; }
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 13px; }
  .brand-name { font-size: 13px; }
  .brand img { width: 34px; }
  .hero-horse { --s: 7; bottom: 8%; margin-left: calc(-34px * var(--s) * 0.5); }
  .eyebrow { font-size: 12px; margin-bottom: 20px; }
}

@media (max-width: 480px) {
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 12px; }
  .brand-text { display: none; }
  .hero-horse { --s: 6; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-horse { animation: none; }
}
