/* ==========================================
   OEDER PORTAL v2 — Premium Maximum
   ========================================== */

/* === CSS-Variablen (Design System) === */
:root {
  --ink-deep: #0A0A0B;
  --ink-soft: #161618;
  --ink-line: #2A2A2D;
  --paper: #F5F2EC;
  --paper-muted: #B8B5AE;
  --text-mute: #6E6E72;
  --text-dim: #4A4A4E;

  --accent-portal: #9D7E3B;       /* Champagner-Gold Heritage (Portal-DNA) */
  --accent-group: #9D7E3B;        /* Group = Heritage Gold */
  --accent-studios: #7B1818;      /* Bordeaux (Rolex-Heritage) */
  --accent-invest: #006039;       /* Rolex Crown-Green */
  --accent-intelligence: #6E6657; /* Gedämpftes Anthrazit-Bronze für KI-Mystery (war Lila) */

  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-dramatic: cubic-bezier(0.87, 0, 0.13, 1);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter Tight', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* === Reset & Base === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--ink-deep);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;
}

/* Subtle grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  mix-blend-mode: overlay;
}

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

/* ==========================================
   LOADING SCREEN v2 — Premium Maximum
   ========================================== */

.loader {
  position: fixed;
  inset: 0;
  background: var(--ink-deep);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s var(--ease-premium), visibility 1s var(--ease-premium);
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

/* Subtle grid background on loader */
.loader-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(157, 126, 59, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 126, 59, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0;
  animation: gridFade 1.5s var(--ease-premium) forwards;
  animation-delay: 0.2s;
}

@keyframes gridFade {
  to { opacity: 1; }
}

/* Loader corner marks */
.loader-corner {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  opacity: 0;
  animation: cornerFade 0.6s var(--ease-premium) forwards;
}

.loader-corner-tl {
  top: 32px;
  left: 32px;
  animation-delay: 0.4s;
}

.loader-corner-tr {
  top: 32px;
  right: 32px;
  text-align: right;
  animation-delay: 0.5s;
}

@keyframes cornerFade {
  to { opacity: 1; }
}

.loader-corner-label {
  color: var(--text-dim);
}

.loader-corner-value {
  color: var(--accent-portal);
}

/* Center logo block */
.loader-center {
  text-align: center;
  position: relative;
  z-index: 2;
}

.loader-logo {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(60px, 9vw, 120px);
  letter-spacing: 0.04em;
  color: var(--paper);
  margin-bottom: 28px;
  display: flex;
  justify-content: center;
  gap: 0;
}

.loader-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  animation: letterReveal 1s var(--ease-premium) forwards;
}

.loader-letter:nth-child(1) { animation-delay: 0.4s; }
.loader-letter:nth-child(2) { animation-delay: 0.52s; }
.loader-letter:nth-child(3) { animation-delay: 0.64s; }
.loader-letter:nth-child(4) { animation-delay: 0.76s; }
.loader-letter:nth-child(5) { animation-delay: 0.88s; }

@keyframes letterReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loader-tagline {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--paper-muted);
  opacity: 0;
  animation: fadeIn 0.8s var(--ease-premium) forwards;
  animation-delay: 1.6s;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Bottom progress section */
.loader-bottom {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: min(440px, 80vw);
  text-align: center;
  opacity: 0;
  animation: fadeIn 0.6s var(--ease-premium) forwards;
  animation-delay: 1.8s;
}

.loader-phases {
  position: relative;
  height: 14px;
  margin-bottom: 20px;
}

.loader-phase {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--text-mute);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-premium);
}

.loader-phase.is-active {
  opacity: 1;
  transform: translateY(0);
}

.loader-bar {
  position: relative;
  height: 1px;
  width: 100%;
  margin-bottom: 16px;
}

.loader-bar-track {
  position: absolute;
  inset: 0;
  background: rgba(245, 242, 236, 0.08);
}

.loader-bar-fill {
  position: absolute;
  top: -0.5px;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-portal) 0%, #E5C880 100%);
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(157, 126, 59, 0.6);
}

.loader-progress {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--paper);
}

.loader-percent {
  font-size: 14px;
  letter-spacing: 0.1em;
}

.loader-percent-sym {
  font-size: 10px;
  color: var(--text-mute);
  margin-left: 2px;
}

/* ==========================================
   CUSTOM CURSOR
   ========================================== */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: difference;
  will-change: transform;
}

.cursor-dot {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 4px;
  height: 4px;
  background: var(--paper);
  border-radius: 50%;
  transition: transform 0.15s var(--ease-smooth), opacity 0.2s ease;
}

.cursor-ring {
  position: absolute;
  top: -16px;
  left: -16px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--paper);
  border-radius: 50%;
  transition: transform 0.4s var(--ease-premium), opacity 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  opacity: 0.4;
}

