:root {
  --felt: #0e6b3c;
  --felt-dark: #0a5230;
  --felt-deep: #063822;
  --velvet: #6e0f1e;
  --velvet-deep: #3d0812;
  --club-bg: #14080a;
  --mahogany: #2a1014;
  --brass: #d4a84b;
  --brass-light: #f0d78c;
  --ivory: #f3e6c8;
  --muted: #c4b18a;
  --wood: #6b4226;
  --ink: #1a120c;
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-brand: "Bricolage Grotesque", "Outfit", sans-serif;
  --font-metal: "Metal Mania", "Impact", fantasy;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ivory);
  background: var(--felt-deep);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* —— Header —— */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}

.wordmark {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brass-light);
  white-space: nowrap;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

.nav-falling {
  font-family: var(--font-metal);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.fa-letters span {
  display: inline-block;
  line-height: 0.85;
  vertical-align: baseline;
}

.fa-letters span:nth-child(odd) {
  color: #00e5ff;
}

.fa-letters span:nth-child(even) {
  color: #ff1493;
}

.fa-letters span:nth-child(1),
.fa-letters span:nth-child(12) {
  font-size: 1em;
}

.fa-letters span:nth-child(2),
.fa-letters span:nth-child(11) {
  font-size: 0.84em;
}

.fa-letters span:nth-child(3),
.fa-letters span:nth-child(10) {
  font-size: 0.7em;
}

.fa-letters span:nth-child(4),
.fa-letters span:nth-child(9) {
  font-size: 0.58em;
}

.fa-letters span:nth-child(5),
.fa-letters span:nth-child(8) {
  font-size: 0.48em;
}

.fa-letters span:nth-child(6),
.fa-letters span:nth-child(7) {
  font-size: 0.38em;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ivory);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.felt {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 70% 40%, #148a4e 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 20% 80%, var(--velvet-deep) 0%, transparent 50%),
    linear-gradient(160deg, var(--felt) 0%, var(--felt-dark) 45%, var(--felt-deep) 100%);
}

.felt-grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    repeating-linear-gradient(
      12deg,
      transparent 0 2px,
      rgba(0, 0, 0, 0.08) 2px 3px
    ),
    repeating-linear-gradient(
      -8deg,
      transparent 0 3px,
      rgba(255, 255, 255, 0.03) 3px 4px
    );
}

.board {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.92;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      to top,
      rgba(6, 56, 34, 0.92) 0%,
      rgba(6, 56, 34, 0.55) 35%,
      rgba(6, 56, 34, 0.15) 60%,
      transparent 100%
    ),
    linear-gradient(
      to right,
      rgba(20, 8, 10, 0.45) 0%,
      transparent 45%
    );
}

.hero-balls {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.phys-ball {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--ball-size, 68px);
  height: var(--ball-size, 68px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: calc(var(--ball-size, 68px) * 0.28);
  font-weight: 700;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 50%, #f3e6c8 0 18%, transparent 19%),
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.42), transparent 34%),
    radial-gradient(circle at 50% 58%, var(--ball) 0%, #111 160%);
  border: 2px solid rgba(243, 230, 200, 0.35);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.35),
    inset 0 -6px 10px rgba(0, 0, 0, 0.22);
  transform: translate3d(-9999px, -9999px, 0);
  will-change: transform;
  user-select: none;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
}

.phys-ball.is-held {
  cursor: grabbing;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.4),
    inset 0 -6px 10px rgba(0, 0, 0, 0.22);
  z-index: 3;
}

.hero-copy {
  position: relative;
  z-index: 4;
  padding: clamp(5rem, 12vh, 8rem) clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 6vh, 4rem);
  max-width: 40rem;
}

.locale {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(2.4rem, 7.5vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
  color: var(--ivory);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  max-width: 12ch;
}

.lede {
  margin: 1.1rem 0 0;
  max-width: 28rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 300;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink);
  background: var(--brass);
  border: 2px solid var(--brass-light);
  text-decoration: none;
  transition:
    transform 0.3s var(--ease),
    background 0.25s var(--ease),
    color 0.25s var(--ease);
}

