@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Cinzel:wght@400;500&family=DM+Mono:wght@400;500&family=DM+Serif+Display&family=Pacifico&family=Space+Grotesk:wght@400;500;600&family=Unbounded:wght@400;500&display=swap');

:root {
  color-scheme: light;
  --paper: #f7f5f0;
  --ink: #20211f;
  --muted: #89877f;
  --rule: #d9d5cb;
  --accent: #a9875a;
  font-family: 'DM Sans', 'Helvetica Neue', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

html, body { min-width: 320px; min-height: 100%; margin: 0; }

body {
  background: var(--paper);
  color: var(--ink);
}

body::before {
  position: fixed;
  z-index: 0;
  inset: -30%;
  background:
    radial-gradient(ellipse at 27% 30%, rgb(220 192 145 / 52%), transparent 37%),
    radial-gradient(ellipse at 74% 66%, rgb(166 193 187 / 47%), transparent 40%),
    radial-gradient(ellipse at 77% 22%, rgb(229 188 170 / 43%), transparent 32%);
  content: "";
  pointer-events: none;
  animation: ambient-drift 15s ease-in-out infinite alternate, ambient-palette 31.5s linear infinite;
  will-change: transform;
}

.page-shell {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 7vw;
  overflow: hidden;
}

.brand-hero {
  display: flex;
  width: 100%;
  justify-content: center;
  animation: arrive 900ms cubic-bezier(.2,.7,.2,1) both;
}

.ree-wordmark {
  position: relative;
  display: grid;
  width: clamp(210px, 31vw, 390px);
  height: clamp(112px, 16vw, 180px);
  margin: 0;
  place-items: center;
  font-size: clamp(88px, 14vw, 156px);
  line-height: .85;
  letter-spacing: .055em;
  font-weight: 400;
  color: var(--ink);
}

.ree-wordmark span {
  grid-area: 1 / 1;
  opacity: 0;
  white-space: nowrap;
  animation: font-show 31.5s linear infinite;
}

.face-cinzel { font-family: 'Cinzel', Georgia, serif; animation-delay: 0s !important; letter-spacing: .12em; }
.face-bungee { font-family: 'Bungee', Impact, sans-serif; animation-delay: 4.5s !important; letter-spacing: .035em; }
.face-space { font-family: 'Space Grotesk', Arial, sans-serif; animation-delay: 9s !important; font-weight: 600; letter-spacing: -.06em; }
.face-dm-serif { font-family: 'DM Serif Display', Georgia, serif; animation-delay: 13.5s !important; letter-spacing: .015em; }
.face-pacifico { font-family: 'Pacifico', cursive; animation-delay: 18s !important; font-size: .86em; letter-spacing: .015em; }
.face-unbounded { font-family: 'Unbounded', Arial, sans-serif; animation-delay: 22.5s !important; font-size: .72em; font-weight: 500; letter-spacing: -.065em; }
.face-dm-mono { font-family: 'DM Mono', monospace; animation-delay: 27s !important; font-size: .83em; font-weight: 500; letter-spacing: .16em; }

@keyframes font-show {
  0% { opacity: 0; }
  2.2%, 12.8% { opacity: 1; }
  14.285%, 100% { opacity: 0; }
}

.brand-family {
  width: min(100%, 960px);
  margin-top: clamp(72px, 12vh, 132px);
}

.fine-rule {
  position: relative;
  width: 100%;
  height: 1px;
  background: var(--rule);
  margin-bottom: clamp(36px, 6.2vh, 62px);
  animation: brand-reveal 700ms 2s cubic-bezier(.2,.7,.2,1) both;
}

.fine-rule span {
  position: absolute;
  top: -1px;
  left: 50%;
  width: 38px;
  height: 3px;
  background: var(--accent);
  transform: translateX(-50%);
}

.brand-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 28px;
}

.brand-lockup {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  color: #55534d;
  transition: color 220ms ease, transform 220ms ease;
  opacity: 0;
  animation: brand-reveal 700ms cubic-bezier(.2,.7,.2,1) both;
}

.lockup-rabusiness { animation-delay: 2s; }
.lockup-reeapps { animation-delay: 4s; }
.lockup-reewall { animation-delay: 6s; }
.lockup-poincash { animation-delay: 8s; }

.brand-lockup:hover { color: var(--ink); transform: translateY(-2px); }

