/* =========================
   EMRE SHRINE — HOLOGRAPHIC ARCHIVE
   ========================= */

#shelves {
  scroll-margin-top: 1rem;
}

.emre-hero-quip {
  margin: 1rem 0 0;
  color: #496a78;
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  font-style: italic;
}

.emre-letter-closing {
  color: #496a78;
  font-family: "Fraunces", serif;
  font-size: 1.12rem;
  font-weight: 700;
}

.emre-facts-card .status-label {
  max-width: 15rem;
  color: #344d59;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.15;
}

.emre-holo-archive {
  position: relative;
  overflow: hidden;
  color: #eefcff;
  background:
    linear-gradient(145deg, rgba(19, 38, 48, 0.98), rgba(40, 70, 82, 0.96)),
    radial-gradient(circle at 86% 16%, rgba(117, 224, 239, 0.25), transparent 19rem);
  border-color: rgba(128, 224, 236, 0.46);
  box-shadow:
    0 20px 55px rgba(27, 57, 69, 0.32),
    inset 0 0 0 1px rgba(194, 245, 251, 0.08);
  isolation: isolate;
}

.emre-holo-archive::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 5px,
      rgba(186, 244, 250, 0.025) 5px 6px
    ),
    linear-gradient(90deg, transparent, rgba(142, 229, 239, 0.04), transparent);
}

.emre-holo-archive::after {
  content: "";
  position: absolute;
  top: -7rem;
  right: -5rem;
  z-index: -1;
  width: 20rem;
  height: 20rem;
  border: 1px solid rgba(161, 235, 243, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 2.2rem rgba(161, 235, 243, 0.025),
    0 0 0 5.2rem rgba(161, 235, 243, 0.018);
}

.emre-holo-title .eyebrow {
  color: #91e4ef;
}

.emre-holo-title h2 {
  color: #f2fdff;
}

.emre-holo-title .reliquary-intro {
  color: rgba(226, 248, 251, 0.72);
}

.emre-holo-grid {
  position: relative;
  z-index: 1;
}

.emre-holo-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 1.05rem;
  color: #eafcff;
  background:
    linear-gradient(150deg, rgba(100, 177, 190, 0.12), rgba(10, 26, 34, 0.58));
  border: 1px solid rgba(140, 226, 237, 0.38);
  border-radius: 0.45rem 1.1rem 0.45rem 1.1rem;
  box-shadow:
    0 0 24px rgba(102, 203, 218, 0.08),
    inset 0 0 24px rgba(151, 229, 239, 0.035);
  backdrop-filter: blur(8px);
}

.emre-holo-card::before,
.emre-holo-card::after {
  content: "";
  position: absolute;
  width: 2.2rem;
  height: 2.2rem;
  pointer-events: none;
}

.emre-holo-card::before {
  top: 0.45rem;
  left: 0.45rem;
  border-top: 1px solid #95e3ed;
  border-left: 1px solid #95e3ed;
}

.emre-holo-card::after {
  right: 0.45rem;
  bottom: 0.45rem;
  border-right: 1px solid #95e3ed;
  border-bottom: 1px solid #95e3ed;
}

.holo-card-topline {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
  color: rgba(183, 239, 246, 0.68);
  font-size: 0.54rem;
  letter-spacing: 0.13em;
}

.emre-holo-card .eyebrow {
  color: #88dce7;
}

.emre-holo-card h3 {
  margin: 0 0 0.7rem;
  color: #f2fdff;
  font-family: "Fraunces", serif;
  font-size: 1.45rem;
  line-height: 1.08;
}

.emre-holo-card p:not(.eyebrow) {
  color: rgba(225, 247, 250, 0.72);
  font-size: 0.7rem;
  line-height: 1.75;
}

.holo-card-icon {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 1.1rem;
  color: #b5f3fa;
  background: rgba(92, 180, 195, 0.11);
  border: 1px solid rgba(142, 229, 239, 0.42);
  border-radius: 0.45rem;
  box-shadow:
    0 0 16px rgba(115, 222, 235, 0.12),
    inset 0 0 14px rgba(144, 230, 239, 0.06);
  font-size: 1.25rem;
}

.holo-note-copy {
  min-height: 7.8rem;
}

.holo-card-status {
  position: absolute;
  right: 1rem;
  bottom: 0.9rem;
  color: rgba(158, 230, 239, 0.52);
  font-size: 0.48rem;
  letter-spacing: 0.11em;
}

