:root {
  --paper: #fff7e7;
  --paper-deep: #f4dfbb;
  --ink: #3c2919;
  --blue: #48aceb;
  --blue-deep: #1d78bd;
  --green: #5fa568;
  --leaf: #2d7351;
  --wicker: #c78b43;
  --wicker-deep: #7c4a24;
  --sun: #f4c743;
  --lotus: #ef9ab4;
  --red: #ce3428;
  --white: #fffefa;
  --shadow: 0 24px 70px rgba(60, 41, 25, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 12%, rgba(244, 199, 67, 0.2), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(72, 172, 235, 0.18), transparent 32%),
    linear-gradient(135deg, #fbf0d9 0%, #fff9ed 39%, #dff4ff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(124, 74, 36, 0.045) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(90deg, rgba(72, 172, 235, 0.045) 0 1px, transparent 1px 18px);
  mix-blend-mode: multiply;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-shell {
  overflow: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 52px);
  background: rgba(255, 247, 231, 0.88);
  border-bottom: 2px solid rgba(60, 41, 25, 0.2);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 800;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 34px;
  border: 3px solid var(--ink);
  border-radius: 8px 8px 16px 16px;
  background:
    linear-gradient(90deg, transparent 0 13%, rgba(60, 41, 25, 0.24) 13% 18%, transparent 18% 32%, rgba(60, 41, 25, 0.2) 32% 37%, transparent 37%),
    var(--wicker);
  box-shadow: 4px 4px 0 rgba(60, 41, 25, 0.26);
}

.brand-mark::before {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  top: -15px;
  height: 22px;
  border: 3px solid var(--ink);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  top: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 12px 0 0 var(--white);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a,
.nav button,
.paper-button {
  border: 2px solid rgba(60, 41, 25, 0.8);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 10px 14px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(60, 41, 25, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nav a:hover,
.nav button:hover,
.paper-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(60, 41, 25, 0.24);
  background: #fef1cf;
}

.hero {
  position: relative;
  min-height: calc(100vh - 66px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  align-items: center;
  gap: clamp(28px, 5vw, 78px);
  padding: clamp(36px, 6vw, 84px) clamp(18px, 5vw, 72px) clamp(28px, 5vw, 64px);
}

.hero::before {
  content: "";
  position: absolute;
  left: -8vw;
  right: -8vw;
  bottom: -42px;
  height: 160px;
  background:
    radial-gradient(ellipse at 10% 70%, rgba(95, 165, 104, 0.33), transparent 42%),
    repeating-linear-gradient(172deg, rgba(29, 120, 189, 0.14) 0 3px, transparent 3px 16px);
  transform: rotate(-2deg);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 8px 13px;
  border: 2px solid rgba(60, 41, 25, 0.72);
  border-radius: 999px;
  background: #e7f7ff;
  color: var(--blue-deep);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 780px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 9.7vw, 9rem);
  line-height: 0.9;
  letter-spacing: 0;
  color: var(--ink);
  text-shadow:
    3px 3px 0 var(--paper),
    7px 7px 0 rgba(72, 172, 235, 0.36),
    11px 11px 0 rgba(199, 139, 67, 0.32);
}

.ticker-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0;
}

.ticker-chip {
  display: inline-flex;
  padding: 12px 16px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--sun);
  font-weight: 950;
  box-shadow: 6px 6px 0 rgba(60, 41, 25, 0.24);
}

.small-note {
  max-width: 280px;
  color: rgba(60, 41, 25, 0.74);
  font-weight: 760;
  line-height: 1.42;
}

.description-scroll {
  max-width: 660px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(199, 139, 67, 0.2) 0 16px, transparent 16px calc(100% - 16px), rgba(199, 139, 67, 0.2) calc(100% - 16px)),
    var(--paper);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow);
}

.description-scroll p {
  margin: 0;
  color: #4c3421;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 2vw, 1.38rem);
  line-height: 1.52;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.paper-button.primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue-deep);
}

.art-stage {
  position: relative;
  z-index: 2;
  min-height: 580px;
  display: grid;
  place-items: center;
}

.water-ring {
  position: absolute;
  width: min(78vw, 590px);
  aspect-ratio: 1;
  border-radius: 52% 48% 56% 44%;
  background:
    repeating-linear-gradient(174deg, rgba(255, 255, 255, 0.62) 0 5px, rgba(72, 172, 235, 0.24) 5px 15px),
    #bfeeff;
  border: 3px solid rgba(60, 41, 25, 0.18);
  filter: saturate(1.1);
  animation: lakeDrift 12s ease-in-out infinite alternate;
}

