:root {
  --color-ink: #18171b;
  --color-paper: #f4f0e8;
  --color-soft: #dce7dd;
  --color-night: #18181b;
  --color-card: #28282d;
  --color-card-muted: #a8a3a0;
  --color-accent: #d67957;
  --color-accent-dark: #9d4d3a;
  --color-contact: #e0a07f;
  --content-width: 1180px;
  --font-sans: Arial, Helvetica, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-paper);
  font-family: var(--font-sans);
}

body.is-card-modal-open {
  overflow: hidden;
}

body.is-booting > :not(.boot-splash) {
  visibility: hidden;
}

.boot-splash {
  display: grid;
  position: fixed;
  inset: 0;
  z-index: 10000;
  place-items: center;
  background: var(--color-paper);
  opacity: 1;
  transition: opacity .45s ease, visibility .45s ease;
}

body:not(.is-booting) .boot-splash {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.boot-splash__logo {
  width: clamp(72px, 12vw, 104px);
  height: auto;
  border-radius: 50%;
  animation: boot-moon-pulse 1.8s ease-in-out infinite;
  filter: drop-shadow(0 12px 22px rgba(24, 23, 27, .12));
}

@keyframes boot-moon-pulse {
  0%, 100% { transform: scale(.92); opacity: .72; }
  50% { transform: scale(1); opacity: 1; }
}

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

a {
  color: inherit;
}

.page__content {
  overflow: hidden;
}

.section-label {
  margin: 0;
  color: var(--color-accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.section-label span {
  padding-inline: 5px;
  color: currentColor;
  opacity: .5;
}

.hero {
  display: grid;
  min-height: min(820px, 100svh);
  padding: 80px max(24px, 7vw);
  position: relative;
  overflow: hidden;
  place-items: center;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(20, 17, 15, .42), rgba(20, 17, 15, .68)),
    url("assets/images/IMG_7419.webp") center / cover no-repeat;
}

.hero__content {
  max-width: 980px;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero__logo {
  display: none;
  width: clamp(72px, 9vw, 104px);
  height: auto;
  margin: 0 auto;
  border-radius: 50%;
}

.hero__title {
  margin: 28px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(56px, 8vw, 116px);
  font-weight: 400;
  letter-spacing: -.07em;
  line-height: .92;
  color: #fff;
}

.hero__title em {
  color: var(--color-contact);
  font-style: italic;
}

.about__title em {
  color: var(--color-accent-dark);
  font-style: italic;
}

.hero__description {
  max-width: 820px;
  margin: 32px auto 0;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  justify-content: center;
  margin-top: 42px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 15px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button--primary {
  color: #fff;
  background: var(--color-accent-dark);
  box-shadow: 0 10px 25px rgba(157, 77, 58, .2);
}

.button--primary:hover {
  background: var(--color-accent);
}

.button--outline {
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
  background: rgba(24, 23, 27, .14);
  backdrop-filter: blur(8px);
}

.button--outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .16);
}

.button--light {
  min-height: 46px;
  padding-inline: 20px;
  color: var(--color-ink);
  background: #f2ede4;
}

.about {
  display: grid;
  min-height: min(900px, 100svh);
  padding: clamp(56px, 8vw, 104px) max(24px, 7vw);
  position: relative;
  place-items: center;
  isolation: isolate;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(20, 17, 15, .3), rgba(20, 17, 15, .68)),
    url("assets/images/IMGL6008.webp") center 22% / cover no-repeat;
}

.about__card {
  width: min(100%, 980px);
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 6px;
  background: rgba(24, 24, 27, .72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
}

.about__header {
  width: auto;
  margin-inline: auto;
  text-align: center;
}

.about__header .section-label {
  color: var(--color-contact);
}

.about__title {
  margin: 18px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 400;
  letter-spacing: -.06em;
  line-height: .98;
}

.about__subtitle {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .8);
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.05;
}

.about__subtitle em {
  color: var(--color-contact);
}

.about__body {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(32px, 6vw, 72px);
  width: auto;
  align-items: start;
  margin-top: clamp(36px, 5vw, 56px);
}

.about__text {
  max-width: none;
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
  line-height: 1.55;
}

.about__text p {
  margin: 0 0 18px;
}

.about__lead {
  color: #f2ede4;
  font-family: var(--font-serif);
  font-size: clamp(25px, 3vw, 38px);
  font-style: italic;
  letter-spacing: -.03em;
  line-height: 1.1;
}

.about__text ul {
  margin: -4px 0 22px;
  padding-left: 20px;
}

.about__text li {
  margin: 7px 0;
  padding-left: 5px;
}

.services {
  padding: clamp(88px, 10vw, 140px) 0 110px;
  color: #fff;
  background: var(--color-night);
}

.services__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 48px, var(--content-width));
  margin-inline: auto;
}

