/* =========================================
   AIR / ENFORME — ARCHIVE (CLEAN CSS)
   Removes old video/archive-item system
   Keeps: archive-tile + tile-cover + tile-pill
   Keeps: loading-status + loading-bar-fill
   Tweaks:
   - fixes blue “box” behind logo (clean stacking + no margins)
   - puts "loading airchive..." UNDER the bar
   - smoother spacing using flex + gap
   ========================================= */

/* ================ FONT ================ */
@font-face {
  font-family: "ModeSeven";
  src: url("modeseven.ttf") format("truetype");
}

/* ================ GLOBAL ================ */
* { box-sizing: border-box; }
html { font-size: 16px; }

body{
  margin: 0;
  font-family: "ModeSeven", monospace;
  color: #101318;
  overflow-x: hidden;

  background: linear-gradient(
    to bottom,
    #fcfdff 0%,
    #e9edf5 45%,
    #dde1ec 100%
  );
}

/* global grain overlay */
body::before{
  content: "";
  position: fixed;
  inset: -20px;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: soft-light;
  opacity: 0.35;

  background-image:
    radial-gradient(circle, rgba(255,255,255,0.18) 0, transparent 55%),
    radial-gradient(circle, rgba(0,0,0,0.45) 0, transparent 55%),
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.12) 0px,
      rgba(255,255,255,0.12) 1px,
      rgba(0,0,0,0.0) 2px,
      rgba(0,0,0,0.0) 3px
    );

  background-size:
    280px 280px,
    320px 320px,
    180px 180px;

  animation: grainShift 6s infinite steps(3, end);
}

@keyframes grainShift{
  0%   { transform: translate3d(0, 0, 0); }
  25%  { transform: translate3d(-8px, 4px, 0); }
  50%  { transform: translate3d(6px, -6px, 0); }
  75%  { transform: translate3d(-4px, 6px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* ================ LOADING SCREEN ================ */

#loading-screen{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(
    to bottom,
    #fcfdff 0%,
    #f1f4f7 55%,
    #e9ecf0 100%
  );

  box-shadow:
    inset 0 0 120px rgba(0,0,0,0.18),
    inset 0 0 260px rgba(0,0,0,0.12);
}

#loading-screen.fade-out{
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease-out;
}

/* IMPORTANT: flex stack + spacing */
.loading-container{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;              /* controls vertical rhythm */
  text-align: center;
}

/* fixes weird blue “box” (no margin + no background bleed) */
.loading-logo{
  width: 100px;
  height: auto;
  margin: 0;              /* remove bottom margin */
  padding: 0;
  background: none;       /* kill any accidental background */
  box-shadow: none;       /* prevent box shadow rectangle */

  filter: none !important;
}

/* chrome bar with blue energy */
.loading-bar{
  width: 260px;
  height: 12px;
  margin: 0;              /* spacing handled by gap */
  position: relative;
  overflow: hidden;
  border-radius: 999px;

  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(130,150,175,0.55);

  box-shadow:
    inset 0 0 10px rgba(255,255,255,0.55),
    0 0 18px rgba(0,0,0,0.12);
}

/* chrome sweep */
.loading-bar::before{
  content:"";
  position: absolute;
  top: 0;
  left: -45%;
  width: 45%;
  height: 100%;
  pointer-events: none;
  transform: skewX(-20deg);

  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255,255,255,0.70) 45%,
    rgba(255,255,255,0.95) 55%,
    transparent 100%
  );

  opacity: 0.7;
  animation: barShine 2.6s ease-in-out infinite;
}

@keyframes barShine{
  0%   { left: -55%; }
  60%  { left: 130%; }
  100% { left: 130%; }
}

/* the fill your JS animates */
.loading-bar-fill{
  height: 100%;
  width: 0%;
  border-radius: 999px;

  background: linear-gradient(
    90deg,
    rgba(0,170,255,0.15) 0%,
    rgba(0,210,255,0.55) 22%,
    rgba(255,255,255,0.85) 52%,
    rgba(0,210,255,0.55) 78%,
    rgba(0,170,255,0.20) 100%
  );

  box-shadow:
    0 0 16px rgba(0,195,255,0.28),
    0 0 28px rgba(0,150,255,0.18);
}

