/* ===== Preloader ===== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 36px;
  transition: opacity 0.7s ease;
}
#preloader.is-done { opacity: 0; pointer-events: none; }

.preloader__assemble {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.preloader__mark {
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 0 28px rgba(241, 101, 6, 0.32));
}
.preloader__mark .pl-top,
.preloader__mark .pl-bottom {
  transform-origin: center;
}
.preloader__wordmark {
  width: clamp(260px, 38vw, 420px);
  height: auto;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.preloader__wordmark.is-visible { opacity: 1; transform: translateY(0); }

.preloader__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 1.6vw, 19px);
  color: var(--bone);
  opacity: 0;
  text-align: center;
  max-width: 540px;
  padding: 0 24px;
  line-height: 1.4;
  margin: 0;
  transition: opacity 0.8s ease;
}
.preloader__tagline.is-visible { opacity: 0.7; }

.preloader__bottom {
  position: absolute;
  bottom: 36px;
  left: 36px;
  right: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone);
}
.preloader__counter { display: flex; gap: 8px; align-items: baseline; }
.preloader__counter .num { color: var(--ember); }
.preloader__progress {
  flex: 1;
  height: 1px;
  background: rgba(245,242,235,0.1);
  margin: 0 32px;
  overflow: hidden;
}
.preloader__progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--ember);
  transition: width 0.06s linear;
}
.preloader__enter {
  display: none;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bone);
  padding: 16px 28px;
  position: relative;
  background: transparent;
  border: 1px solid rgba(245,242,235,0.18);
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.preloader__enter:hover { color: var(--ember); border-color: var(--ember); }
.preloader__enter.is-ready { display: inline-block; }

@media (max-width: 600px) {
  .preloader__bottom { flex-direction: column; gap: 16px; }
  .preloader__progress { width: 80%; margin: 0; }
}

/* ===== Portal ===== */
#portal {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(241,101,6,0.06), transparent 70%),
    radial-gradient(ellipse 100% 80% at 50% 50%, rgba(241,101,6,0.02), transparent 70%),
    var(--ink);
}

/* Particle drift layer */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.particles span {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--bone);
  border-radius: 50%;
  opacity: 0;
  filter: blur(0.5px);
  box-shadow: 0 0 4px rgba(245,242,235,0.4);
}

@keyframes drift {
  0% { transform: translate(0,0); opacity: 0; }
  20% { opacity: 0.18; }
  80% { opacity: 0.12; }
  100% { transform: translate(40px, -120vh); opacity: 0; }
}


/* Hero (first viewport) */
.portal__hero {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px var(--gutter);
  margin: 0 auto;
}
.portal__hero > * { max-width: 1100px; }


/* Tiles section (after hero) */
.portal__inner {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px var(--gutter) 120px;
  max-width: 1280px;
  margin: 0 auto;
}




.portal__eyebrow {
  margin-bottom: 24px;
  text-align: center;
}

/* Hero scroll cue */
.portal__scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--bone);
}
.portal__scroll-cue .line {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, transparent, var(--ember));
  animation: cueGrow 2.4s ease-in-out infinite;
}
@keyframes cueGrow {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}
.portal__scroll-cue .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.6;
  transition: opacity 0.3s;
}
.portal__scroll-cue:hover .label { opacity: 1; }


.portal__heading {
  text-align: center;
  margin: 0 0 24px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(52px, 9vw, 128px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--bone);
}

.portal__heading em { font-style: italic; color: var(--ember); font-weight: 500; }
.portal__sub {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 1.8vw, 22px);
  color: var(--bone);
  opacity: 0.6;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.45;
}


/* ===== Tile grid (5 live brands + Future Worlds teaser) ===== */
.tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(300px, auto);
  gap: 18px;
  width: 100%;
}

/* Two rows of three (each spans 2 of 6 cols) */
.tiles > .tile { grid-column: span 2; }

@media (max-width: 1000px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tiles > .tile { grid-column: span 1; }
}

@media (max-width: 600px) {
  .tiles { grid-template-columns: 1fr; }
  .tiles > .tile { grid-column: span 1; }
}

.tile {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245,242,235,0.08);
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(241,101,6,0.05), transparent 60%),
    var(--smoke);
  text-decoration: none;
  color: inherit;
  isolation: isolate;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1), border-color 0.4s, background 0.4s;
  min-height: 300px;
}
.tile:hover { border-color: rgba(241,101,6,0.55); transform: translateY(-4px); }
.tile:hover {
  background:
    radial-gradient(ellipse 120% 90% at 50% 0%, rgba(241,101,6,0.09), transparent 62%),
    var(--smoke);
  box-shadow: 0 20px 50px -20px rgba(241,101,6,0.45), 0 0 0 1px rgba(241,101,6,0.25);
}