.cta:hover,
.cta:focus-visible {
  background: var(--brass-light);
  transform: translateY(-2px);
}

.cta-quiet {
  color: var(--ivory);
  background: transparent;
  border-color: rgba(212, 168, 75, 0.55);
}

.cta-quiet:hover,
.cta-quiet:focus-visible {
  color: var(--ink);
  background: var(--brass);
}

/* Entrance */
.hero-copy .locale,
.hero-copy h1,
.hero-copy .lede,
.hero-copy .cta-row {
  animation: rise 0.9s var(--ease) both;
}

.hero-copy h1 {
  animation-delay: 0.08s;
}

.hero-copy .lede {
  animation-delay: 0.16s;
}

.hero-copy .cta-row {
  animation-delay: 0.24s;
}

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

@media (prefers-reduced-motion: reduce) {
  .hero-copy .locale,
  .hero-copy h1,
  .hero-copy .lede,
  .hero-copy .cta-row {
    animation: none;
  }

  .phys-ball {
    pointer-events: none;
  }
}

/* —— Feature —— */
.feature {
  position: relative;
  background:
    linear-gradient(180deg, var(--velvet-deep) 0%, var(--club-bg) 40%, var(--mahogany) 100%);
  border-top: 1px solid rgba(212, 168, 75, 0.25);
}

.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(110, 15, 30, 0.5), transparent),
    radial-gradient(ellipse 40% 50% at 10% 90%, rgba(212, 168, 75, 0.08), transparent);
  pointer-events: none;
}

.feature-inner {
  position: relative;
  max-width: 40rem;
  padding: clamp(3.5rem, 10vh, 6rem) clamp(1.25rem, 4vw, 3rem);
}

.game + .game {
  margin-top: clamp(3rem, 8vh, 4.5rem);
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
}

.feature h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ivory);
}

#falling-angel {
  scroll-margin-top: 2.5rem;
}

#falling-angel-title {
  font-family: var(--font-metal);
  font-weight: 400;
  font-size: clamp(2.35rem, 9vw, 4.6rem);
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding-top: 0.12em;
  text-transform: uppercase;
}

.feature-lede,
.feature-note {
  margin: 1.25rem 0 0;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--muted);
}

.feature-note {
  margin-top: 0.85rem;
}

.traits {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.traits li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.98rem;
  color: var(--ivory);
}

.traits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--brass);
}

/* —— Bluesky updates —— */
.updates {
  position: relative;
  background:
    radial-gradient(ellipse 70% 45% at 10% 0%, rgba(212, 168, 75, 0.08), transparent 55%),
    linear-gradient(180deg, #0b2f1f 0%, var(--felt-dark) 45%, #082418 100%);
  border-top: 1px solid rgba(212, 168, 75, 0.22);
}

.updates-inner {
  max-width: 42rem;
  padding: clamp(3.5rem, 10vh, 6rem) clamp(1.25rem, 4vw, 3rem);
}

.updates-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.updates-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.updates-lede {
  margin: 0.55rem 0 0;
  max-width: 24rem;
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--muted);
}

.bsky-follow {
  flex-shrink: 0;
  padding: 0.7rem 1.05rem;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--brass);
  border: 1px solid var(--brass-light);
  text-decoration: none;
  transition:
    transform 0.25s var(--ease),
    background 0.25s var(--ease);
}

.bsky-follow:hover,
.bsky-follow:focus-visible {
  background: var(--brass-light);
  transform: translateY(-1px);
}

.bsky-feed {
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(165deg, rgba(42, 16, 20, 0.72) 0%, rgba(20, 8, 10, 0.88) 100%);
  border: 1px solid rgba(212, 168, 75, 0.35);
  border-top-color: rgba(240, 215, 140, 0.45);
  box-shadow: inset 0 1px 0 rgba(240, 215, 140, 0.12);
}

.bsky-status {
  margin: 0;
  padding: 1.5rem 1.25rem;
  color: var(--muted);
  font-weight: 300;
}

.bsky-status a {
  color: var(--brass-light);
}