/* NOW: "loading airchive..." sits UNDER the bar */
.loading-status{
  margin: 0;              /* spacing handled by gap */
  font-family: "ModeSeven", monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: lowercase;

  color: transparent;
  background-image: linear-gradient(
    120deg,
    #ffffff 0%,
    #d8e7ff 18%,
    #ffffff 34%,
    #b7d7ff 50%,
    #ffffff 66%,
    #d6e6ff 82%,
    #ffffff 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;

  text-shadow:
    0 1px 0 rgba(255,255,255,0.35),
    0 10px 24px rgba(0,0,0,0.10),
    0 0 10px rgba(160,210,255,0.35);

  opacity: 0.95;
}

@media (prefers-reduced-motion: no-preference){
  .loading-status{
    animation: loadTextShine 3.8s ease-in-out infinite;
  }
  @keyframes loadTextShine{
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
}

/* optional animated dots if you use <span class="loading-dots">...</span> */
.loading-dots{
  animation: dots 1.6s steps(3, end) infinite;
}
@keyframes dots{
  0%   { opacity: 0.25; }
  50%  { opacity: 1; }
  100% { opacity: 0.25; }
}

/* ================ CRT OVERLAY ================ */

.crt-overlay{
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  mix-blend-mode: soft-light;

  background:
    radial-gradient(circle at 50% 0%,
      rgba(255,255,255,0.18) 0%,
      transparent 60%),
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.10) 0px,
      rgba(255,255,255,0.10) 1px,
      rgba(0,0,0,0.0) 2px,
      rgba(0,0,0,0.0) 4px
    );

  opacity: 0.35;
  animation: crtFlicker 2.4s infinite steps(2, end);
}

@keyframes crtFlicker{
  0%   { opacity: 0.32; transform: translateY(0); }
  50%  { opacity: 0.26; transform: translateY(-0.5px); }
  100% { opacity: 0.32; transform: translateY(0); }
}

/* ================ MAIN LAYOUT ================ */

.main-content{
  position: relative;
  z-index: 10;
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  padding-top: 130px;
}

/* ================ TOP RIGHT BUTTON ================ */

.about-btn{
  position: absolute;
  top: 24px;
  right: 50px;

  font-family: "ModeSeven", monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: lowercase;

  padding: 6px 12px;
  border-radius: 999px;

  border: 1px solid rgba(160,175,195,0.85);
  background: rgba(255,255,255,0.90);
  color: #30343a;

  cursor: pointer;
  text-decoration: none;

  box-shadow:
    0 2px 6px rgba(0,0,0,0.08),
    0 0 0 1px rgba(255,255,255,0.80);

  transition: background 0.2s, color 0.2s, transform 0.1s, box-shadow 0.2s;
}

.about-btn:hover{
  background: #e5f6ff;
  color: #0c2b3a;
  box-shadow:
    0 3px 10px rgba(0,0,0,0.10),
    0 0 0 1px rgba(0,150,255,0.35);
}

.about-btn:active{ transform: translateY(1px); }

/* ================ FLOATING AIRCHIVE ================ */

.floating-airchive{
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  z-index: 2147483647;
  pointer-events: none;
  isolation: isolate;

  font-family: "ModeSeven", monospace;
  font-size: 22px;
  letter-spacing: 0.34em;
  text-transform: lowercase;
  line-height: 1;
  margin: 0;

  color: transparent;
  background-image: linear-gradient(
    120deg,
    #f6fbff 0%,
    #d9ecff 14%,
    #ffffff 28%,
    #b9d8ff 44%,
    #f0f7ff 60%,
    #c6e2ff 78%,
    #ffffff 100%
  );
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;

  text-shadow:
    0 1px 0 rgba(255,255,255,0.35),
    0 10px 30px rgba(0,0,0,0.18),
    0 0 16px rgba(255,255,255,0.18);

  opacity: 0.92;
}