/* Cursor-following aura — a soft ember spotlight that tracks the mouse */
.tile__glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 50%),
    rgba(241,101,6,0.22),
    rgba(241,101,6,0.08) 35%,
    transparent 60%
  );
  mix-blend-mode: screen;
}
.tile:hover .tile__glow { opacity: 1; }

/* Thin ember edge that lights toward the cursor */
.tile__edge {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  border-radius: inherit;
  transition: opacity 0.4s ease;
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255,138,61,0.55),
    transparent 55%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
}
.tile:hover .tile__edge { opacity: 1; }


/* Uniform brand name (replaces per-brand SVG wordmark) */
.tile__name {
  font-family: 'Anton', 'Oswald', 'Impact', sans-serif;
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bone);
  line-height: 1;
  margin-bottom: 2px;
}


.tile__scene {
  position: absolute;
  inset: 0;
  background-image: var(--scene);
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform 0.9s cubic-bezier(.2,.7,.2,1), filter 0.5s;
  filter: saturate(0.92);
}
.tile:hover .tile__scene { transform: scale(1.02); filter: saturate(1.08) brightness(1.06); }

.tile__scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,14,12,0.05) 0%, rgba(14,14,12,0.35) 50%, rgba(14,14,12,0.92) 100%);
  transition: background 0.5s;
}
.tile:hover .tile__scene::after {
  background: linear-gradient(180deg, rgba(14,14,12,0) 0%, rgba(14,14,12,0.25) 50%, rgba(14,14,12,0.88) 100%);
}

.tile__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
}

.tile__wordmark {
  height: 22px;
  width: auto;
  max-width: 78%;
  margin-bottom: 4px;
  filter: drop-shadow(0 2px 14px rgba(0,0,0,0.5));
}
.tile--core .tile__wordmark { height: 28px; }

.tile__desc {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  color: var(--bone);
  opacity: 0.78;
  margin: 0;
  max-width: 460px;
}

.tile__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ember);
  margin-top: 4px;
  transition: gap 0.3s;
}
.tile:hover .tile__cta { gap: 14px; }
.tile__cta .arrow { transition: transform 0.3s; }
.tile:hover .tile__cta .arrow { transform: translateX(3px); }

/* Sealed tile (Manobank) */
.tile--sealed {
  cursor: not-allowed;
  background: linear-gradient(135deg, #1A1916 0%, #28251F 100%);
}
.tile--sealed:hover { transform: none; border-color: rgba(245,242,235,0.06); }
.tile__scene--sealed {
  background: none;
  background-image:
    repeating-linear-gradient(45deg, rgba(241,101,6,0.04) 0 2px, transparent 2px 12px),
    radial-gradient(ellipse at center, rgba(241,101,6,0.08), transparent 60%);
}
.tile__scene--sealed::after { background: linear-gradient(180deg, rgba(14,14,12,0.55) 0%, rgba(14,14,12,0.85) 100%); }
.tile__wordmark--sealed {
  opacity: 0.32;
  filter: grayscale(0.6) drop-shadow(0 2px 14px rgba(0,0,0,0.5));
}
.tile__cta--sealed {
  color: var(--mist);
  font-style: normal;
}
/* Cage marks on sealed tile */
.tile--sealed::before {
  content: '';
  position: absolute;
  top: 22px;
  right: 22px;
  width: 28px;
  height: 28px;
  background-image:
    linear-gradient(45deg, transparent 45%, rgba(241,101,6,0.45) 45% 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, rgba(241,101,6,0.45) 45% 55%, transparent 55%);
  z-index: 3;
}

@media (max-width: 600px) {
  .tile { min-height: 200px; }
}

/* Portal footnote */

.portal__footnote {
  position: relative;
  margin-top: 64px;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mist);
  z-index: 6;
}

/* ===== Threshold long-form ===== */
.threshold {
  position: relative;
  width: 100%;
  background: var(--ink);
}
.threshold__bg {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(241,101,6,0.07), transparent 70%),
    var(--ink);
  z-index: 1;
}
.threshold__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,14,12,0.4) 0%, rgba(14,14,12,0.2) 40%, rgba(14,14,12,0.85) 100%);
}