.holo-media-slot {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.35rem;
  aspect-ratio: 16 / 10;
  margin-bottom: 1rem;
  color: rgba(197, 245, 250, 0.72);
  background:
    radial-gradient(circle at 50% 40%, rgba(133, 222, 233, 0.14), transparent 38%),
    repeating-linear-gradient(
      0deg,
      rgba(177, 238, 245, 0.025) 0 4px,
      transparent 4px 8px
    ),
    rgba(9, 28, 36, 0.48);
  border: 1px solid rgba(142, 229, 239, 0.34);
  clip-path: polygon(0 0, calc(100% - 1rem) 0, 100% 1rem, 100% 100%, 1rem 100%, 0 calc(100% - 1rem));
  font-size: 0.5rem;
  letter-spacing: 0.15em;
}

.holo-media-slot::after {
  content: "";
  position: absolute;
  inset: -35% 60% -35% -20%;
  background: linear-gradient(110deg, transparent, rgba(205, 249, 253, 0.08), transparent);
  transform: rotate(8deg);
}

.holo-media-symbol {
  color: #a6edf5;
  font-size: 2rem;
  line-height: 1;
}

.emre-keepsake-card {
  background:
    linear-gradient(rgba(255, 246, 237, 0.84), rgba(255, 246, 237, 0.84)),
    radial-gradient(circle at 86% 14%, rgba(123, 190, 200, 0.28), transparent 11rem);
}

.emre-case-card {
  background:
    linear-gradient(138deg, #263e49, #496a78);
}

.emre-case-card .warning-symbol {
  color: #b8eef4;
  border-color: rgba(190, 241, 247, 0.3);
}

.emre-case-card .eyebrow {
  color: #9de7f0;
}

@media (max-width: 1020px) {
  .emre-holo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .emre-holo-grid {
    grid-template-columns: 1fr;
  }

  .emre-holo-card {
    min-height: 0;
  }

  .holo-note-copy {
    min-height: 0;
    padding-bottom: 1.5rem;
  }
}


/* =========================
   EMRE SHRINE — STRONGER HOLO SCREEN PASS
   ========================= */

.emre-holo-archive {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #ecffff;
  background:
    linear-gradient(165deg, rgba(7, 20, 28, 0.98), rgba(18, 41, 53, 0.97) 48%, rgba(10, 24, 34, 0.985)),
    radial-gradient(circle at 82% 18%, rgba(88, 238, 255, 0.22), transparent 17rem),
    radial-gradient(circle at 14% 80%, rgba(64, 154, 199, 0.16), transparent 15rem);
  border: 1px solid rgba(130, 234, 247, 0.52);
  box-shadow:
    0 26px 65px rgba(3, 18, 27, 0.42),
    0 0 0 1px rgba(168, 244, 250, 0.06) inset,
    0 0 38px rgba(65, 218, 235, 0.08) inset;
  animation: emreBoardFlicker 7.5s linear infinite;
}

.emre-holo-archive::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(220, 255, 255, 0.028) 0 1px,
      rgba(220, 255, 255, 0) 1px 4px
    ),
    linear-gradient(
      180deg,
      rgba(255,255,255,0.015),
      rgba(255,255,255,0.002) 24%,
      rgba(126, 235, 247, 0.03) 55%,
      rgba(255,255,255,0.006)
    );
  mix-blend-mode: screen;
  opacity: 0.9;
}

.emre-holo-archive::after {
  content: "";
  position: absolute;
  inset: -18% -30%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(150, 249, 255, 0.09), transparent 22%),
    linear-gradient(100deg, transparent 20%, rgba(189, 252, 255, 0.04) 42%, transparent 58%),
    linear-gradient(280deg, transparent 30%, rgba(98, 226, 240, 0.045) 48%, transparent 65%);
  animation: emreScreenSweep 10s linear infinite;
}

.emre-holo-title {
  position: relative;
  margin-bottom: 1.35rem;
  padding: 1rem 1.15rem 1.1rem;
  background: linear-gradient(180deg, rgba(15, 39, 49, 0.72), rgba(8, 20, 30, 0.35));
  border: 1px solid rgba(142, 234, 245, 0.16);
  clip-path: polygon(0 0, calc(100% - 1.25rem) 0, 100% 1.25rem, 100% 100%, 0 100%);
  box-shadow: inset 0 0 18px rgba(91, 226, 242, 0.05);
}