.services .section-label {
  color: var(--color-contact);
}

.services__controls {
  display: flex;
  gap: 10px;
}

.services__arrow {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font: 28px/1 var(--font-sans);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.services__arrow:hover:not(:disabled),
.services__arrow:focus-visible {
  border-color: var(--color-contact);
  color: var(--color-ink);
  background: var(--color-contact);
}

.services__arrow:disabled {
  cursor: default;
  opacity: .3;
}

.services__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  width: min(calc(100% - 48px), var(--content-width));
  margin: 36px auto 0;
  padding: 0 0 28px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--color-contact) transparent;
  scrollbar-width: thin;
}

.service-card {
  display: flex;
  flex: 0 0 min(76vw, 380px);
  min-height: 580px;
  position: relative;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 4px;
  background: var(--color-card);
  scroll-snap-align: start;
  transition: border-color .2s ease, background-color .2s ease;
}

.service-card:hover {
  border-color: rgba(224, 160, 127, .8);
  background: #303036;
}

.service-card__number {
  position: absolute;
  top: 18px;
  left: 20px;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 20px;
  z-index: 1;
}

.service-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #313136;
  filter: saturate(.75);
}

.service-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 26px 26px;
}

.service-card__eyebrow {
  margin: 0 0 20px;
  color: var(--color-contact);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.service-card__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: .98;
}

.service-card__description {
  margin: 18px 0 0;
  color: var(--color-card-muted);
  font-size: 16px;
  line-height: 1.5;
}

.service-card__price {
  margin: 18px 0 0;
  color: var(--color-contact);
  font-family: var(--font-serif);
  font-size: 28px;
}

.service-card__link {
  margin-top: auto;
}

.service-card--contact {
  background: var(--color-accent-dark);
}

.service-card--contact .service-card__body {
  justify-content: center;
}

.service-card--contact .service-card__title {
  max-width: 270px;
  margin-top: 28px;
  font-size: clamp(42px, 5vw, 60px);
}

.service-card--contact .service-card__description {
  color: rgba(255, 255, 255, .75);
}

.social {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding: 88px max(24px, 7vw);
  color: var(--color-ink);
  background: var(--color-contact);
}

.social__content {
  max-width: 660px;
}

.social .section-label {
  color: var(--color-accent-dark);
}

.social__title {
  margin: 20px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 400;
  letter-spacing: -.07em;
  line-height: .9;
}

.social__description {
  max-width: 500px;
  margin: 24px 0 0;
  color: #5b403a;
  font-size: 17px;
  font-style: italic;
  line-height: 1.5;
}

.social__list {
  display: flex;
  gap: 14px;
  align-self: end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social__link {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  color: var(--color-contact);
  background: var(--color-ink);
  transition: transform .2s ease, background-color .2s ease;
}

.social__link:hover {
  background: var(--color-accent-dark);
  transform: translateY(-4px);
}

.social__icon {
  width: 48px;
  height: 48px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px max(24px, 7vw);
  color: rgba(255, 255, 255, .72);
  background: var(--color-ink);
  font-size: 12px;
  letter-spacing: .04em;
}

.site-footer__name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.site-footer__logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}

.site-footer__name span {
  margin-inline: 8px;
  color: var(--color-contact);
}

.site-footer__link {
  color: var(--color-contact);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s ease, transform .2s ease;
}