@media (prefers-reduced-motion: no-preference){
  .floating-airchive{ animation: chromeShine 6s ease-in-out infinite; }
  @keyframes chromeShine{
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
}

/* sparkles */
.floating-airchive::after{
  content: "";
  position: absolute;
  inset: -18px -26px;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255,255,255,0.95) 0 1px, transparent 2px) 12px 10px / 60px 60px repeat,
    radial-gradient(circle, rgba(255,255,255,0.70) 0 1px, transparent 2px) 28px 22px / 80px 80px repeat,
    radial-gradient(circle, rgba(255,255,255,0.55) 0 1px, transparent 2px) 40px 6px  / 100px 100px repeat;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.35));
}

@media (prefers-reduced-motion: no-preference){
  .floating-airchive::after{ animation: sparkleTwinkle 1.8s steps(2, end) infinite; }
  @keyframes sparkleTwinkle{
    0%   { opacity: 0.00; transform: translateY(0); }
    20%  { opacity: 0.35; }
    40%  { opacity: 0.10; }
    60%  { opacity: 0.42; transform: translateY(-1px); }
    80%  { opacity: 0.12; }
    100% { opacity: 0.00; transform: translateY(0); }
  }
}

/* ================ ARCHIVE GRID (TILES) ================ */

.archive{
  margin-top: 10px;
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 0;
}

.archive-grid{
  display: grid;
  grid-template-columns: repeat(3, 220px);
  gap: 20px;
  justify-content: center;
  align-items: start;
}

@media (max-width: 900px){
  .archive-grid{ grid-template-columns: repeat(2, 220px); }
}

@media (max-width: 520px){
  .archive-grid{ grid-template-columns: 220px; }
}

.archive-tile{
  position: relative;
  display: block;
  width: 220px;
  height: 300px;
  overflow: hidden;
  border-radius: 14px;
  text-decoration: none;

  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(140,160,180,0.22);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.tile-cover{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;

  object-fit: contain;
  object-position: center;
  padding: 10px;
  background: transparent;

  filter: contrast(1.02) saturate(0.95) brightness(1.02);
}

.archive-tile::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;

  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.03) 0px,
    rgba(255,255,255,0.03) 1px,
    rgba(255,255,255,0) 4px
  );
  opacity: 0.25;
}

/* overlay pill */
.tile-pill{
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;

  display: inline-flex;
  gap: 10px;
  align-items: baseline;

  padding: 6px 10px;
  border-radius: 999px;

  font-family: "ModeSeven", monospace;
  letter-spacing: 0.08em;
  text-transform: lowercase;

  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pill-title{ font-size: 11px; opacity: 0.95; }
.pill-meta{  font-size: 10px; opacity: 0.65; }

/* ================ FOOTER BRAND ================ */

.air-footer{
  position: relative;
  width: 100%;
  padding: 32px 40px 40px;
  display: flex;
  justify-content: flex-end;
  z-index: 9;
}

.air-footer a.air-mark{
  font-family: "ModeSeven", monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: lowercase;

  text-decoration: none;
  color: inherit;

  opacity: 0.5;
  transition: color 0.25s ease, text-shadow 0.25s ease, transform 0.25s ease;
}

.air-footer a.air-mark:hover{
  color: #00cfff;
  text-shadow:
    0 0 6px rgba(0,195,255,0.7),
    0 0 14px rgba(0,195,255,0.5);
  transform: scale(1.06);
}

/* ================ ARCHIVE VIDEO LIGHTBOX (kept, optional) ================ */

.archive-lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.90);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(6px);
}

.archive-lightbox.hidden{ display: none; }

.archive-lightbox-video{
  width: min(960px, 90vw);
  max-height: 80vh;
  border-radius: 16px;
  background: #000;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.85),
    0 0 0 1px rgba(120,140,190,0.7);
}

.archive-lightbox-close{
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 26px;
  color: #ffffff;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: "ModeSeven", monospace;
}

.archive-lightbox-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0,0,0,0.55);
  color: #ffffff;
  width: 40px;
  height: 60px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 24px;
  font-family: "ModeSeven", monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.15s ease;
}

