/* =========================================================================
   Editorial Brain -- Spotlight
   All sizes in rem, fluid root for adaptive scaling
   ========================================================================= */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; }

html {
  /* Fluid root: scales from 16px (small screens) to 19.5px (large screens) */
  font-size: clamp(1rem, 0.88rem + 0.4vw, 1.22rem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: #08080c;
  color: #d4d0c8;
  font-family: "Iowan Old Style", Georgia, "Palatino Linotype", Palatino, serif;
  cursor: none !important;
}

::selection {
  background: rgba(74, 124, 111, 0.35);
  color: #e8e4dc;
}

/* --- Editorial stage ----------------------------------------------------- */

.editorial-stage {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Brain canvas -- above text so outline renders on top */
.brain-overlay {
  position: absolute;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 2;
}

/* Ghost text lines -- mask-based spotlight reveal */
.ed-line {
  position: absolute;
  white-space: pre;
  color: rgba(200, 196, 188, 0.65);
  opacity: 0.012;
  pointer-events: none;
  user-select: none;
  will-change: opacity, mask, font-weight;
  -webkit-mask: none;
  mask: none;
  font-weight: 300;
}

/* --- Center identity block ----------------------------------------------- */

.identity-block {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

/* Dark ellipse behind identity -- simple, no per-element text-shadow cost */
.identity-block::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130%;
  height: 160%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(8, 8, 12, 0.92) 0%, rgba(8, 8, 12, 0.7) 40%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.id-tagline {
  font: italic 300 0.8rem "Iowan Old Style", Georgia, "Palatino Linotype", Palatino, serif;
  color: rgba(200, 196, 188, 0);
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
  transition: color 0.8s ease, text-shadow 0.8s ease;
  pointer-events: none;
}

.id-tagline.visible {
  color: rgba(210, 195, 150, 0.30);
  text-shadow: 0 0 1.25rem rgba(210, 195, 150, 0.08);
}

.id-name {
  font: 400 2.8rem "Iowan Old Style", Georgia, "Palatino Linotype", Palatino, serif;
  letter-spacing: -0.02em;
  color: #e8e4dc;
  line-height: 1.1;
  margin-bottom: 0.65rem;
  transition: text-shadow 0.4s ease;
  white-space: nowrap;
}

.identity-block:hover .id-name {
  text-shadow: 0 0 1.25rem rgba(210, 195, 150, 0.15), 0 0 3rem rgba(210, 195, 150, 0.06);
}

.identity-block:hover .id-fields {
  text-shadow: 0 0 0.75rem rgba(210, 195, 150, 0.2);
}

.id-fields {
  font: 500 0.7rem -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4a7c6f;
  margin-bottom: 0.55rem;
}

.id-affiliation {
  font: 400 0.65rem -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
  color: rgba(212, 208, 200, 0.30);
  margin-bottom: 1.1rem;
  transition: color 0.4s ease, text-shadow 0.4s ease;
  cursor: none;
}

.id-affiliation:hover {
  color: #990000;
  text-shadow: 0 0 0.9rem rgba(153, 0, 0, 0.4), 0 0 2.2rem rgba(153, 0, 0, 0.15);
}

.id-links {
  display: flex;
  gap: 1.4rem;
}

.id-links a {
  font: 500 0.65rem -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(212, 208, 200, 0.30);
  text-decoration: none;
  cursor: none !important;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.id-links a:hover {
  color: rgb(210, 195, 150);
  text-shadow: 0 0 0.75rem rgba(210, 195, 150, 0.4), 0 0 1.9rem rgba(210, 195, 150, 0.15);
}

/* Ensure cursor hidden everywhere (desktop only) */
@media (pointer: fine) {
  *, *::before, *::after {
    cursor: none !important;
  }
}

/* --- Mobile -------------------------------------------------------------- */

@media (max-width: 768px) {
  html {
    font-size: clamp(0.9rem, 0.8rem + 0.5vw, 1.1rem);
  }

  body {
    cursor: auto !important;
  }

  .id-name {
    font-size: 2rem;
  }

  .id-fields {
    font-size: 0.6rem;
    letter-spacing: 0.10em;
  }

  .id-affiliation {
    font-size: 0.55rem;
  }

  .id-links {
    gap: 1.1rem;
  }

  .id-links a {
    font-size: 0.55rem;
    cursor: auto !important;
  }

  .id-tagline {
    font-size: 0.65rem;
  }
}