.site-footer__link span {
  display: inline-block;
  margin-left: 7px;
  font-size: 16px;
  transition: transform .2s ease;
}

.site-footer__link:hover {
  color: #fff;
}

.site-footer__link:hover span {
  transform: translate(3px, -3px);
}

.card-modal {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: 100dvh;
  padding: 5dvh clamp(16px, 4vw, 56px);
  border: 0;
  color: var(--color-ink);
  background: transparent;
  overflow: hidden;
}

.card-modal[open] {
  display: grid;
  place-items: center;
}

.card-modal::backdrop {
  background: rgba(16, 13, 14, .52);
  backdrop-filter: blur(18px) saturate(.75);
  animation: card-backdrop-in .4s ease both;
}

.card-modal__surface {
  --card-modal-radius: 18px;
  display: flex;
  flex-direction: column;
  width: min(740px, 100%);
  height: 90dvh;
  min-height: 0;
  max-height: 90dvh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(24, 23, 27, .18);
  border-radius: var(--card-modal-radius);
  background: #f8f5ee;
  box-shadow: 0 34px 100px rgba(0, 0, 0, .35);
  animation: card-modal-in .55s cubic-bezier(.22, 1, .36, 1) both;
}

.card-modal.is-zoom-open .card-modal__surface {
  overflow-y: hidden;
}

.card-modal.is-closing .card-modal__surface {
  animation: card-modal-out .22s ease both;
}

.card-modal__art,
.card-modal__wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.card-modal__art {
  z-index: -2;
  background: url("cards/assets/img/bg2-low.webp") center / cover;
  opacity: .2;
  transition: filter .4s ease, opacity .4s ease;
}

.card-modal__surface.is-art-loaded .card-modal__art {
  background-image: url("cards/assets/img/bg2.webp");
}

.card-modal__wash {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(248, 245, 238, .2), rgba(248, 245, 238, .8)),
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, .72), transparent 52%);
}

.card-modal__loading,
.card-modal__zoom {
  position: absolute;
  inset: 0;
}

.card-modal__loading {
  display: grid;
  z-index: 40;
  place-items: center;
  background: rgba(248, 245, 238, .82);
  backdrop-filter: blur(10px);
}

.card-modal__loading[hidden],
.card-modal__zoom[hidden] {
  display: none;
}

.card-modal__spinner {
  width: 48px;
  aspect-ratio: 1;
  border: 2px solid rgba(157, 77, 58, .22);
  border-top-color: var(--color-accent-dark);
  border-radius: 50%;
  animation: card-spinner .8s linear infinite;
}

.card-modal__zoom {
  --zoom-bg-image: none;
  --zoom-bg-low-image: url("cards/assets/img/zoom-bg-low.webp");
  isolation: isolate;
  display: grid;
  z-index: 50;
  place-items: center;
  background-color: transparent;
  backdrop-filter: blur(12px) saturate(.7);
  cursor: zoom-out;
  opacity: 0;
  overscroll-behavior: none;
}

.card-modal__zoom::before,
.card-modal__zoom::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.card-modal__zoom::before {
  z-index: 0;
  background: var(--zoom-bg-low-image) center / cover no-repeat;
  opacity: .7;
  backdrop-filter: blur(4px);
  filter: saturate(1.12) contrast(1.06);
  transform: scale(1.06);
  transition: opacity .55s ease;
}

.card-modal__zoom::after {
  z-index: 1;
  background:
    var(--zoom-bg-image) center / cover no-repeat,
    radial-gradient(circle at 17% 24%, rgba(255, 244, 212, .88) 0 .9px, transparent 2.8px),
    radial-gradient(circle at 76% 67%, rgba(211, 220, 255, .8) 0 .7px, transparent 2.4px),
    radial-gradient(circle at 83% 18%, rgba(255, 244, 212, .68) 0 .7px, transparent 2.2px),
    radial-gradient(circle at 22% 79%, rgba(211, 220, 255, .7) 0 .6px, transparent 2.2px);
  opacity: 0;
  backdrop-filter: blur(4px);
  filter: saturate(1.12) contrast(1.06);
  transform: scale(1.06);
  transition: opacity .55s ease;
}

