/* ============================================================
   Emotion Journey — global styles
   Palette: warm ivory base, deep petrol ink, alpine teal accent,
   copper highlights. Typography: Fraunces display + Inter body.
   Prefix: .ej-* for all custom classes.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600;700&family=Spline+Sans+Mono:wght@400;500&display=swap');

:root {
  --ej-ivory: #faf7f1;
  --ej-sand: #f1eae0;
  --ej-cream: #fffdf9;
  --ej-ink: #10262c;
  --ej-ink-soft: #3d545b;
  --ej-teal: #0e6b5c;
  --ej-teal-deep: #0a4a40;
  --ej-copper: #c17f4e;
  --ej-line: rgba(16, 38, 44, 0.14);
  --ej-line-strong: rgba(16, 38, 44, 0.32);
  --ej-radius: 1.25rem;
  --ej-shadow: 0 24px 60px -24px rgba(16, 38, 44, 0.28);
  --ej-shadow-soft: 0 14px 40px -18px rgba(16, 38, 44, 0.22);
  --bs-body-bg: var(--ej-ivory);
  --bs-body-color: var(--ej-ink);
  --bs-body-font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body,html {
  background: var(--ej-ivory);
  color: var(--ej-ink);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
}

::selection { background: var(--ej-teal); color: #fff; }

/* ---------- type ---------- */

.ej-display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.98;
}

.ej-display em,
.ej-accent-serif {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  color: var(--ej-teal);
}

.ej-mono {
  font-family: 'Spline Sans Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ej-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Spline Sans Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ej-teal);
}

.ej-eyebrow::before {
  content: '';
  width: 2.4rem;
  height: 1px;
  background: var(--ej-teal);
}

.ej-lead {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ej-ink-soft);
}

