/* ==========================================================================
   Crazy Rabbit — tokens
   ========================================================================== */
:root {
  --black: #000;
  --panel: #1c1c1c;
  --panel-soft: #191919;
  --panel-footer: #262626;
  --line: #2f2f2f;
  --hairline: rgba(255, 255, 255, 0.06);
  --white: #fff;
  --text-soft: #d9d9d9;
  --muted: #a6a6a6;
  --grey: #858585;
  --blue-1: #6bb4f3;
  --blue-2: #6783f2;
  --accent: linear-gradient(90deg, var(--blue-1), var(--blue-2));

  --font-display: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --font-body: "EB Garamond", Garamond, "Times New Roman", serif;

  --wrap: 1200px;
  --gutter: clamp(18px, 4vw, 44px);
  --frame: calc(var(--wrap) + 2 * var(--gutter));
  --header-h: 64px;
  --section-gap: clamp(64px, 9vw, 120px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 400 19px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img,
video { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3 { margin: 0; font-weight: 400; }

p { margin: 0 0 1em; }

ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }

figure { margin: 0; }

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--blue-1);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Header + navigation
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: var(--frame);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 8px var(--gutter);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.primary-nav { margin-left: auto; }

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 36px);
}

.primary-nav a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

/* underline sweep taken from the original tab indicator */
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after { width: 100%; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 36px;
  padding: 8px 7px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--accent);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-bottom: var(--section-gap);
  background: var(--black);
}

.hero__inner {
  position: relative;
  display: grid;
  place-content: center;
  min-height: 88vh;
  min-height: 88svh;
  padding: calc(var(--header-h) + 40px) var(--gutter) 80px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.35) 60%, var(--black) 100%),
    url("../img/hero-bg.jpg") center / cover no-repeat;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 116px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.hero__lede {
  margin: 22px auto 0;
  font-size: clamp(18px, 1.7vw, 24px);
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.trailer {
  max-width: var(--frame);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.trailer__video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  max-width: var(--frame);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--section-gap);
}

.section__head {
  margin: 0 auto clamp(32px, 5vw, 56px);
  text-align: center;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  text-transform: uppercase;
}

.section__lede {
  max-width: 760px;
  margin: 16px auto 0;
  color: var(--muted);
}

/* ==========================================================================
   Master NFT codex
   ========================================================================== */
.codex {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.master {
  height: 100%;
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.master:hover {
  border-color: rgba(107, 180, 243, 0.55);
  transform: translateY(-2px);
}

.master__code {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.master__name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
}

/* epithet in the accent gradient; upright — no italic face is loaded */
.master__name span {
  display: block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.master__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.master__facts dt {
  font-size: 14px;
  color: var(--muted);
}

.master__facts dd {
  font-family: var(--font-display);
  font-size: 16px;
}

.master__text {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-soft);
}

/* ==========================================================================
   Features — centred tabs over one panel that holds the card loop
   ========================================================================== */
.tabs__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(12px, 4vw, 56px);
  margin-bottom: 28px;
}

.tabs__tab {
  position: relative;
  padding: 8px 2px;
  background: none;
  border: 0;
  color: var(--white);
  font: 400 clamp(20px, 2vw, 26px)/1.3 var(--font-body);
  cursor: pointer;
}

.tabs__tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.tabs__tab[aria-selected="true"]::after,
.tabs__tab:hover::after { width: 100%; }

.features__box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(22px, 3.2vw, 40px);
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}

/* all panels share one grid cell so switching tabs never changes the height */
.js .tabs__panels { display: grid; }

.js .tabs__panel { grid-area: 1 / 1; }

.js .tabs__panel[hidden] {
  display: block;
  visibility: hidden;
}

.no-js .tabs__list { display: none; }

.no-js .tabs__panel[hidden] { display: block; }

.no-js .tabs__panel + .tabs__panel { margin-top: 22px; }

.tabs__panel p { margin: 0; color: var(--text-soft); }

.tabs__heading {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
}

.features__card { justify-self: center; width: 100%; }

.loop {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* ==========================================================================
   Fortune tellers — portrait always on the left, flush with the text
   ========================================================================== */
.motion-toggle {
  margin-top: 18px;
  padding: 8px 16px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font: 400 16px/1.2 var(--font-body);
  cursor: pointer;
}

.motion-toggle:hover,
.motion-toggle[aria-pressed="true"] {
  border-color: var(--blue-1);
  color: var(--white);
}

.no-js .motion-toggle { display: none; }

.tellers {
  display: grid;
  gap: clamp(40px, 5vw, 64px);
}

.teller {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(22px, 3vw, 36px);
  align-items: center;
}

.teller__name {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 600;
}

.teller__facts {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.teller__facts div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
}

.teller__facts dt {
  font-size: 22px;
  color: var(--white);
}

.teller__facts dd {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.teller__body p { color: var(--text-soft); }

/* ==========================================================================
   Button
   ========================================================================== */
.btn {
  display: inline-grid;
  place-items: center;
  width: min(395px, 100%);
  min-height: 54px;
  margin-top: 8px;
  padding: 10px 28px;
  border-radius: 8px;
  background: var(--accent);
  /* the original set this label white on the gradient (below 3:1) — dark for legibility */
  color: var(--black);
  font: 500 20px/1.2 var(--font-body);
  text-decoration: none;
}

/* the booking service behind this button is gone — kept for the look only */
.btn--static { cursor: default; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--panel-footer);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: var(--frame);
  margin: 0 auto;
  padding: 40px var(--gutter);
}

.footer-brand img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
}

.footer-links__title {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.footer-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible { color: var(--white); }

.footer-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.copyright {
  margin: 0;
  padding: 18px var(--gutter) 26px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .codex { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .features__box { grid-template-columns: minmax(0, 1fr); }

  .features__card { max-width: 300px; }

  .teller { grid-template-columns: minmax(0, 1fr); }

  .teller__media {
    width: 100%;
    max-width: 480px;
    margin-inline: auto;
  }
}

@media (max-width: 900px) {
  .js .nav-toggle { display: block; }

  /* without JS the menu stays in the header flow instead of covering the page */
  .js .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: none;
    background: rgba(12, 12, 12, 0.97);
    border-bottom: 1px solid var(--line);
  }

  .js .primary-nav.is-open { display: block; }

  .no-js .site-header { position: static; }

  .no-js .site-header__inner { flex-wrap: wrap; }

  .no-js .hero__inner { padding-top: 40px; }

  .js .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px var(--gutter) 16px;
  }

  .js .primary-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--hairline);
  }

  .js .primary-nav a::after { display: none; }

  .no-js .primary-nav ul { flex-wrap: wrap; gap: 6px 18px; }
}

@media (max-width: 767px) {
  body { font-size: 18px; }

  .brand__name { font-size: 15px; }

  .codex { grid-template-columns: minmax(0, 1fr); }

  .teller__facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }

  .teller__facts dt { font-size: 18px; color: var(--muted); }

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

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