.card-modal__zoom.is-open {
  opacity: 1;
  transition: opacity .3s ease;
}

.card-modal__zoom.is-background-loaded::before {
  opacity: 0;
}

.card-modal__zoom.is-background-loaded::after {
  opacity: .7;
}

.card-modal__zoom-close {
  display: grid;
  position: absolute;
  z-index: 3;
  top: 22px;
  right: 24px;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(244, 240, 232, .52);
  border-radius: 50%;
  color: #f4f0e8;
  background: rgba(7, 8, 17, .34);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
  font: 30px/.8 var(--font-sans);
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  transition: transform .25s ease, background-color .25s ease, border-color .25s ease;
}

.card-modal__zoom-close:hover {
  border-color: rgba(244, 240, 232, .82);
  background: rgba(244, 240, 232, .14);
  transform: rotate(90deg);
}

.card-modal__zoom-figure {
  display: grid;
  width: 100%;
  height: 100%;
  perspective: 900px;
  place-items: center;
  align-content: center;
  gap: 14px;
  margin: 0;
  pointer-events: none;
  position: relative;
  z-index: 2;
}

.card-modal__zoom-card {
  width: min(42vw, 280px);
  aspect-ratio: .555;
  border: 2px solid rgba(255, 255, 255, .72);
  border-radius: 10px;
  background: center / cover no-repeat;
  box-shadow: 0 24px 44px rgba(0, 0, 0, .46);
  cursor: default;
  opacity: 0;
  pointer-events: auto;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.card-modal__zoom.is-open .card-modal__zoom-card {
  animation: card-zoom-card-in .72s cubic-bezier(.22, 1, .36, 1) both;
}

.card-modal__zoom.is-view-transition.is-open .card-modal__zoom-card {
  opacity: 1;
  animation: none;
}

.card-modal__zoom-caption {
  margin: 0;
  color: #f4f0e8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  opacity: 0;
  text-align: center;
  text-transform: uppercase;
}

.card-modal__zoom.is-open .card-modal__zoom-caption {
  animation: card-zoom-caption-in .35s ease .8s both;
}

.card-modal__header {
  display: grid;
  align-items: flex-start;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  position: relative;
  padding: 22px 24px 0;
  flex: 0 0 auto;
}

.card-modal__close {
  display: grid;
  position: absolute;
  top: 8px;
  left: 8px;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(24, 23, 27, .22);
  border-radius: 50%;
  color: var(--color-ink);
  background: rgba(248, 245, 238, .58);
  cursor: pointer;
  font: 30px/.8 var(--font-sans);
  transition: transform .25s ease, background-color .25s ease, color .25s ease;
}

.card-modal__close:hover,
.card-modal__close:focus-visible {
  color: #fff;
  background: var(--color-accent-dark);
  transform: rotate(90deg);
}

.card-modal__timer {
  display: grid;
  position: absolute;
  z-index: 1;
  justify-items: end;
  top: 10px;
  right: 10px;
  margin: 0;
  padding: 12px 18px 10px 22px;
  border-radius: 12px;
  background: #18171b;
  gap: 4px;
  color: #e0a07f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.3;
  text-align: right;
  text-transform: uppercase;
  filter:
    drop-shadow(0 1px 1px rgba(24, 23, 27, .55))
    drop-shadow(0 2px 6px rgba(24, 23, 27, .28));
}

.card-modal__timer[hidden] {
  display: none !important;
}

.card-modal__timer time {
  color: #f4f0e8;
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1;
}

.card-modal__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  padding: 12px 24px 34px;
  text-align: center;
}