.emre-holo-title .eyebrow {
  color: #9deef6;
  text-shadow: 0 0 8px rgba(122, 233, 245, 0.12);
}

.emre-holo-title h2 {
  color: #f2feff;
  text-shadow:
    0 0 12px rgba(152, 245, 252, 0.08),
    0 0 1px rgba(255,255,255,0.1);
}

.emre-holo-title .reliquary-intro {
  color: rgba(229, 250, 252, 0.78);
}

.emre-holo-statusbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.emre-holo-statusbar span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  color: #b7f9ff;
  background: rgba(89, 196, 214, 0.08);
  border: 1px solid rgba(143, 233, 244, 0.22);
  border-radius: 999px;
  box-shadow: inset 0 0 10px rgba(128, 233, 245, 0.045);
  font-size: 0.53rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.emre-holo-grid {
  position: relative;
  z-index: 1;
  gap: 1rem;
}

.emre-holo-card {
  position: relative;
  overflow: hidden;
  min-height: 305px;
  padding: 1rem 1rem 1.2rem;
  color: #efffff;
  background:
    linear-gradient(180deg, rgba(12, 34, 44, 0.84), rgba(9, 24, 35, 0.9)),
    radial-gradient(circle at 50% 0%, rgba(119, 242, 255, 0.08), transparent 40%);
  border: 1px solid rgba(138, 234, 246, 0.4);
  border-radius: 0.2rem;
  clip-path: polygon(0 0, calc(100% - 1rem) 0, 100% 1rem, 100% 100%, 1rem 100%, 0 calc(100% - 1rem));
  box-shadow:
    0 0 0 1px rgba(128, 234, 245, 0.06) inset,
    0 0 22px rgba(84, 217, 234, 0.08),
    inset 0 0 26px rgba(102, 222, 238, 0.035);
}

.emre-holo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.018), transparent 18%, transparent 78%, rgba(119, 228, 239, 0.02)),
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.016) 0 1px,
      transparent 1px 5px
    );
  mix-blend-mode: screen;
  opacity: 0.8;
}

.emre-holo-card::after {
  content: "";
  position: absolute;
  inset: auto 0.7rem 0.7rem auto;
  width: 1.9rem;
  height: 1.9rem;
  border-right: 1px solid rgba(153, 240, 249, 0.44);
  border-bottom: 1px solid rgba(153, 240, 249, 0.44);
  opacity: 0.7;
}

.holo-card-glowline {
  position: absolute;
  inset: 0.55rem auto auto 0.8rem;
  width: calc(100% - 1.6rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 246, 251, 0.85), transparent);
  box-shadow: 0 0 12px rgba(149, 242, 249, 0.3);
  opacity: 0.88;
}

.holo-card-topline {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
  padding-top: 0.2rem;
  color: rgba(179, 244, 250, 0.72);
  font-size: 0.54rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.emre-holo-card .eyebrow {
  color: #8de3ee;
  text-shadow: 0 0 9px rgba(118, 237, 247, 0.08);
}

.emre-holo-card h3 {
  color: #f4feff;
  text-shadow: 0 0 10px rgba(110, 229, 241, 0.08);
}

.emre-holo-card p:not(.eyebrow) {
  color: rgba(226, 248, 251, 0.82);
}

.holo-card-icon {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 1rem;
  color: #c5fbff;
  background:
    radial-gradient(circle at 50% 40%, rgba(137, 243, 253, 0.12), rgba(78, 189, 204, 0.04));
  border: 1px solid rgba(155, 240, 248, 0.36);
  border-radius: 0.2rem;
  box-shadow:
    0 0 18px rgba(106, 230, 243, 0.08),
    inset 0 0 14px rgba(134, 236, 246, 0.05);
  font-size: 1.3rem;
}

.holo-media-slot {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.35rem;
  aspect-ratio: 16 / 10;
  margin-bottom: 1rem;
  color: rgba(210, 252, 255, 0.76);
  background:
    radial-gradient(circle at 50% 45%, rgba(117, 239, 252, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(14, 35, 47, 0.9), rgba(7, 19, 28, 0.9)),
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.015) 0 1px,
      transparent 1px 5px
    );
  border: 1px solid rgba(142, 233, 244, 0.34);
  clip-path: polygon(0 0, calc(100% - 0.85rem) 0, 100% 0.85rem, 100% 100%, 0.85rem 100%, 0 calc(100% - 0.85rem));
  box-shadow:
    inset 0 0 20px rgba(123, 235, 244, 0.05),
    0 0 18px rgba(81, 216, 233, 0.05);
  font-size: 0.5rem;
  letter-spacing: 0.15em;
}