.archive-lightbox-prev{ left: 40px; }
.archive-lightbox-next{ right: 40px; }

.archive-lightbox-arrow:hover{
  background: rgba(0,0,0,0.85);
  transform: translateY(-50%) scale(1.05);
}

@media (max-width: 600px){
  .main-content{ padding-top: 110px; }
  .archive-lightbox-prev{ left: 16px; }
  .archive-lightbox-next{ right: 16px; }
  .archive-lightbox-video{ max-height: 70vh; }
}

/* ================ DARK MODE (optional) ================ */

body.dark-mode{
  background: radial-gradient(circle at top, #0a0b0f, #020308 60%, #000000 100%);
  color: #f5f6fa;
}

body.dark-mode #loading-screen{
  background: radial-gradient(circle at top, #05070c, #01020a 65%, #000000 100%);
  box-shadow:
    inset 0 0 180px rgba(0,0,0,0.9),
    inset 0 0 260px rgba(0,0,0,0.85);
}

body.dark-mode .loading-bar{
  background: rgba(255,255,255,0.06);
  border-color: rgba(90,110,140,0.75);
  box-shadow:
    inset 0 0 10px rgba(255,255,255,0.18),
    0 0 18px rgba(0,0,0,0.55);
}

body.dark-mode .about-btn{
  background: rgba(15,23,37,0.92);
  color: #f3f4ff;
  border-color: rgba(120,140,190,0.9);
  box-shadow:
    0 3px 12px rgba(0,0,0,0.7),
    0 0 0 1px rgba(70,100,160,0.9);
}

body.dark-mode .air-footer a.air-mark{ opacity: 0.7; color: #c7d7ff; }

body.dark-mode .air-footer a.air-mark:hover{
  color: #00ffe6;
  text-shadow:
    0 0 8px rgba(0,255,230,0.85),
    0 0 18px rgba(0,255,230,0.6);
}

.entry-main{
  min-height: 100vh;
  padding: 120px 20px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.entry-hero{
  width: min(720px, 92vw);
  max-height: 78vh;
  object-fit: contain;
  cursor: zoom-in;
  border-radius: 14px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(140,160,180,0.22);
  box-shadow: 0 12px 30px rgba(0,0,0,0.16);
}

.entry-hint{
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  opacity: 0.55;
}

/* lightbox */
.entry-lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(6px);
}

.entry-lightbox.hidden{ display: none; }

.entry-lightbox-img{
  width: min(980px, 92vw);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 20px 60px rgba(0,0,0,0.85);
}

.entry-close,
.entry-prev,
.entry-next{
  position: absolute;
  border: none;
  background: rgba(0,0,0,0.55);
  color: #fff;
  width: 44px;
  height: 64px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 26px;
  font-family: "ModeSeven", monospace;
  display: flex;
  align-items: center;
  justify-content: center;
}

.entry-close{
  top: 18px;
  right: 22px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  font-size: 28px;
}

.entry-prev{ left: 14px; top: 50%; transform: translateY(-50%); }
.entry-next{ right: 14px; top: 50%; transform: translateY(-50%); }

.entry-count{
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  opacity: 0.75;
  color: #fff;
}

.about-page{
  min-height: 100vh;
  display: flex;
  align-items: center;      /* vertical center */
  justify-content: center;  /* horizontal center */
  padding: 120px 20px 80px; /* room for floating AIRCHIVE + footer */
}

.about-inner{
  max-width: 640px;
  width: 100%;
  text-align: center;       /* center text */
}

/* ===== ABOUT PAGE CENTERING ===== */
.about-text{
  max-width: 640px;
  width: min(640px, 86vw);
  margin: 0 auto;

  /* center in the page */
  min-height: calc(100vh - 180px); /* leaves room for top button + footer */
  display: flex;
  flex-direction: column;
  justify-content: center;  /* vertical center */
  align-items: center;      /* horizontal center */
  text-align: center;
}

/* optional: slightly softer line spacing */
.about-text p{
  line-height: 1.7;
}