.card-modal__eyebrow {
  margin: 0;
  color: var(--color-accent-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.card-modal__eyebrow span {
  display: inline-block;
  margin-left: 5px;
  animation: card-sparkle 2.4s ease-in-out infinite;
}

.card-modal__eyebrow--status {
  margin: 24px auto 5px;
}

.card-modal__title {
  max-width: 700px;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: -.065em;
  line-height: .92;
  transition: opacity .45s ease;
  white-space: nowrap;
}

.card-modal__title.is-hidden {
  opacity: 0;
}

.card-deck {
  flex: 1 1 auto;
  width: min(calc(100% - 24px), 860px);
  height: auto;
  min-height: 150px;
  margin: 14px auto 0;
  overflow: visible;
  position: relative;
}

.oracle-card {
  --angle: 0deg;
  --offset: 0px;
  --lift: 0px;
  width: clamp(72px, 9.2vw, 116px);
  aspect-ratio: 0.555;
  position: absolute;
  top: 43%;
  left: 50%;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  perspective: 900px;
  transform: translate(-50%, calc(-50% + var(--lift))) rotate(var(--angle)) translateX(var(--offset));
  transform-origin: 50% 130%;
  transition: transform .7s cubic-bezier(.22, 1, .36, 1), opacity .45s ease, filter .45s ease;
  z-index: 1;
}

.oracle-card:nth-child(1) { --offset: clamp(-180px, -20vw, -130px); --angle: -18deg; z-index: 1; }
.oracle-card:nth-child(2) { --offset: clamp(-112px, -12vw, -78px); --angle: -11deg; z-index: 2; }
.oracle-card:nth-child(3) { --offset: clamp(-38px, -4vw, -26px); --angle: -4deg; z-index: 3; }
.oracle-card:nth-child(4) { --offset: clamp(38px, 4vw, 26px); --angle: 4deg; z-index: 4; }
.oracle-card:nth-child(5) { --offset: clamp(112px, 12vw, 78px); --angle: 11deg; z-index: 5; }
.oracle-card:nth-child(6) { --offset: clamp(180px, 20vw, 130px); --angle: 18deg; z-index: 6; }

.oracle-card:hover:not(:disabled),
.oracle-card:focus-visible {
  --lift: -14px;
  filter: drop-shadow(0 16px 12px rgba(24, 23, 27, .22));
}

.oracle-card:focus-visible {
  outline: 2px solid var(--color-accent-dark);
  outline-offset: 6px;
}

.oracle-card__inner,
.oracle-card__tilt,
.oracle-card__back,
.oracle-card__face {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.oracle-card__tilt {
  transform-style: preserve-3d;
  will-change: transform;
}

.oracle-card__inner {
  display: block;
  transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.22, 1, .36, 1);
}

.oracle-card__back,
.oracle-card__face {
  backface-visibility: hidden;
  border: 2px solid rgba(24, 23, 27, .72);
  box-shadow: 0 9px 18px rgba(24, 23, 27, .2);
}

.oracle-card__back {
  background: url("cards/assets/img/bg-low.webp") center / cover;
}

.oracle-card__back::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: url("cards/assets/img/bg.webp") center / cover;
  opacity: 0;
  transition: opacity .35s ease;
}

.oracle-card__back::after {
  content: "✦";
  display: grid;
  position: absolute;
  inset: 12px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .64);
  border-radius: 7px;
  color: rgba(255, 255, 255, .82);
  font-family: var(--font-serif);
  font-size: 24px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .3);
  z-index: 1;
}

.oracle-card__back.is-loaded::before {
  opacity: 1;
}

.oracle-card__face {
  background: center / cover no-repeat;
  transform: rotateY(180deg);
}

.oracle-card.is-selected {
  --offset: 0px;
  --angle: 0deg;
  --lift: -8px;
  --selected-scale: 1.45;
  top: 64%;
  z-index: 20;
  transform: translate(-50%, calc(-50% + var(--lift))) scale(var(--selected-scale));
  filter: drop-shadow(0 14px 14px rgba(24, 23, 27, .18));
  cursor: zoom-in;
  pointer-events: auto;
}

@media (min-width: 761px) and (max-height: 760px) {
  .card-modal__title {
    font-size: clamp(24px, 3.4vw, 40px);
  }

  .oracle-card {
    top: 37%;
  }

  .oracle-card:not(.is-selected) {
    width: clamp(64px, 6vw, 78px);
  }

  .oracle-card.is-selected {
    top: 72%;
    --selected-scale: 1.2;
  }
}