.holo-media-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(100deg, transparent 12%, rgba(207, 252, 255, 0.08) 35%, transparent 58%),
    linear-gradient(0deg, transparent 0 72%, rgba(169, 244, 250, 0.03) 100%);
  animation: emreMediaFlicker 6s linear infinite;
}

.holo-media-slot::after {
  content: "";
  position: absolute;
  inset: 0.55rem;
  border: 1px solid rgba(156, 240, 248, 0.2);
  opacity: 0.9;
}

.holo-media-symbol {
  color: #b5f7fd;
  text-shadow: 0 0 16px rgba(130, 241, 250, 0.2);
}

.holo-card-status {
  color: rgba(166, 239, 247, 0.58);
  text-shadow: 0 0 8px rgba(111, 229, 240, 0.08);
}

@keyframes emreBoardFlicker {
  0%, 9%, 11%, 35%, 37%, 62%, 64%, 100% { opacity: 1; }
  10% { opacity: 0.985; }
  36% { opacity: 0.992; }
  63% { opacity: 0.987; }
}

@keyframes emreScreenSweep {
  0% { transform: translateX(-3%) translateY(0%); opacity: 0.45; }
  50% { transform: translateX(2%) translateY(1.5%); opacity: 0.62; }
  100% { transform: translateX(-3%) translateY(0%); opacity: 0.45; }
}

@keyframes emreMediaFlicker {
  0%, 44%, 46%, 90%, 92%, 100% { opacity: 0.95; }
  45% { opacity: 0.82; }
  91% { opacity: 0.88; }
}

@media (prefers-reduced-motion: reduce) {
  .emre-holo-archive,
  .emre-holo-archive::after,
  .holo-media-slot::before {
    animation: none !important;
  }
}


/* =========================
   EMRE SHRINE — INTERACTIVE ARCHIVE
   ========================= */

.visually-hidden {
  position: absolute !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  white-space: nowrap !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
}

.emre-holo-archive {
  min-height: 520px;
}

.emre-holo-boot {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  color: #d9fdff;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(229, 255, 255, 0.04) 0 1px,
      transparent 1px 5px
    ),
    rgba(3, 17, 24, 0.97);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.emre-holo-archive.is-booting .emre-holo-boot {
  opacity: 1;
  visibility: visible;
  animation: emreBootFlash 1.65s steps(1, end) both;
}

.emre-holo-boot-frame {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  width: min(82%, 30rem);
  padding: 2rem;
  border: 1px solid rgba(151, 240, 249, 0.48);
  clip-path: polygon(0 0, calc(100% - 1.25rem) 0, 100% 1.25rem, 100% 100%, 1.25rem 100%, 0 calc(100% - 1.25rem));
  box-shadow:
    0 0 32px rgba(98, 233, 246, 0.15),
    inset 0 0 30px rgba(112, 233, 244, 0.05);
  text-align: center;
}

.emre-holo-boot-mark {
  display: grid;
  place-items: center;
  width: 4.4rem;
  height: 4.4rem;
  color: #ecffff;
  border: 1px solid rgba(170, 245, 251, 0.48);
  border-radius: 50%;
  box-shadow:
    0 0 0 0.65rem rgba(122, 235, 245, 0.03),
    0 0 24px rgba(114, 237, 247, 0.14);
  font-family: "Fraunces", serif;
  font-size: 2rem;
}

.emre-holo-boot-frame strong {
  color: #d9fcff;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
}

.emre-holo-boot-frame > span:last-child {
  color: rgba(179, 239, 246, 0.55);
  font-size: 0.52rem;
  letter-spacing: 0.14em;
}

.emre-holo-title h2 {
  position: relative;
  display: inline-block;
  animation: emreHeadingGlitch 9s steps(1, end) infinite;
}

.emre-holo-title h2::before,
.emre-holo-title h2::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.emre-holo-title h2::before {
  color: rgba(100, 237, 250, 0.5);
  transform: translateX(1px);
}

.emre-holo-title h2::after {
  color: rgba(244, 255, 255, 0.24);
  transform: translateX(-1px);
}