.cursor-lock {
  position: absolute;
  top: -7px;
  left: -7px;
  width: 14px;
  height: 14px;
  color: var(--paper);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cursor.is-hover .cursor-ring {
  transform: scale(2.6);
  opacity: 0.8;
}

.cursor.is-hover .cursor-dot {
  transform: scale(0);
}

.cursor.is-locked .cursor-ring {
  transform: scale(2.4);
  opacity: 0.5;
  border-style: dashed;
}

.cursor.is-locked .cursor-dot {
  transform: scale(0);
}

.cursor.is-locked .cursor-lock {
  opacity: 1;
}

/* ==========================================
   BRAND MARK (top left)
   ========================================== */

.brand-mark {
  position: fixed;
  top: 32px;
  left: 32px;
  z-index: 100;
  color: var(--paper);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.8s var(--ease-premium), transform 0.8s var(--ease-premium);
}

.brand-mark.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.brand-mark svg {
  width: 80px;
  height: auto;
  display: block;
}

/* ==========================================
   AMBIENT INFO (top right)
   ========================================== */

.ambient {
  position: fixed;
  top: 32px;
  right: 32px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.8s var(--ease-premium), transform 0.8s var(--ease-premium);
}

.ambient.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ambient-line {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.ambient-label {
  color: var(--text-dim);
}

.ambient-value {
  color: var(--paper);
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-portal);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(157, 126, 59, 0.7);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 0 8px rgba(157, 126, 59, 0);
  }
}

/* ==========================================
   SWIPE INDICATOR (Mobile only)
   ========================================== */

.swipe-indicator {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--paper);
  opacity: 0.8;
  pointer-events: none;
  animation: bounceArrow 2.2s ease-in-out infinite;
}

.swipe-text {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.32em;
  color: var(--text-mute);
}

@keyframes bounceArrow {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50% { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* ==========================================
   PORTAL: 4-SPLITSCREEN
   ========================================== */

.portal {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  background: var(--ink-deep);
}

/* Gold dividing lines */
.divider {
  position: absolute;
  background: var(--accent-portal);
  opacity: 0;
  z-index: 5;
  pointer-events: none;
  transition: opacity 1.2s var(--ease-premium);
}

.divider.is-visible {
  opacity: 0.4;
}

.divider-h {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: center;
  transition: opacity 1.2s var(--ease-premium), transform 1.4s var(--ease-premium);
}

/* Desktop: only middle divider (divider-h-2) shown; hide divider-h-1 and divider-h-3 */
.divider-h-1,
.divider-h-3 {
  display: none;
}

.divider-v {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: scaleY(0);
  transform-origin: center;
  transition: opacity 1.2s var(--ease-premium), transform 1.4s var(--ease-premium);
}

.divider.is-visible.divider-h { transform: scaleX(1); }
.divider.is-visible.divider-v { transform: scaleY(1); }

/* ==========================================
   TILES
   ========================================== */

.tile {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--ink-deep);
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 1.2s var(--ease-premium), transform 1.2s var(--ease-premium);
  cursor: none;
}

.tile.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Tile Background — Cinematic Layers */
.tile-bg {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  transition: opacity 0.8s var(--ease-premium);
  background-size: cover;
  background-position: center;
}

.tile-group .tile-bg {
  background:
    radial-gradient(circle at 30% 40%, rgba(157, 126, 59, 0.15) 0%, transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(157, 126, 59, 0.06) 0%, transparent 50%),
    linear-gradient(135deg, #1a1410 0%, #0A0A0B 60%);
}

.tile-studios .tile-bg {
  background:
    radial-gradient(circle at 70% 30%, rgba(123, 24, 24, 0.16) 0%, transparent 55%),
    radial-gradient(circle at 30% 80%, rgba(123, 24, 24, 0.08) 0%, transparent 50%),
    linear-gradient(225deg, #1a0e0d 0%, #0A0A0B 60%);
}

.tile-invest .tile-bg {
  background:
    radial-gradient(circle at 30% 30%, rgba(0, 96, 57, 0.14) 0%, transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(0, 96, 57, 0.06) 0%, transparent 50%),
    linear-gradient(135deg, #0a1610 0%, #0A0A0B 60%);
}

.tile-intelligence .tile-bg {
  background:
    radial-gradient(circle at 50% 50%, rgba(110, 102, 87, 0.1) 0%, transparent 60%),
    linear-gradient(135deg, #14111a 0%, #0A0A0B 60%);
}

/* Shimmer animation (subtle moonlight effect) */
.tile-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(245, 242, 236, 0.025) 50%,
    transparent 70%
  );
  background-size: 400% 400%;
  background-position: 100% 100%;
  animation: shimmer 12s ease-in-out infinite;
  pointer-events: none;
}

.tile-group .tile-shimmer { animation-delay: 0s; }
.tile-studios .tile-shimmer { animation-delay: 3s; }
.tile-invest .tile-shimmer { animation-delay: 6s; }
.tile-intelligence .tile-shimmer { animation-delay: 9s; }

@keyframes shimmer {
  0%, 100% { background-position: 100% 100%; }
  50% { background-position: 0% 0%; }
}

/* Subtle grid pattern */
.tile-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 242, 236, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 242, 236, 0.018) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0;
  transition: opacity 0.8s var(--ease-premium);
}

/* HOVER */
.tile:not(.is-locked):hover .tile-bg {
  opacity: 1;
}

.tile:not(.is-locked):hover .tile-grid {
  opacity: 0.6;
}

.tile.is-locked:hover .tile-bg {
  opacity: 0.6;
}

/* Other tiles dimming on hover */
.portal:has(.tile:hover) .tile:not(:hover) {
  opacity: 0.45;
  transition: opacity 0.6s var(--ease-premium);
}

/* ==========================================
   TILE CONTENT
   ========================================== */

.tile-content {
  position: relative;
  z-index: 2;
  padding: clamp(32px, 4.5vw, 72px);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--paper);
  transition: transform 0.6s var(--ease-premium);
}