.portrait-card {
  position: relative;
  z-index: 2;
  width: min(86vw, 520px);
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  padding: 12px;
  box-shadow: 16px 16px 0 rgba(60, 41, 25, 0.23);
  transform: rotate(1.5deg);
}

.portrait-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
}

.lucky-seal {
  position: absolute;
  right: -20px;
  bottom: 34px;
  z-index: 3;
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
  box-shadow: 7px 7px 0 rgba(60, 41, 25, 0.26);
  transform: rotate(-9deg);
}

.banner-section {
  position: relative;
  z-index: 3;
  padding: 18px clamp(14px, 4vw, 46px) 44px;
}

.banner-frame {
  position: relative;
  border: 4px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  background: var(--blue);
  box-shadow: var(--shadow);
}

.banner-frame img {
  width: 100%;
  min-height: 300px;
  max-height: 560px;
  object-fit: cover;
  object-position: center;
}

.banner-caption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: min(620px, calc(100% - 36px));
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 247, 231, 0.93);
  padding: 14px 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.4;
  box-shadow: 6px 6px 0 rgba(60, 41, 25, 0.22);
}

.ribbon {
  overflow: hidden;
  border-block: 2px solid rgba(60, 41, 25, 0.32);
  background: var(--leaf);
  color: var(--white);
}

.ribbon-track {
  display: flex;
  width: max-content;
  animation: ribbonMove 28s linear infinite;
}

.ribbon span {
  padding: 14px 24px;
  font-weight: 900;
  white-space: nowrap;
}

.content-band {
  padding: clamp(48px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: clamp(26px, 5vw, 68px);
  align-items: start;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--blue-deep);
  font-size: 0.98rem;
  font-weight: 950;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 6.8vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.charm-list {
  display: grid;
  gap: 14px;
}

.charm-card {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 16px;
  align-items: center;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.9);
  padding: 16px;
  box-shadow: 8px 8px 0 rgba(60, 41, 25, 0.18);
}

.charm-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #e9f7ff;
  color: var(--blue-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 900;
}

.charm-card h3 {
  margin: 0 0 6px;
  font-size: 1.16rem;
  text-transform: uppercase;
}

.charm-card p {
  margin: 0;
  color: rgba(60, 41, 25, 0.72);
  font-weight: 720;
  line-height: 1.46;
}

.token-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 44px;
}

.token-card {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  padding: 18px;
  box-shadow: 7px 7px 0 rgba(60, 41, 25, 0.2);
}

.token-card:nth-child(2) {
  background: var(--blue);
  color: var(--white);
}

.token-card span {
  font-weight: 900;
  text-transform: uppercase;
}

.token-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.6vw, 3.45rem);
  line-height: 0.95;
}

.finale {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  margin: 0 clamp(18px, 5vw, 72px) clamp(28px, 6vw, 58px);
  border: 4px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(105deg, rgba(60, 41, 25, 0.78), rgba(29, 120, 189, 0.48)),
    url("./assets/tib-banner.png") center / cover;
  color: var(--white);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow);
}

.finale h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.95;
}

.finale p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 760;
  line-height: 1.5;
}

.finale .paper-button {
  background: var(--sun);
}

.footer {
  padding: 22px clamp(18px, 5vw, 72px) 34px;
  color: rgba(60, 41, 25, 0.7);
  font-weight: 800;
  text-align: center;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes lakeDrift {
  from {
    transform: rotate(-4deg) scale(0.98);
  }

  to {
    transform: rotate(4deg) scale(1.02);
  }
}

@keyframes ribbonMove {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1020px) {
  .hero,
  .story-grid,
  .finale {
    grid-template-columns: 1fr;
  }

  .art-stage {
    min-height: 470px;
  }

  .token-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .nav a,
  .nav button,
  .paper-button {
    padding: 9px 10px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 18vw, 5.4rem);
  }

  .art-stage {
    min-height: 390px;
  }

  .portrait-card {
    width: min(86vw, 390px);
    box-shadow: 10px 10px 0 rgba(60, 41, 25, 0.18);
  }

  .lucky-seal {
    width: 104px;
    height: 104px;
    right: -4px;
    bottom: 14px;
    font-size: 0.82rem;
  }

  .banner-caption {
    position: static;
    max-width: none;
    border-radius: 0;
    border-width: 3px 0 0;
    box-shadow: none;
  }

  .charm-card {
    grid-template-columns: 1fr;
  }
}