.lockup-rabusiness { gap: 0; }
.ra-name { display: flex; align-items: baseline; white-space: nowrap; }
.ra-main { font: 500 19px/.95 'Cinzel', Georgia, serif; letter-spacing: -.045em; }
.ra-period { margin-inline: 1px; color: var(--accent); font: 500 21px/.8 'Space Grotesk', sans-serif; }
.ra-business { font: 500 12px/1 'Space Grotesk', sans-serif; letter-spacing: -.045em; }

.lockup-reeapps { gap: 9px; }
.apps-mark { display: grid; width: 23px; height: 23px; grid-template-columns: repeat(2, 1fr); gap: 3px; transform: rotate(-8deg); }
.apps-mark i { border-radius: 2px; background: currentColor; }
.apps-mark i:nth-child(2), .apps-mark i:nth-child(3) { opacity: .42; }
.apps-name { font: 500 14px/1 'Manrope', sans-serif; letter-spacing: -.055em; }
.apps-name span { font-weight: 400; }

.lockup-reewall { gap: 8px; }
.wall-mark { position: relative; display: block; width: 24px; height: 24px; transform: rotate(45deg); }
.wall-mark i { position: absolute; inset: 2px; border: 1px solid currentColor; border-radius: 3px; }
.wall-mark i:nth-child(2) { inset: 7px; background: var(--paper); }
.wall-name { font: 500 14px/1 'Unbounded', sans-serif; letter-spacing: -.075em; }
.wall-name span { font-weight: 400; }

.lockup-poincash { gap: 8px; }
.points-mark { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid currentColor; border-radius: 50%; }
.points-mark i { width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); }
.points-name { font: 500 14px/1 'DM Mono', monospace; letter-spacing: -.075em; }
.points-name span { color: var(--accent); }

.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(30px, 5vh, 44px);
  color: #77746d;
  font: 400 12px/1.4 'DM Sans', sans-serif;
  letter-spacing: .025em;
  opacity: 0;
  animation: brand-reveal 700ms 10s cubic-bezier(.2,.7,.2,1) both;
}

.contact-links a { color: inherit; text-decoration: none; transition: color 180ms ease; }
.contact-links a:hover { color: var(--accent); }
.contact-links .whatsapp-link { flex-basis: 100%; margin-top: 2px; text-align: center; }

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

@keyframes brand-reveal {
  from { opacity: 0; filter: blur(3px); transform: translateY(8px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

@keyframes ambient-drift {
  0% { transform: translate3d(-4%, -2.5%, 0) scale(1); }
  50% { transform: translate3d(2.5%, 3%, 0) scale(1.07); }
  100% { transform: translate3d(4%, -2%, 0) scale(1.025); }
}

@keyframes ambient-palette {
  0%, 100% { filter: hue-rotate(0deg) saturate(1.05); }
  14.285% { filter: hue-rotate(42deg) saturate(1.12); }
  28.57% { filter: hue-rotate(96deg) saturate(1.08); }
  42.855% { filter: hue-rotate(148deg) saturate(1.14); }
  57.14% { filter: hue-rotate(205deg) saturate(1.08); }
  71.425% { filter: hue-rotate(258deg) saturate(1.12); }
  85.71% { filter: hue-rotate(314deg) saturate(1.06); }
}

@media (max-width: 600px) {
  .page-shell { padding: 48px 25px; }
  .ree-wordmark { width: min(72vw, 295px); height: 112px; font-size: clamp(80px, 20vw, 122px); }
  .brand-family { margin-top: clamp(72px, 12vh, 112px); }
  .fine-rule { margin-bottom: 34px; }
  .brand-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .ra-name, .apps-name, .wall-name, .points-name { font-size: 12px; }
  .ra-main { font-size: 17px; }
  .ra-period { font-size: 19px; }
  .ra-business { font-size: 11px; }
  .lockup-rabusiness, .lockup-reeapps, .lockup-reewall, .lockup-poincash { gap: 6px; }
}

@media (max-width: 370px) {
  .page-shell { padding-inline: 18px; }
  .brand-row { column-gap: 2px; }
  .ra-name, .apps-name, .wall-name, .points-name { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .ree-wordmark span { animation: none !important; opacity: 0; }
  .ree-wordmark span:first-child { opacity: 1; }
}