/* giant stroked backdrop word */
.ej-ghost {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 1px rgba(16, 38, 44, 0.16);
  line-height: 0.8;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

/* ---------- layout primitives ---------- */

.ej-section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }
.ej-section--sand { background: var(--ej-sand); }
.ej-section--white { background: #fff; }
.ej-section--ink { background: var(--ej-ink); color: var(--ej-ivory); }
.ej-section--ink .ej-lead { color: rgba(250, 247, 241, 0.72); }

.ej-photo-bg {
  background-size: cover;
  background-position: center;
  position: relative;
}

.ej-hr-line { border-top: 1px solid var(--ej-line); }

/* ---------- buttons ---------- */

.btn-ej {
  --bs-btn-font-weight: 600;
  --bs-btn-padding-x: 1.9rem;
  --bs-btn-padding-y: 0.95rem;
  --bs-btn-border-radius: 10rem;
  background: var(--ej-ink);
  border: 1px solid var(--ej-ink);
  color: var(--ej-ivory);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s, background 0.35s;
}

.btn-ej:hover,
.btn-ej:focus {
  background: var(--ej-teal);
  border-color: var(--ej-teal);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 18px 34px -16px rgba(14, 107, 92, 0.55);
}

.btn-ej-outline {
  --bs-btn-font-weight: 600;
  --bs-btn-padding-x: 1.9rem;
  --bs-btn-padding-y: 0.95rem;
  --bs-btn-border-radius: 10rem;
  background: transparent;
  border: 1px solid var(--ej-line-strong);
  color: var(--ej-ink);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-ej-outline:hover {
  background: var(--ej-ink);
  color: var(--ej-ivory);
  transform: translateY(-3px);
}

/* round arrow chip button */
.ej-btn-orb {
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 50%;
  border: 1px solid var(--ej-line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--ej-ink);
  background: var(--ej-cream);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
}

.ej-btn-orb:hover {
  background: var(--ej-teal);
  border-color: var(--ej-teal);
  color: #fff;
  transform: rotate(45deg) scale(1.06);
}

/* ---------- decorative elements ---------- */

.ej-ring {
  position: absolute;
  border: 1px solid var(--ej-line);
  border-radius: 50%;
  pointer-events: none;
}

.ej-dotgrid {
  position: absolute;
  width: 220px;
  height: 160px;
  background-image: radial-gradient(rgba(16, 38, 44, 0.28) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  pointer-events: none;
}

.ej-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.5;
}

.ej-frame {
  position: relative;
  border-radius: var(--ej-radius);
  overflow: hidden;
}

/* rotated polaroid-style media card */
.ej-polaroid {
  background: #fff;
  padding: 0.9rem 0.9rem 3.2rem;
  border: 1px solid var(--ej-line);
  border-radius: 0.6rem;
  box-shadow: var(--ej-shadow-soft);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.ej-polaroid:hover { transform: rotate(0deg) translateY(-8px) !important; }
.ej-polaroid img { border-radius: 0.35rem; }

/* floating stat chip */
.ej-chip-float {
  position: absolute;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--ej-line);
  border-radius: 1rem;
  padding: 0.85rem 1.15rem;
  box-shadow: var(--ej-shadow-soft);
  z-index: 3;
}

/* ---------- header ---------- */

.ej-topbar {
  background: var(--ej-ink);
  color: rgba(250, 247, 241, 0.85);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.ej-topbar a { color: rgba(250, 247, 241, 0.85); text-decoration: none; }
.ej-topbar a:hover { color: #fff; }
.ej-topbar i { color: var(--ej-copper); }

.ej-navbar {
  background: rgba(250, 247, 241, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ej-line);
  transition: box-shadow 0.3s;
}

.ej-navbar.is-scrolled { box-shadow: 0 12px 34px -20px rgba(16, 38, 44, 0.4); }

.ej-navbar .nav-link {
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  color: var(--ej-ink-soft);
  padding: 0.55rem 0.9rem;
  position: relative;
}

.ej-navbar .nav-link::after {
  content: '';
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--ej-copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}

.ej-navbar .nav-link:hover::after,
.ej-navbar .nav-link.is-active::after { transform: scaleX(1); }
.ej-navbar .nav-link.is-active { color: var(--ej-ink); }

.ej-navbar .navbar-toggler {
  border: 1px solid var(--ej-line-strong);
  border-radius: 0.6rem;
  padding: 0.5rem 0.75rem;
}

.ej-logo-img { height: 42px; width: auto; }

.ej-brand-word {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--ej-ink);
}

/* ---------- marquee ---------- */

.ej-marquee {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.ej-marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  padding-right: 3rem;
  animation: ej-marquee 26s linear infinite;
  will-change: transform;
}

.ej-marquee--fast .ej-marquee__track { animation-duration: 16s; }

@keyframes ej-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ej-marquee__track { animation: none; }
}

/* ---------- cards & grids ---------- */

.ej-card {
  background: var(--ej-cream);
  border: 1px solid var(--ej-line);
  border-radius: var(--ej-radius);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s;
  height: 100%;
}

.ej-card:hover { transform: translateY(-6px); box-shadow: var(--ej-shadow); }

/* swiss matrix cell */
.ej-matrix {
  border: 1px solid var(--ej-line);
}

.ej-matrix > [class*='col'] {
  border-right: 1px solid var(--ej-line);
  border-bottom: 1px solid var(--ej-line);
  padding: clamp(1.6rem, 3vw, 2.6rem);
}

.ej-matrix > [class*='col']:last-child { border-right: 0; }

@media (min-width: 768px) {
  .ej-matrix > [class*='col']:nth-child(-n+2) { border-bottom: 1px solid var(--ej-line); }
  .ej-matrix > [class*='col']:nth-child(n+3) { border-bottom: 0; }
}

/* bento */
.ej-bento {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(12, 1fr);
}

.ej-bento__cell {
  border: 1px solid var(--ej-line);
  border-radius: var(--ej-radius);
  background: var(--ej-cream);
  overflow: hidden;
  position: relative;
}

/* filmstrip */
.ej-filmstrip {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--ej-teal) transparent;
}

.ej-filmstrip__frame {
  flex: 0 0 min(78vw, 30rem);
  scroll-snap-align: start;
  border-radius: var(--ej-radius);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--ej-line);
}

/* numbered index rows */
.ej-index-row {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--ej-line);
  text-decoration: none;
  color: var(--ej-ink);
  transition: padding-left 0.35s, color 0.35s;
}

.ej-index-row:hover { padding-left: 1rem; color: var(--ej-teal); }

.ej-index-row .num {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 0.78rem;
  color: var(--ej-copper);
}

/* stat counter */
.ej-stat__num {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1;
}

/* timeline */
.ej-timeline { position: relative; padding-left: 2.2rem; }
.ej-timeline::before {
  content: '';
  position: absolute;
  left: 0.45rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: var(--ej-line-strong);
}

.ej-timeline__item { position: relative; padding-bottom: 2rem; }

.ej-timeline__item::before {
  content: '';
  position: absolute;
  left: -1.95rem;
  top: 0.42rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--ej-ivory);
  border: 2px solid var(--ej-teal);
}

/* avatar cluster */
.ej-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px solid var(--ej-ivory);
  object-fit: cover;
  margin-left: -0.8rem;
  box-shadow: var(--ej-shadow-soft);
}

.ej-avatar:first-child { margin-left: 0; }

/* ---------- disclaimer (casino pages) ---------- */

.ej-disclaimer {
  border: 1px solid var(--ej-line);
  border-radius: var(--ej-radius);
  background: var(--ej-cream);
}

.ej-disclaimer h3 { font-family: 'Fraunces', serif; }

.ej-warn {
  border-radius: var(--ej-radius);
  background: #f7ece5;
  border: 1px solid #e4cdbb;
}