.holo-note-copy {
  min-height: 9.8rem;
  margin-bottom: 1.6rem;
  color: rgba(226, 248, 251, 0.84);
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  line-height: 1.82;
}

.holo-typed-text {
  white-space: pre-wrap;
}

.holo-type-cursor {
  display: inline-block;
  margin-left: 0.08em;
  color: #b8f9ff;
  text-shadow: 0 0 8px rgba(129, 239, 249, 0.25);
  animation: emreCursorBlink 0.78s steps(1, end) infinite;
}

.holo-gallery-open {
  display: block;
  width: 100%;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}

.holo-gallery-frame {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 16 / 10;
  margin-bottom: 1rem;
  background:
    radial-gradient(circle at 50% 45%, rgba(117, 239, 252, 0.14), transparent 38%),
    #071923;
  border: 1px solid rgba(142, 233, 244, 0.38);
  clip-path: polygon(0 0, calc(100% - 0.85rem) 0, 100% 0.85rem, 100% 100%, 0.85rem 100%, 0 calc(100% - 0.85rem));
  box-shadow:
    inset 0 0 22px rgba(123, 235, 244, 0.06),
    0 0 18px rgba(81, 216, 233, 0.06);
}

.holo-gallery-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.84;
  filter:
    saturate(0.72)
    contrast(1.08)
    brightness(0.9);
  transition:
    opacity 180ms ease,
    transform 420ms ease,
    filter 180ms ease;
}

.holo-gallery-open:hover .holo-gallery-image,
.holo-gallery-open:focus-visible .holo-gallery-image {
  opacity: 1;
  filter:
    saturate(0.88)
    contrast(1.08)
    brightness(1);
  transform: scale(1.025);
}

.holo-gallery-open:focus-visible {
  outline: 1px solid #a8f4fa;
  outline-offset: 4px;
}

.holo-gallery-scan,
.emre-lightbox-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(229, 255, 255, 0.035) 0 1px,
      transparent 1px 5px
    ),
    linear-gradient(
      100deg,
      transparent 20%,
      rgba(213, 255, 255, 0.08) 45%,
      transparent 62%
    );
  mix-blend-mode: screen;
  animation: emreGallerySweep 6.5s linear infinite;
}

.holo-gallery-expand {
  position: absolute;
  right: 0.7rem;
  bottom: 0.65rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: #c9fbff;
  background: rgba(4, 20, 29, 0.68);
  border: 1px solid rgba(157, 239, 248, 0.4);
  box-shadow: 0 0 14px rgba(104, 228, 240, 0.1);
}

.holo-gallery-copy {
  min-height: 8.8rem;
}

.holo-gallery-copy h3 {
  margin-bottom: 0.55rem;
}

.holo-gallery-caption {
  margin: 0;
}

.holo-gallery-controls {
  display: grid;
  grid-template-columns: 2rem auto minmax(2.5rem, 1fr) 2rem;
  gap: 0.45rem;
  align-items: center;
  margin-top: 0.95rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(139, 230, 241, 0.16);
}

.holo-gallery-controls button {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  color: #c5faff;
  background: rgba(91, 199, 214, 0.08);
  border: 1px solid rgba(143, 233, 244, 0.26);
  border-radius: 0.2rem;
  cursor: pointer;
}

.holo-gallery-controls button:hover,
.holo-gallery-controls button:focus-visible {
  color: #ffffff;
  background: rgba(105, 222, 235, 0.16);
  box-shadow: 0 0 14px rgba(107, 229, 240, 0.12);
}

.holo-gallery-count {
  color: rgba(183, 241, 247, 0.65);
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.holo-gallery-dots {
  display: flex;
  justify-content: flex-end;
  gap: 0.32rem;
}

.holo-gallery-dot {
  width: 0.34rem;
  height: 0.34rem;
  background: rgba(165, 236, 244, 0.22);
  border: 1px solid rgba(165, 236, 244, 0.22);
  border-radius: 50%;
}

.holo-gallery-dot.is-active {
  background: #baf7fc;
  box-shadow: 0 0 8px rgba(154, 242, 249, 0.35);
}

.emre-lightbox[hidden] {
  display: none;
}

.emre-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
}

.emre-lightbox-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(219, 255, 255, 0.018) 0 1px,
      transparent 1px 5px
    ),
    rgba(3, 14, 21, 0.88);
  border: 0;
  cursor: zoom-out;
  backdrop-filter: blur(10px);
}