.threshold__content {
  position: relative;
  z-index: 3;
  margin-top: -100vh;
  padding: 120px var(--gutter) 120px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.threshold__content .eyebrow { margin-bottom: 24px; }
.threshold__content .headline { margin-bottom: 56px; font-size: clamp(36px, 5vw, 56px); }
.threshold__content p {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--bone);
  opacity: 0.85;
  margin: 0 0 26px;
  max-width: 640px;
}
.threshold__content p.lede {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--bone);
  opacity: 1;
  margin-bottom: 36px;
}

/* ===== Future Worlds tile — pure teaser, non-clickable ===== */
.tile--future {
  position: relative;
  cursor: default;
}
.tile--future:hover { transform: translateY(-2px); }
/* it has an image, so darken the scene a touch more for the cycling text */
.tile--future .tile__scene { filter: saturate(0.85) brightness(0.7); }
.tile--future:hover .tile__scene { transform: none; filter: saturate(0.9) brightness(0.78); }

/* Always-on living aura — a slow breathing ember glow that drifts across the tile */
.tile__future-aura {
  position: absolute;
  inset: -20%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(38% 38% at 30% 35%, rgba(241,101,6,0.40), transparent 70%),
    radial-gradient(46% 46% at 72% 68%, rgba(255,138,61,0.28), transparent 72%);
  mix-blend-mode: screen;
  filter: blur(8px);
  animation: futureAura 9s ease-in-out infinite;
}
@keyframes futureAura {
  0%   { transform: translate(-4%, -2%) scale(1);    opacity: 0.55; }
  33%  { transform: translate(5%, 3%)  scale(1.12);  opacity: 0.9;  }
  66%  { transform: translate(-3%, 4%) scale(1.05);  opacity: 0.7;  }
  100% { transform: translate(-4%, -2%) scale(1);    opacity: 0.55; }
}
/* sweeping conic shimmer ring on the border */
.tile--future::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(241,101,6,0.7) 60deg, transparent 140deg, transparent 360deg);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  animation: futureRing 6s linear infinite;
}
@keyframes futureRing {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .tile__future-aura { animation: none; opacity: 0.7; }
  .tile--future::after { animation: none; }
}


.tile__future-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 16px;
  opacity: 0.85;
}
.tile__future-cycle {
  position: relative;
  height: 38px;
  margin-bottom: 14px;
  overflow: hidden;
}
.tile__future-cycle .cycle-word {
  position: absolute;
  top: 0;
  left: 0;
  font-family: 'Anton', 'Oswald', 'Impact', sans-serif;
  font-size: 32px;
  letter-spacing: 0.04em;
  color: var(--bone);
  text-transform: uppercase;
  line-height: 1;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.tile__future-cycle .cycle-word.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Future Worlds long-form section (v7) ===== */
.future-worlds {
  background: #0a0a0a;
  color: var(--bone);
  padding: 120px var(--gutter) 140px;
  position: relative;
  overflow: hidden;
}
.future-worlds::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
  opacity: 0.5;
}
.future-worlds__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.future-worlds__headline {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 16px 0 24px;
}
.future-worlds__headline em {
  font-style: italic;
  color: var(--ember);
}
.future-worlds__lede {
  font-family: var(--serif);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.55;
  max-width: 720px;
  margin: 0 0 64px;
  opacity: 0.85;
}
.future-worlds__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}
.future-world {
  padding: 28px 24px;
  border: 1px solid rgba(241, 101, 6, 0.25);
  border-radius: 4px;
  background: rgba(241, 101, 6, 0.03);
  transition: border-color 300ms ease, background 300ms ease;
}
.future-world:hover {
  border-color: rgba(241, 101, 6, 0.55);
  background: rgba(241, 101, 6, 0.06);
}
.future-world h3 {
  font-family: 'Anton', 'Oswald', 'Impact', sans-serif;
  font-size: 28px;
  letter-spacing: 0.04em;
  color: var(--ember);
  text-transform: uppercase;
  margin: 0 0 12px;
  line-height: 1;
}
.future-world p {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--bone);
  opacity: 0.78;
  margin: 0;
}
.future-worlds__footnote {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ember);
  opacity: 0.55;
  margin: 32px 0 0;
}
@media (max-width: 768px) {
  .future-worlds { padding: 80px 24px 100px; }
  .future-worlds__grid { gap: 20px; }
  .future-world { padding: 22px 18px; }
}
