:root {
  color-scheme: dark;
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --felt: #147640;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--felt);
  scroll-behavior: auto;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--felt);
}

.felt-stage {
  position: relative;
  min-height: max(100vh, 780px);
  min-height: max(100svh, 780px);
  overflow: hidden;
  isolation: isolate;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--felt);
}

.page-title {
  position: absolute;
  z-index: 2;
  top: clamp(18px, 5.5vh, 28px);
  left: clamp(16px, 3vw, 24px);
  display: grid;
  margin: 0;
  color: #fefdf4;
  font-size: clamp(2.8rem, 9.1vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.9;
  text-shadow: 2px 3px 0 rgb(0 0 0 / 55%);
}

.page-title span {
  display: block;
}

.balls {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ball {
  position: absolute;
  top: 38%;
  width: clamp(112px, 28.8vw, 200px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ball--red {
  left: 52%;
  background: #ff0100;
}

.ball--white {
  left: 0;
  background: #fff;
}

.home-navigation {
  position: absolute;
  left: clamp(28px, 7.2vw, 50px);
  display: grid;
  gap: clamp(4px, 1.1vh, 8px);
  visibility: hidden;
}

.home-navigation.is-visible {
  visibility: visible;
}

.home-navigation__link {
  display: inline-flex;
  min-height: clamp(72px, 20.2vh, 80px);
  align-items: center;
  gap: 24px;
  color: #fff;
  font-size: clamp(2.1rem, 6.4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.1;
  opacity: 0;
  filter: blur(4px) brightness(0.8);
  transform: translate3d(-14px, 0, 0);
  text-decoration: none;
  visibility: hidden;
  -webkit-tap-highlight-color: transparent;
}

.home-navigation__link.is-entering,
.home-navigation__link.is-revealed {
  visibility: visible;
}

.home-navigation__link.is-revealed {
  opacity: 1;
  filter: blur(0) brightness(1);
  transform: translate3d(0, 0, 0);
}

.home-navigation__link[hidden] {
  display: none;
}

.home-navigation__icon {
  display: grid;
  width: clamp(64px, 10.8vw, 76px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #ff0100;
}

.home-navigation__icon img {
  display: block;
  width: 58%;
  height: 58%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.home-navigation__link:focus-visible {
  border-radius: 3px;
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.home-social {
  position: absolute;
  z-index: 2;
  top: clamp(150px, 23vh, 220px);
  right: clamp(20px, 5vw, 72px);
  width: min(40vw, 500px);
  color: #fffdf5;
  opacity: 0;
  transform: translate3d(18px, 0, 0);
  transition: opacity 420ms ease, transform 420ms ease, visibility 420ms;
  visibility: hidden;
}

.home-social.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  visibility: visible;
}

.home-social__heading {
  margin-bottom: 14px;
}

.home-social__eyebrow {
  margin: 0 0 5px;
  color: rgb(255 253 245 / 72%);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-social__title {
  margin: 0;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.home-social__frame {
  overflow: hidden;
  border: 1px solid rgb(255 253 245 / 35%);
  border-radius: 7px;
  background: #092d1d;
  box-shadow: 0 18px 42px rgb(0 0 0 / 28%);
}

.home-social__embed {
  display: block;
  width: 100%;
  max-width: 500px;
  border: 0;
}

.home-social__link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: #fffdf5;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration-color: rgb(255 253 245 / 55%);
  text-underline-offset: 4px;
}

.home-social__link:hover {
  text-decoration-color: #fffdf5;
}

.home-social__link:focus-visible {
  outline: 2px solid #fffdf5;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .felt-stage {
    min-height: max(100vh, 1400px);
    min-height: max(100svh, 1400px);
  }

  .home-social {
    top: 950px;
    right: auto;
    left: 50%;
    width: min(calc(100% - 40px), 500px);
    transform: translate3d(-50%, 18px, 0);
  }

  .home-social.is-visible {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (min-width: 901px) {
  .home-navigation {
    gap: var(--home-menu-gap, clamp(4px, 1vh, 8px));
  }

  .home-navigation__link {
    min-height: var(--home-menu-row-size, clamp(72px, 20.2vh, 80px));
    gap: var(--home-menu-link-gap, 24px);
    font-size: var(--home-menu-font-size, clamp(2.1rem, 6.4vw, 3.1rem));
    white-space: nowrap;
  }

  .home-navigation__icon {
    width: var(--home-menu-icon-size, clamp(64px, 10.8vw, 76px));
  }
}

@media (max-width: 600px) {
  .page-title {
    top: clamp(18px, 5vh, 28px);
    left: 5vw;
    font-size: clamp(2.65rem, 11.5vw, 3.7rem);
  }

  .ball {
    width: clamp(96px, 28.8vw, 152px);
  }

  .home-navigation {
    left: 7.2vw;
  }

  .home-navigation__link {
    gap: 20px;
    font-size: clamp(2rem, 8.4vw, 2.6rem);
  }

  .home-navigation__icon {
    width: clamp(64px, 17vw, 72px);
  }
}

@media (max-width: 360px) {
  .home-navigation {
    left: 6vw;
  }

  .home-navigation__link {
    gap: 14px;
    font-size: 1.75rem;
  }

  .home-navigation__icon {
    width: 58px;
  }
}

.pricing-page {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow-x: hidden;
  color: #fffdf5;
  background: #092d1d;
}

.pricing-page::before {
  position: fixed;
  z-index: -1;
  inset: -18px;
  background-image:
    linear-gradient(135deg, rgb(5 26 17 / 55%), rgb(5 32 20 / 30%)),
    url("assets/hatter.jpg"),
    radial-gradient(ellipse at 50% 34%, #26714a 0%, #12462f 46%, #092d1d 100%);
  background-position: center;
  background-size: cover;
  content: "";
}

.pricing-layout {
  display: grid;
  min-height: 100svh;
  grid-template-rows: auto 1fr;
  align-items: center;
  justify-items: center;
  gap: 28px;
  padding: clamp(20px, 5vw, 64px);
}

.pricing-home {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  justify-self: start;
  color: rgb(255 253 245 / 82%);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: color 160ms ease-out;
}

.pricing-home:hover {
  color: #fffdf5;
}

.pricing-home:focus-visible {
  outline: 2px solid #fffdf5;
  outline-offset: 4px;
}

.scores-layout {
  grid-template-rows: auto auto;
  align-items: start;
  justify-items: stretch;
  gap: clamp(20px, 3vw, 36px);
  padding-block: clamp(20px, 3vw, 40px);
}

.scores-panel {
  width: min(100%, 1500px);
  margin-inline: auto;
  padding: clamp(24px, 4vw, 52px);
  text-align: left;
}

.scores-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.scores-header .pricing-eyebrow {
  margin-bottom: 14px;
}

.scores-header .pricing-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.06em;
  line-height: 1.05;
}

.scores-filter {
  position: relative;
  flex: 0 0 auto;
  margin-top: 8px;
}

.scores-filter summary {
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid rgb(255 253 245 / 38%);
  border-radius: 6px;
  background: rgb(8 35 23 / 42%);
  color: #fffdf5;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  list-style: none;
}

.scores-filter summary::-webkit-details-marker {
  display: none;
}

.scores-filter summary::after {
  margin-left: 12px;
  content: "⌄";
}

.scores-filter[open] summary::after {
  content: "⌃";
}

.scores-filter summary:focus-visible,
.scores-filter__reset:focus-visible,
.scores-slideshow button:focus-visible {
  outline: 2px solid #fffdf5;
  outline-offset: 3px;
}

.scores-filter__menu {
  position: absolute;
  z-index: 3;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  margin: 0;
  padding: 16px;
  border: 1px solid rgb(255 253 245 / 30%);
  border-radius: 8px;
  background: #103c28;
  box-shadow: 0 16px 38px rgb(0 0 0 / 32%);
}

.scores-filter__menu legend {
  padding: 0 4px;
  color: #c4d6aa;
  font-size: 0.78rem;
  font-weight: 700;
}

.scores-filter__options {
  display: grid;
  gap: 12px;
  padding-block: 8px 14px;
}

.scores-filter__option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  cursor: pointer;
}

.scores-filter__option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #c4d6aa;
}

.scores-filter__reset {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgb(255 253 245 / 32%);
  border-radius: 5px;
  background: transparent;
  color: #fffdf5;
  cursor: pointer;
  font: inherit;
}

.scores-status,
.scores-empty {
  margin: 0;
  color: rgb(255 253 245 / 78%);
  line-height: 1.6;
}

.scores-status:empty {
  display: none;
}

.scores-result {
  padding-block: clamp(24px, 3vw, 36px);
  border-top: 1px solid rgb(255 253 245 / 24%);
}

.scores-result:first-child {
  padding-top: 0;
  border-top: 0;
}

.scores-result__title {
  margin: 0 0 20px;
  color: #fffdf5;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.2;
  text-transform: capitalize;
}

.scores-result__content {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.scores-table-scroll {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgb(255 253 245 / 22%);
  border-radius: 7px;
  background: rgb(5 26 17 / 25%);
}

.scores-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  text-align: left;
}

.scores-table caption {
  padding: 12px 14px;
  color: #c4d6aa;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
}

.scores-table th,
.scores-table td {
  padding: 12px 8px;
  border-top: 1px solid rgb(255 253 245 / 12%);
  overflow-wrap: anywhere;
}

.scores-table thead th {
  color: rgb(255 253 245 / 72%);
  font-size: 0.8rem;
  font-weight: 700;
}

.scores-table tbody th {
  font-weight: 700;
}

.scores-table__number {
  width: 2.5rem;
  color: #c4d6aa;
  text-align: right;
}

.scores-gallery {
  display: grid;
  justify-items: start;
  gap: 16px;
}

.scores-gallery__toggle {
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid rgb(255 253 245 / 38%);
  border-radius: 6px;
  background: rgb(8 35 23 / 42%);
  color: #fffdf5;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.scores-gallery__toggle:hover {
  background: rgb(255 255 255 / 12%);
}

.scores-gallery__toggle:focus-visible {
  outline: 2px solid #fffdf5;
  outline-offset: 3px;
}

.scores-slideshow {
  position: fixed;
  inset: 0;
  display: none;
  width: min(760px, calc(100% - 32px));
  max-width: none;
  height: min(760px, calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
  grid-template-rows: auto minmax(0, 1fr) auto;
  margin: auto;
  padding: clamp(16px, 3vw, 28px);
  overflow: hidden;
  border: 1px solid rgb(255 253 245 / 22%);
  border-radius: 7px;
  color: #fffdf5;
  background: rgb(5 26 17 / 96%);
  box-shadow: 0 24px 80px rgb(0 0 0 / 48%);
}

.scores-slideshow[open] {
  display: grid;
}

.scores-slideshow::backdrop {
  background: rgb(0 0 0 / 76%);
  backdrop-filter: blur(5px);
}

.scores-slideshow__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.scores-slideshow__title {
  margin: 0;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  line-height: 1.3;
}

.scores-slideshow__close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(255 253 245 / 32%);
  border-radius: 5px;
  background: rgb(255 255 255 / 7%);
  color: #fffdf5;
  cursor: pointer;
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
}

.scores-slideshow__close:hover {
  background: rgb(255 255 255 / 15%);
}

.scores-slideshow__close:focus-visible,
.scores-slideshow__controls button:focus-visible {
  outline: 2px solid #fffdf5;
  outline-offset: 3px;
}

.scores-slideshow__image-wrap {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  place-items: center;
  background: rgb(0 0 0 / 18%);
}

.scores-slideshow__image {
  display: block;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.scores-slideshow__error {
  margin: 0;
  padding: 18px;
  color: #ffe2d8;
  font-size: 0.9rem;
  text-align: center;
}

.scores-slideshow__controls {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
}

.scores-slideshow__controls button {
  width: 44px;
  height: 44px;
  border: 1px solid rgb(255 253 245 / 28%);
  border-radius: 5px;
  background: rgb(255 255 255 / 7%);
  color: #fffdf5;
  cursor: pointer;
  font: inherit;
  font-size: 1.3rem;
}

.scores-slideshow__controls button:hover {
  background: rgb(255 255 255 / 15%);
}

.scores-slideshow__count {
  margin: 0;
  color: #fffdf5;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

@media (max-width: 600px) {
  .scores-layout {
    padding-block: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-bottom));
  }

  .scores-panel {
    padding: 32px 12px;
  }

  .scores-slideshow {
    width: calc(100% - 20px);
    height: calc(100dvh - 20px);
    max-height: calc(100dvh - 20px);
    padding: 14px;
  }

  .scores-header {
    display: grid;
    gap: 18px;
    margin-bottom: 28px;
  }

  .scores-filter {
    justify-self: start;
    margin-top: 0;
  }

  .scores-filter__menu {
    right: auto;
    left: 0;
  }

  .scores-table th,
  .scores-table td {
    padding: 9px 4px;
    font-size: 0.78rem;
  }

  .scores-table thead th {
    font-size: 0.68rem;
  }

  .scores-table__number {
    width: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scores-filter summary,
  .scores-filter__reset,
  .scores-gallery__toggle,
  .scores-slideshow__close,
  .scores-slideshow__controls button {
    transition-duration: 0.01ms;
  }
}

.pricing-panel {
  width: min(100%, 760px);
  padding: clamp(36px, 7vw, 88px);
  border: 1px solid rgb(255 253 245 / 32%);
  border-radius: 12px;
  background: rgb(8 35 23 / 32%);
  box-shadow: 0 24px 80px rgb(0 0 0 / 24%), inset 0 1px rgb(255 255 255 / 12%);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  text-align: center;
}

.pricing-eyebrow {
  margin: 0 0 20px;
  color: #c4d6aa;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.6;
  text-transform: uppercase;
}

.pricing-title {
  margin: 0;
  font-size: clamp(3.4rem, 11vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.98;
  text-shadow: 0 5px 28px rgb(0 0 0 / 28%);
}

.pricing-copy {
  max-width: 46ch;
  margin: 28px auto 0;
  color: rgb(255 253 245 / 88%);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  line-height: 1.75;
  white-space: pre-line;
}

.contact-panel {
  width: min(100%, 900px);
}

.contact-header {
  text-align: center;
}

.contact-copy {
  margin: clamp(24px, 4vw, 40px) 0;
  color: rgb(255 253 245 / 90%);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  line-height: 1.75;
  white-space: pre-line;
}

.contact-map {
  overflow: hidden;
  border: 1px solid rgb(255 253 245 / 32%);
  border-radius: 8px;
  background: rgb(8 35 23 / 48%);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: clamp(280px, 42vw, 420px);
  border: 0;
}

.contact-map-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: #d3e6ba;
  font-size: 1rem;
  font-weight: 700;
  text-underline-offset: 4px;
}

.contact-map-link:hover {
  color: #fffdf5;
}

.contact-map-link:focus-visible {
  border-radius: 2px;
  outline: 2px solid #fffdf5;
  outline-offset: 4px;
}

@media (max-width: 600px) {
  .pricing-layout {
    gap: 20px;
    padding: max(20px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
  }

  .pricing-panel {
    padding: 38px 24px;
  }

  .pricing-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.13em;
  }

  .pricing-copy {
    margin-top: 20px;
  }

  .contact-copy {
    margin: 24px 0;
  }

  .contact-map iframe {
    height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-home {
    transition-duration: 0.01ms;
  }
}

.gallery-panel {
  width: min(100%, 1400px);
  padding: clamp(24px, 4vw, 56px);
  text-align: left;
}

.gallery-header {
  margin-bottom: clamp(28px, 4vw, 48px);
  text-align: center;
}

.gallery-copy {
  margin: 20px 0 0;
  color: rgb(255 253 245 / 82%);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 24px);
}

.gallery-item {
  overflow: hidden;
  margin: 0;
  aspect-ratio: 4 / 3;
  border: 1px solid rgb(255 253 245 / 22%);
  border-radius: 8px;
  background: rgb(8 35 23 / 48%);
  box-shadow: 0 12px 32px rgb(0 0 0 / 20%);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item img[role="button"] {
  cursor: zoom-in;
}

.gallery-item img[role="button"]:focus-visible {
  outline: 3px solid #fffdf5;
  outline-offset: -4px;
}

.gallery-viewer {
  position: fixed;
  inset: 0;
  display: none;
  width: min(94vw, 1400px);
  height: min(92svh, 1000px);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: clamp(12px, 2vw, 24px);
  border: 1px solid rgb(255 253 245 / 32%);
  border-radius: 12px;
  color: #fffdf5;
  background: rgb(5 20 13 / 96%);
  box-shadow: 0 24px 80px rgb(0 0 0 / 48%);
}

.gallery-viewer[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}

.gallery-viewer::backdrop {
  background: rgb(0 0 0 / 82%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.gallery-viewer__toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.gallery-viewer__count {
  min-width: 4.5em;
  color: rgb(255 253 245 / 78%);
  font-size: 0.9rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.gallery-viewer__control {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgb(255 253 245 / 30%);
  border-radius: 50%;
  color: #fffdf5;
  background: rgb(255 255 255 / 8%);
  font: inherit;
  font-size: 1.5rem;
  cursor: pointer;
}

.gallery-viewer__control:hover {
  background: rgb(255 255 255 / 18%);
}

.gallery-viewer__control:focus-visible {
  outline: 2px solid #fffdf5;
  outline-offset: 3px;
}

.gallery-viewer__close {
  margin-left: 8px;
  font-size: 1.9rem;
}

.gallery-viewer__figure {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  margin: 0;
  text-align: center;
}

.gallery-viewer__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.gallery-viewer__caption {
  color: rgb(255 253 245 / 82%);
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 1000px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .gallery-panel {
    padding: 32px 20px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .gallery-item {
    border-radius: 6px;
  }

  .gallery-viewer {
    width: 100vw;
    height: 100svh;
    padding: 12px;
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-social,
  .home-social__link {
    transition-duration: 0.01ms;
  }

  .ball__icon {
    transition-duration: 0.01ms;
  }
}