.bsky-post {
  padding: 1.15rem 1.15rem 1.05rem;
  border-bottom: 1px solid rgba(212, 168, 75, 0.14);
  transition: background 0.25s var(--ease);
}

.bsky-post:last-child {
  border-bottom: none;
}

.bsky-post:hover {
  background: rgba(110, 15, 30, 0.18);
}

.bsky-repost {
  margin: 0 0 0.55rem 3.35rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}

.bsky-row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.bsky-avatar-link {
  flex-shrink: 0;
  text-decoration: none;
}

.bsky-avatar {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 1px solid rgba(212, 168, 75, 0.45);
  background: var(--mahogany);
}

.bsky-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--brass-light);
}

.bsky-body {
  min-width: 0;
  flex: 1;
}

.bsky-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.bsky-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
  min-width: 0;
}

.bsky-name {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ivory);
  text-decoration: none;
}

.bsky-name:hover,
.bsky-name:focus-visible {
  color: var(--brass-light);
}

.bsky-handle {
  font-size: 0.85rem;
  color: var(--muted);
}

.bsky-time {
  flex-shrink: 0;
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.bsky-post-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.bsky-text {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ivory);
}

.bsky-text a {
  color: var(--brass-light);
  text-decoration: underline;
  text-decoration-color: rgba(212, 168, 75, 0.45);
  text-underline-offset: 0.15em;
}

.bsky-text a:hover {
  text-decoration-color: var(--brass-light);
}

.bsky-images {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(212, 168, 75, 0.28);
}

.bsky-images-1 {
  grid-template-columns: 1fr;
}

.bsky-images-2,
.bsky-images-4 {
  grid-template-columns: 1fr 1fr;
}

.bsky-images-3 {
  grid-template-columns: 1fr 1fr;
}

.bsky-images img {
  width: 100%;
  height: 100%;
  max-height: 240px;
  object-fit: cover;
  background: #0a0a0a;
}

.bsky-external {
  display: flex;
  gap: 0;
  align-items: stretch;
  margin-top: 0.75rem;
  overflow: hidden;
  text-decoration: none;
  color: var(--ivory);
  border: 1px solid rgba(212, 168, 75, 0.28);
  background: rgba(10, 82, 48, 0.22);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.bsky-external:hover,
.bsky-external:focus-visible {
  border-color: rgba(212, 168, 75, 0.65);
  background: rgba(10, 82, 48, 0.35);
}

.bsky-external img,
.bsky-external-fallback {
  width: 104px;
  min-height: 78px;
  object-fit: cover;
  flex-shrink: 0;
  background:
    linear-gradient(135deg, var(--felt-dark), var(--velvet-deep));
}

.bsky-external-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.7rem 0.85rem;
}

.bsky-external-copy em {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
}

.bsky-external strong {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
}

.bsky-external small {
  font-size: 0.78rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bsky-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.bsky-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.bsky-open {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--brass);
  text-decoration: none;
  white-space: nowrap;
}

.bsky-open:hover,
.bsky-open:focus-visible {
  color: var(--brass-light);
}

@media (max-width: 520px) {
  .updates-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .bsky-external img,
  .bsky-external-fallback {
    width: 84px;
  }

  .bsky-stats {
    gap: 0.5rem;
  }
}

/* —— Contact —— */
.contact {
  background: var(--felt-dark);
  border-top: 1px solid rgba(212, 168, 75, 0.2);
}

.contact-inner {
  max-width: 40rem;
  padding: clamp(3rem, 8vh, 5rem) clamp(1.25rem, 4vw, 3rem);
}

.contact h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
}

.contact p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-weight: 300;
}

.mail {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--brass-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 215, 140, 0.4);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.mail:hover,
.mail:focus-visible {
  color: var(--ivory);
  border-color: var(--ivory);
}

/* —— Footer —— */
.site-footer {
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
  background: var(--felt-deep);
  border-top: 1px solid rgba(212, 168, 75, 0.12);
}

.site-footer p {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

@media (min-width: 900px) {
  .hero {
    align-items: center;
  }

  .hero-copy {
    padding-top: clamp(4rem, 10vh, 6rem);
  }

  .board {
    left: 15%;
    width: 110%;
  }
}