.tile:not(.is-locked):hover .tile-content {
  transform: translateY(-6px);
}

.tile-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tile-number {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  transition: color 0.4s var(--ease-premium);
}

.tile:hover .tile-number {
  color: var(--text-mute);
}

.tile-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-mute);
  transition: color 0.4s var(--ease-premium);
}

.tile:hover .tile-label {
  color: var(--paper);
}

.tile-label-soon {
  color: var(--accent-intelligence) !important;
  opacity: 0.7;
}

.tile-intelligence:hover .tile-label-soon {
  opacity: 1;
}

.tile-main {
  display: flex;
  flex-direction: column;
}

.tile-lock-icon {
  margin-bottom: 24px;
  color: var(--accent-intelligence);
  opacity: 0.55;
  transition: opacity 0.4s var(--ease-premium), transform 0.4s var(--ease-premium);
}

.tile-intelligence:hover .tile-lock-icon {
  opacity: 0.9;
  transform: scale(1.05);
}

.tile-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 110px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
  color: var(--paper);
  transition: color 0.5s var(--ease-premium);
}

.tile-group:hover .tile-title { color: var(--accent-group); }
.tile-studios:hover .tile-title { color: var(--accent-studios); }
.tile-invest:hover .tile-title { color: var(--accent-invest); }
.tile-intelligence:hover .tile-title { color: var(--accent-intelligence); }

.tile-subtitle {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-mute);
  max-width: 380px;
  margin-bottom: 40px;
  transition: color 0.4s var(--ease-premium);
}

.tile:hover .tile-subtitle {
  color: var(--paper-muted);
}

.tile-arrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-mute);
  transition: color 0.4s var(--ease-premium), gap 0.4s var(--ease-premium);
}

.tile:not(.is-locked):hover .tile-arrow {
  gap: 28px;
}

.tile-group:hover .tile-arrow { color: var(--accent-group); }
.tile-studios:hover .tile-arrow { color: var(--accent-studios); }
.tile-invest:hover .tile-arrow { color: var(--accent-invest); }

.tile-arrow-locked {
  color: var(--text-dim) !important;
  cursor: not-allowed;
}

.tile-intelligence:hover .tile-arrow-locked {
  color: var(--accent-intelligence) !important;
}

.tile-arrow svg {
  transition: transform 0.4s var(--ease-premium);
}

.tile:not(.is-locked):hover .tile-arrow svg {
  transform: translateX(8px);
}

/* ==========================================
   FOOTER STRIP
   ========================================== */

.portal-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s var(--ease-premium), transform 0.8s var(--ease-premium);
  pointer-events: none;
}

.portal-footer.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.footer-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
}

/* ==========================================
   TRANSITION OVERLAY (Cinematic Click)
   ========================================== */

.transition-overlay {
  position: fixed;
  inset: 0;
  background: var(--ink-deep);
  z-index: 9997;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-premium);
  display: flex;
  align-items: center;
  justify-content: center;
}

.transition-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.transition-label {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 80px);
  color: var(--paper);
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-premium) 0.3s, transform 0.6s var(--ease-premium) 0.3s;
}

.transition-overlay.is-active .transition-label {
  opacity: 1;
  transform: translateY(0);
}

/* Zooming tile during click */
.tile.is-zooming {
  z-index: 9000;
  transition: transform 1.4s var(--ease-dramatic), opacity 0.5s ease 1.0s;
}

.tile.is-fading {
  transition: opacity 0.5s ease, transform 0.6s var(--ease-premium);
  opacity: 0 !important;
}