.emre-lightbox-panel {
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: min(100%, 66rem);
  max-height: calc(100vh - 2rem);
  padding: clamp(1rem, 2vw, 1.6rem);
  color: #edfeff;
  background:
    linear-gradient(155deg, rgba(9, 30, 39, 0.98), rgba(5, 18, 27, 0.99));
  border: 1px solid rgba(146, 237, 247, 0.48);
  clip-path: polygon(0 0, calc(100% - 1.4rem) 0, 100% 1.4rem, 100% 100%, 1.4rem 100%, 0 calc(100% - 1.4rem));
  box-shadow:
    0 30px 90px rgba(0, 10, 16, 0.7),
    inset 0 0 34px rgba(118, 234, 245, 0.05);
}

.emre-lightbox-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 2.5rem 0.8rem 0;
  color: rgba(180, 242, 248, 0.62);
  font-size: 0.52rem;
  letter-spacing: 0.13em;
}

.emre-lightbox-close {
  position: absolute;
  top: 0.7rem;
  right: 0.75rem;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  color: #d9fdff;
  background: rgba(84, 192, 207, 0.08);
  border: 1px solid rgba(146, 237, 247, 0.35);
  cursor: pointer;
  font-size: 1.35rem;
}

.emre-lightbox-image-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-height: 62vh;
  background: #061722;
  border: 1px solid rgba(147, 235, 245, 0.28);
}

.emre-lightbox-image-frame img {
  display: block;
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
}

.emre-lightbox-copy {
  padding-top: 1rem;
}

.emre-lightbox-copy .eyebrow {
  color: #92e9f2;
}

.emre-lightbox-copy h2 {
  margin: 0 0 0.45rem;
  color: #f4ffff;
}

.emre-lightbox-copy p:last-child {
  margin: 0;
  color: rgba(224, 248, 251, 0.75);
}

.emre-lightbox-controls {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}

.emre-lightbox-controls button {
  padding: 0.65rem 0.8rem;
  color: #c9fbff;
  background: rgba(76, 183, 199, 0.08);
  border: 1px solid rgba(143, 233, 244, 0.25);
  cursor: pointer;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

body.emre-lightbox-open {
  overflow: hidden;
}

@keyframes emreBootFlash {
  0% { opacity: 1; filter: brightness(1.7); }
  8% { opacity: 0.42; }
  12% { opacity: 1; }
  18% { opacity: 0.62; }
  24%, 72% { opacity: 1; filter: brightness(1); }
  78% { opacity: 0.18; }
  82% { opacity: 0.9; }
  100% { opacity: 0; visibility: hidden; }
}

@keyframes emreHeadingGlitch {
  0%, 7%, 9%, 43%, 45%, 78%, 80%, 100% {
    transform: none;
    text-shadow: 0 0 12px rgba(152, 245, 252, 0.08);
  }
  8% {
    transform: translateX(1px);
    text-shadow: -2px 0 rgba(85, 230, 245, 0.22), 2px 0 rgba(255, 255, 255, 0.11);
  }
  44% {
    transform: translateX(-1px);
    text-shadow: 2px 0 rgba(85, 230, 245, 0.18);
  }
  79% {
    transform: translateY(1px);
  }
}

@keyframes emreCursorBlink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@keyframes emreGallerySweep {
  0% { transform: translateX(-20%); opacity: 0.5; }
  50% { opacity: 0.9; }
  100% { transform: translateX(20%); opacity: 0.5; }
}

@media (max-width: 620px) {
  .holo-note-copy,
  .holo-gallery-copy {
    min-height: 0;
  }

  .holo-gallery-controls {
    grid-template-columns: 2rem auto 1fr 2rem;
  }

  .emre-lightbox {
    padding: 0.5rem;
  }

  .emre-lightbox-panel {
    max-height: calc(100vh - 1rem);
  }

  .emre-lightbox-controls {
    flex-direction: column;
  }

  .emre-lightbox-controls button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .emre-holo-archive.is-booting .emre-holo-boot,
  .emre-holo-title h2,
  .holo-type-cursor,
  .holo-gallery-scan,
  .emre-lightbox-scan {
    animation: none !important;
  }

  .emre-holo-boot {
    display: none !important;
  }

  .holo-gallery-image {
    transition: none !important;
  }
}