/* ---------- accordion ---------- */

.ej-acc .accordion-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ej-line);
  border-radius: 0;
}

.ej-acc .accordion-button {
  background: transparent;
  box-shadow: none;
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  padding: 1.4rem 0;
  color: var(--ej-ink);
}

.ej-acc .accordion-button:not(.collapsed) { color: var(--ej-teal); }
.ej-acc .accordion-button::after {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  content: '\f067';
  background-image: none;
  font-size: 0.95rem;
}

.ej-acc .accordion-button:not(.collapsed)::after { content: '\f068'; }
.ej-acc .accordion-body { padding: 0 0 1.6rem; color: var(--ej-ink-soft); line-height: 1.75; }

/* ---------- forms ---------- */

.ej-input {
  border: 1px solid var(--ej-line-strong);
  border-radius: 0.85rem;
  padding: 0.9rem 1.15rem;
  background: #fff;
  font-size: 0.95rem;
}

.ej-input:focus {
  border-color: var(--ej-teal);
  box-shadow: 0 0 0 0.2rem rgba(14, 107, 92, 0.12);
}

/* ---------- toast notification ---------- */

.ej-toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translate(-50%, 140%);
  background: var(--ej-ink);
  color: var(--ej-ivory);
  border-radius: 10rem;
  padding: 0.95rem 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: var(--ej-shadow);
  z-index: 2000;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  font-weight: 500;
  max-width: min(92vw, 30rem);
}

.ej-toast.is-visible { transform: translate(-50%, 0); }
.ej-toast i { color: var(--ej-copper); }

/* ---------- cookie banner ---------- */

.ej-cookie {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  width: min(24rem, calc(100vw - 2.8rem));
  background: var(--ej-cream);
  border: 1px solid var(--ej-line);
  border-radius: var(--ej-radius);
  box-shadow: var(--ej-shadow);
  padding: 1.5rem;
  z-index: 1900;
  transform: translateY(130%);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.ej-cookie.is-visible { transform: translateY(0); }

/* ---------- footer ---------- */

.ej-footer {
  background: var(--ej-ink);
  color: rgba(250, 247, 241, 0.78);
}

.ej-footer a { color: rgba(250, 247, 241, 0.78); text-decoration: none; transition: color 0.3s; }
.ej-footer a:hover { color: #fff; }

.ej-footer__brand {
  font-family: 'Fraunces', serif;
  font-size: clamp(3rem, 11vw, 9rem);
  line-height: 0.9;
  color: var(--ej-ivory);
  letter-spacing: -0.03em;
}

.ej-footer__brand span { color: var(--ej-copper); font-style: italic; }

.ej-footer h6 {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ej-copper);
  margin-bottom: 1.1rem;
}

.ej-footer .list-unstyled li { margin-bottom: 0.55rem; font-size: 0.92rem; }

/* ---------- misc ---------- */

.ej-tilt-r { transform: rotate(2.4deg); }
.ej-tilt-l { transform: rotate(-2.2deg); }

.ej-sticky-top { position: sticky; top: 7rem; }

.ej-legal h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 1rem;
}

.ej-legal p, .ej-legal li { color: var(--ej-ink-soft); line-height: 1.8; }

/* inner page hero — smaller than homepage */
.ej-page-hero {
  padding: clamp(7rem, 14vw, 11rem) 0 clamp(3.5rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}

/* rotating badge */
.ej-spin-badge { animation: ej-spin 14s linear infinite; }
@keyframes ej-spin { to { transform: rotate(360deg); } }

/* progress rail */
.ej-rail {
  height: 4px;
  background: var(--ej-line);
  border-radius: 4px;
  overflow: hidden;
}

.ej-rail > span {
  display: block;
  height: 100%;
  background: var(--ej-teal);
  border-radius: 4px;
}

/* map iframe */
.ej-map {
  border-radius: var(--ej-radius);
  border: 1px solid var(--ej-line);
  overflow: hidden;
  filter: grayscale(0.35) contrast(1.02);
}

.ej-map iframe { width: 100%; height: 100%; min-height: 26rem; border: 0; display: block; }

/* quote */
.ej-quote-mark {
  font-family: 'Fraunces', serif;
  font-size: 6rem;
  line-height: 0.4;
  color: var(--ej-copper);
}

/* modal polish */
.ej-modal .modal-content {
  border-radius: var(--ej-radius);
  border: 1px solid var(--ej-line);
  background: var(--ej-cream);
}

/* responsive helpers */
@media (max-width: 767.98px) {
  .ej-bento { grid-template-columns: 1fr; }
  .ej-bento__cell { grid-column: auto !important; grid-row: auto !important; }
  .ej-topbar { font-size: 0.7rem; }
  .ej-cookie { right: 1rem; left: 1rem; width: auto; }
}