.tile-group.is-fading { transform: translateX(-30px) !important; }
.tile-studios.is-fading { transform: translateX(30px) !important; }
.tile-invest.is-fading { transform: translateX(-30px) !important; }
.tile-intelligence.is-fading { transform: translateX(30px) !important; }

/* ==========================================
   MOBILE — Eigene Liebe
   ========================================== */

@media (max-width: 768px) {
  body {
    cursor: auto;
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
  }

  html {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  .cursor {
    display: none;
  }

  /* Hide swipe indicator on mobile — no scrolling needed */
  .swipe-indicator {
    display: none !important;
  }

  /* Portal: All 4 tiles in a vertical stack, all visible on one screen */
  .portal {
    position: fixed;
    inset: 0;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
    grid-auto-rows: auto;
    height: 100vh;
    height: 100dvh;
  }

  /* Each tile: 1/4 of screen height */
  .tile {
    height: auto;
    min-height: 0;
    cursor: pointer;
    border-top: 1px solid rgba(157, 126, 59, 0.18);
  }

  .tile:first-child {
    border-top: none;
  }

  /* Show all 3 horizontal dividers between mobile tiles at 25%/50%/75% */
  .divider-h-1,
  .divider-h-2,
  .divider-h-3 {
    display: block;
    transform: scaleX(1);
    opacity: 0.4;
  }
  .divider-h-1 {
    top: 25%;
  }
  .divider-h-2 {
    top: 50%;
  }
  .divider-h-3 {
    top: 75%;
  }
  .divider-v {
    display: none;
  }

  /* Default: backgrounds more visible on mobile (no hover) */
  .tile .tile-bg {
    opacity: 0.85;
  }

  .tile .tile-grid {
    opacity: 0.4;
  }

  .tile .tile-label {
    color: var(--paper);
  }

  /* Compact layout: each tile shows essentials only */
  .tile-content {
    padding: 16px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .tile-top {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
    min-width: 0;
  }

  .tile-number {
    font-size: 10px;
    opacity: 0.5;
  }

  .tile-meta {
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;
  }

  .tile-label {
    font-size: 8px;
    letter-spacing: 0.18em;
  }

  .tile-status,
  .tile-coming {
    font-size: 8px;
    letter-spacing: 0.15em;
  }

  .tile-lock-icon {
    width: 12px;
    height: 12px;
  }

  .tile-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .tile-title {
    font-size: clamp(28px, 7vw, 40px);
    line-height: 0.95;
    margin: 0;
  }

  .tile-subtitle {
    font-size: 11px;
    max-width: 100%;
    line-height: 1.3;
    margin: 0;
    opacity: 0.75;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .tile-bottom {
    position: static;
    flex-shrink: 0;
  }

  .tile-cta {
    font-size: 9px;
    letter-spacing: 0.18em;
    gap: 6px;
  }

  .tile-cta svg {
    width: 16px;
    height: auto;
  }

  /* Brand mark mobile */
  .brand-mark {
    top: 16px;
    left: 16px;
    z-index: 100;
  }

  .brand-mark svg {
    height: 18px;
  }

  /* Ambient mobile */
  .ambient {
    top: 16px;
    right: 16px;
    z-index: 100;
    font-size: 8px;
    text-align: right;
  }

  .ambient-status,
  .ambient-year {
    font-size: 8px;
  }

  /* Portal footer mobile */
  .portal-footer {
    display: none;
  }

  /* Center divider intersection */
  .center-dot {
    display: none;
  }

  /* Tap state: simulate hover briefly */
  .tile.is-tapped .tile-title {
    transition: color 0.3s ease;
  }

  .tile-group.is-tapped .tile-title { color: var(--accent-group); }
  .tile-studios.is-tapped .tile-title { color: var(--accent-studios); }
  .tile-invest.is-tapped .tile-title { color: var(--accent-invest); }
  .tile-intelligence.is-tapped .tile-title { color: var(--accent-intelligence); }

  .tile.is-tapped .tile-arrow {
    gap: 24px;
    transition: gap 0.3s ease, color 0.3s ease;
  }

  .tile-group.is-tapped .tile-arrow { color: var(--accent-group); }
  .tile-studios.is-tapped .tile-arrow { color: var(--accent-studios); }
  .tile-invest.is-tapped .tile-arrow { color: var(--accent-invest); }

  /* Loader on mobile — slimmer */
  .loader-bottom {
    bottom: 60px;
    width: 80vw;
  }

  .loader-corner {
    font-size: 9px;
  }

  .loader-corner-tl {
    top: 24px;
    left: 24px;
  }

  .loader-corner-tr {
    top: 24px;
    right: 24px;
  }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .tile-title {
    font-size: clamp(48px, 7vw, 80px);
  }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.tile:focus-visible {
  outline: 2px solid var(--accent-portal);
  outline-offset: -4px;
}