.oracle-card.is-selected:hover,
.oracle-card.is-selected:focus-visible {
  filter: drop-shadow(0 18px 16px rgba(24, 23, 27, .24));
}

.oracle-card.is-selected .oracle-card__inner {
  transform: rotateY(180deg);
}

.oracle-card.is-hidden {
  opacity: .2;
  filter: saturate(.35) blur(1px);
  pointer-events: none;
}

.is-zoom-source-hidden {
  visibility: hidden !important;
}

.card-modal__status {
  max-width: 540px;
  min-height: 22px;
  margin: 0 auto;
  color: var(--color-accent-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}

.card-history {
  flex: 0 0 auto;
  width: min(100%, 860px);
  margin: 18px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(24, 23, 27, .18);
  text-align: left;
}

.card-history__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.card-history__label,
.card-history__count {
  margin: 0;
  color: var(--color-accent-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.card-history__count {
  color: rgba(24, 23, 27, .55);
  letter-spacing: .08em;
}

.card-history__scroller {
  display: flex;
  gap: 12px;
  min-height: 110px;
  min-width: 0;
  margin-top: 11px;
  padding: 0 2px 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--color-accent-dark) transparent;
  scrollbar-width: thin;
}

.card-history__item {
  display: grid;
  flex: 0 0 64px;
  gap: 6px;
  align-content: start;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: zoom-in;
  font: inherit;
  text-align: left;
  scroll-snap-align: start;
}

.card-history__image {
  width: 64px;
  aspect-ratio: .555;
  border: 1px solid rgba(24, 23, 27, .48);
  border-radius: 6px;
  background: center / cover no-repeat;
  outline: 2px solid transparent;
  outline-offset: -3px;
  box-shadow: 0 5px 12px rgba(24, 23, 27, .16);
  transition: outline-color .25s ease;
}

.card-history__item:hover .card-history__image,
.card-history__item:focus-visible .card-history__image {
  outline-color: var(--color-accent-dark);
}

.card-history__item time {
  color: rgba(24, 23, 27, .68);
  font-size: 9px;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

@keyframes card-modal-in {
  from { opacity: 0; transform: translateY(24px) scale(.96) rotateX(3deg); }
  to { opacity: 1; transform: translateY(0) scale(1) rotateX(0); }
}

@keyframes card-modal-out {
  to { opacity: 0; transform: translateY(12px) scale(.98); }
}

@keyframes card-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes card-sparkle {
  0%, 100% { transform: scale(1) rotate(0); opacity: .7; }
  50% { transform: scale(1.3) rotate(14deg); opacity: 1; }
}

@keyframes card-spinner {
  to { transform: rotate(360deg); }
}

@keyframes card-zoom-card-in {
  0% {
    opacity: 0;
    transform: translate(var(--zoom-x, 0), var(--zoom-y, 0)) scale(.24) rotateY(0deg);
  }
  62% {
    opacity: 1;
    transform: translate(0, 0) scale(1.08) rotateY(360deg);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotateY(360deg);
  }
}

::view-transition-group(card-day-zoom) {
  perspective: 900px;
}

::view-transition-old(card-day-zoom),
::view-transition-new(card-day-zoom) {
  backface-visibility: hidden;
  transform-origin: center;
}

::view-transition-old(card-day-zoom) {
  animation: card-view-zoom-source-hidden .72s linear both;
}

::view-transition-new(card-day-zoom) {
  animation: card-view-zoom-in .72s cubic-bezier(.22, 1, .36, 1) both;
}

::view-transition-group(card-day-zoom-out) {
  perspective: 900px;
}

::view-transition-old(card-day-zoom-out),
::view-transition-new(card-day-zoom-out) {
  backface-visibility: hidden;
  transform-origin: center;
}

::view-transition-old(card-day-zoom-out) {
  animation: card-view-zoom-out-old .72s cubic-bezier(.22, 1, .36, 1) both;
}

::view-transition-new(card-day-zoom-out) {
  animation: card-view-zoom-out-new .72s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes card-view-zoom-source-hidden {
  from, to { opacity: 0; transform: scale(1) rotateY(0deg); }
}

@keyframes card-view-zoom-in {
  from { opacity: 0; transform: scale(.72) rotateY(180deg); }
  to { opacity: 1; transform: scale(1) rotateY(360deg); }
}

@keyframes card-view-zoom-out-old {
  from { opacity: 1; transform: scale(1) rotateY(360deg); }
  to { opacity: 0; transform: scale(.72) rotateY(180deg); }
}

@keyframes card-view-zoom-out-new {
  from { opacity: 0; transform: scale(.72) rotateY(-180deg); }
  to { opacity: 1; transform: scale(1) rotateY(0deg); }
}

@keyframes card-zoom-caption-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-color-scheme: dark) {
  .card-modal__surface {
    color: #f4f0e8;
    border-color: rgba(255, 255, 255, .16);
    background: #18171b;
  }

  .card-modal__art {
    filter: invert(1);
    opacity: .17;
  }

  .card-modal__wash {
    background:
      linear-gradient(180deg, rgba(24, 23, 27, .25), rgba(24, 23, 27, .86)),
      radial-gradient(circle at 50% 34%, rgba(73, 65, 68, .45), transparent 52%);
  }

  .card-modal__close {
    border-color: rgba(255, 255, 255, .24);
    color: #f4f0e8;
    background: rgba(24, 23, 27, .58);
  }

  .card-modal__loading {
    background: rgba(24, 23, 27, .86);
  }

  .card-history {
    border-color: rgba(255, 255, 255, .18);
  }

  .card-history__count,
  .card-history__item time {
    color: rgba(244, 240, 232, .68);
  }

  .card-history__image {
    border-color: rgba(255, 255, 255, .48);
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 680px;
    padding-block: 64px 80px;
    background-position: 58% center;
  }

  .about {
    min-height: auto;
    padding: 64px 20px;
  }

  .about__card {
    padding: 32px 24px;
  }

  .about__body {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 36px;
  }

  .services__header {
    align-items: flex-start;
    gap: 16px;
  }

  .services__arrow {
    width: 42px;
    height: 42px;
  }

  .social {
    flex-direction: column;
  }

  .social__list {
    align-self: start;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-modal {
    padding: 5dvh 8px;
  }

  .card-modal__surface {
    --card-modal-radius: 14px;
    height: 90dvh;
    max-height: 90dvh;
    border-radius: var(--card-modal-radius);
  }

  .card-modal__header {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px;
    padding: 16px 16px 0;
  }

  .card-modal__timer span {
    max-width: 120px;
  }

  .card-modal__timer {
    top: 8px;
    right: 8px;
    padding: 10px 14px 8px 18px;
  }

  .card-modal__timer time {
    font-size: 21px;
  }

  .card-modal__content {
    padding: 10px 12px 24px;
  }

  .card-modal__title {
    max-width: none;
    font-size: clamp(16px, 4.6vw, 20px);
    letter-spacing: -.04em;
    line-height: 1;
  }

  .card-modal__zoom-card {
    width: min(58vw, 220px);
  }

  .card-modal__zoom-close {
    top: 16px;
    right: 16px;
  }

  .card-deck {
    min-height: 150px;
    margin-top: 12px;
  }

  .oracle-card {
    top: 38%;
    width: clamp(64px, 17vw, 84px);
  }

  .oracle-card:nth-child(1) { --offset: -68px; --angle: -23deg; }
  .oracle-card:nth-child(2) { --offset: -41px; --angle: -14deg; }
  .oracle-card:nth-child(3) { --offset: -14px; --angle: -5deg; }
  .oracle-card:nth-child(4) { --offset: 14px; --angle: 5deg; }
  .oracle-card:nth-child(5) { --offset: 41px; --angle: 14deg; }
  .oracle-card:nth-child(6) { --offset: 68px; --angle: 23deg; }

  .oracle-card.is-selected {
    top: 72%;
    --selected-scale: 1.35;
    transform: translate(-50%, calc(-50% + var(--lift))) scale(var(--selected-scale));
  }

  .card-history {
    margin-top: 12px;
    padding-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
