/* e.css (FULL & INTEGRATED)
   Cohesion pass: matched to the new background structure + tint system + minimap + FX layers
   Includes true double-buffering layers, cinematic physics, Minimap Fill, and Film Grain.
*/

/* =========================
   BASE / PAGE
========================= */

html {
  width: 100%;
  height: 100%;
  background-color: #222; /* page canvas lives here */
}

body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: 16px;
  word-spacing: 3.2px;

  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;

  color: #ebebeb;
  font-family: 'Neuton', serif;

  position: relative;
  overflow-x: hidden;
}

/* =========================
   LINKS
========================= */

a {
  text-decoration: none;
  text-shadow: -1px -1px 14px rgba(120, 10, 200, 0.4);
  color: #fff200;
  transition: text-shadow 0.3s cubic-bezier(0.19, 1, 0.22, 1), color 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}
a:hover {
  text-shadow: -1px -1px 18px rgba(255, 242, 0, 0.7);
}

/* =========================
   TYPE FAMILIES
========================= */

.h1 { font-family: 'Caveat', cursive; }
.b1 { font-family: 'Neuton', serif; }

/* =========================
   BACKGROUND ROOT & MEDIA
========================= */

:root {
  --efAccent: rgba(255,255,255,0.86);
  --efTintStrength: 0.12;
  --scroll-p: 0; /* Updated dynamically by JS */
}

#efBgRoot {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#efFxRoot {
  position: fixed;
  inset: 0;
  z-index: 6;          
  pointer-events: none;
  overflow: hidden;
}

.ef-bg-layer,
#efBgImage,
#efBgSwap,
video.vidBG,
.efSwapVid {
  position: absolute;
  left: -7vw;
  top: -7vh;
  width: 114vw;
  height: 114vh;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  pointer-events: none;
  opacity: 0; 
  will-change: opacity, transform;
  transform: translateZ(0);
  transition: opacity 600ms ease;
}

.ef-bg-layer.new-layer { z-index: 2; }

#efBgTint {
  position: fixed;
  inset: 0;
  z-index: 3; 
  pointer-events: none;
  opacity: var(--efTintStrength, 0.12);
  will-change: opacity, background;
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--efAccent) 40%, transparent) 0%, transparent 55%),
    radial-gradient(circle at 70% 65%, color-mix(in srgb, var(--efAccent) 28%, transparent) 0%, transparent 60%);
}

#efVideoDimOverlay {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: rgba(0,0,0,0);
  will-change: background;
}

/* =========================
   CINEMATIC FILM GRAIN
========================= */

#efFilmGrain {
  position: fixed;
  inset: -100%; /* Oversized so the dancing transform doesn't reveal edges */
  z-index: 9999; /* Sit over top of the entire interface */
  pointer-events: none;
  opacity: 0.05; /* Subtle blend */
  mix-blend-mode: overlay;
  /* Base64 SVG Noise Generator */
  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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  animation: grainDance 0.4s steps(4) infinite;
}

@keyframes grainDance {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-5%, -5%); }
  50% { transform: translate(-10%, 5%); }
  75% { transform: translate(5%, -10%); }
  100% { transform: translate(0, 0); }
}

/* =========================
   FX LAYERS (Spots, Spotlight, Connector)
========================= */

#bgSpots {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
}

.bgSpot {
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  will-change: transform, opacity;
  mix-blend-mode: screen;
}

#spotlight {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 6;
  opacity: 0;
  will-change: opacity, transform, background;
  mix-blend-mode: screen;
}

#connectorSvg {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 7;
  opacity: 0;
  will-change: opacity;
}

@media (max-width: 700px) {
  #connectorSvg { display: none; }
}

/* =========================
   FILTER UI
========================= */

#efFilterUI {
  --efActiveColor: rgba(255,255,255,0.86);
  position: fixed;
  top: 18px;
  left: var(--efContentCenterX, 50%);
  transform: translateX(-50%);
  z-index: 5000;
  pointer-events: none;
  display: flex;
  justify-content: center;
  will-change: top, left, transform;
}

#efFilterUI .efFilterInner {
  pointer-events: auto;
  display: inline-flex;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.26), 0 0 22px rgba(255,255,255,0.04);
  transform-origin: top center;
  transition: max-height 300ms cubic-bezier(0.19, 1, 0.22, 1), padding 300ms cubic-bezier(0.19, 1, 0.22, 1), border-radius 300ms cubic-bezier(0.19, 1, 0.22, 1), box-shadow 300ms cubic-bezier(0.19, 1, 0.22, 1);
}

#efFilterUI.isDocked {
  top: 120px;
  left: auto;
  right: 18px;
  transform: none;
  justify-content: flex-end;
}

#efFilterUI.isDocked .efFilterInner {
  flex-direction: column;
  align-items: stretch;
  border-radius: 16px;
  padding: 10px;
  gap: 7px;
  max-height: 420px;
}

#efFilterUI.isDocked:not(.isDockExpanded) .efFilterBtn { display: none; }
#efFilterUI.isDocked:not(.isDockExpanded) .efFilterBtn.isActive { display: inline-flex; }
#efFilterUI.isDocked:not(.isDockExpanded) .efFilterInner { max-height: 54px; padding: 10px; border-radius: 999px; }

#efFilterUI.isDocked .efFilterBtn.isActive { padding-right: 32px; }
#efFilterUI.isDocked .efFilterBtn.isActive::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  font-size: 14px;
  opacity: 0.85;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 2px 8px rgba(0,0,0,0.55);
  transition: transform 220ms cubic-bezier(.2,.9,.2,1), opacity 160ms linear;
}

#efFilterUI.isDocked.isDockExpanded .efFilterBtn.isActive::after {
  transform: translateY(-50%) rotate(180deg);
  opacity: 0.95;
}

.efFilterBtn {
  --efBtnColor: rgba(255,255,255,0.86);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.86);
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  transition: background 200ms linear, border-color 200ms linear, transform 300ms cubic-bezier(0.19, 1, 0.22, 1), color 200ms linear, box-shadow 300ms cubic-bezier(0.19, 1, 0.22, 1);
}

.efFilterBtn:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.96);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.efFilterBtn .efDot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 0 10px rgba(255,255,255,0.10);
  flex: 0 0 auto;
}

.efFilterBtn .efLabel { line-height: 1; white-space: nowrap; }

.efFilterBtn .efGlow {
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  filter: blur(8px);
  transition: opacity 200ms cubic-bezier(.2,.9,.2,1);
  background: radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--efBtnColor) 65%, transparent) 0%, transparent 65%);
}

.efFilterBtn.isActive {
  border-color: color-mix(in srgb, var(--efBtnColor) 55%, rgba(255,255,255,0.10));
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.98);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--efBtnColor) 35%, transparent), 0 0 22px color-mix(in srgb, var(--efBtnColor) 25%, transparent), 0 14px 30px rgba(0,0,0,0.20);
}

.efFilterBtn.isActive .efGlow { opacity: 0.9; }
.efFilterBtn.isActive .efDot {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--efBtnColor) 35%, transparent), 0 0 16px color-mix(in srgb, var(--efBtnColor) 45%, transparent);
  animation: efDotPulse 1.8s ease-in-out infinite;
}

@keyframes efDotPulse {
  0%, 100% { transform: scale(1.0); }
  50% { transform: scale(1.18); }
}

#efFilterUI.isDocked .efFilterBtn { padding: 9px 12px; border-radius: 12px; }

/* Mobile Filter UI */
#efFilterUI.isMobile {
  top: 12px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  justify-content: center;
}

#efFilterUI.isMobile .efFilterInner {
  flex-wrap: wrap;
  justify-content: center;
  border-radius: 16px;
  padding: 10px;
  gap: 8px;
  max-width: min(92vw, 680px);
}

#efFilterUI.isMobile:not(.isMobileExpanded) .efFilterBtn { display: none; }
#efFilterUI.isMobile:not(.isMobileExpanded) .efFilterBtn.isActive { display: inline-flex; padding-right: 34px; }
#efFilterUI.isMobile:not(.isMobileExpanded) .efFilterBtn.isActive::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  font-size: 14px;
  opacity: 0.85;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 2px 8px rgba(0,0,0,0.55);
}

#efFilterUI.isMobile.isMobileExpanded .efFilterBtn.isActive::after { transform: translateY(-50%) rotate(180deg); }
#efFilterUI.isMobile.isMobileExpanded .efFilterBtn { display: inline-flex; }
#efFilterUI.isMobile .efFilterBtn { font-size: 14px; padding: 10px 12px; border-radius: 14px; }


/* =========================
   LAYOUT & THE FILTER SHUFFLE
========================= */

.article {
  width: 75vw;
  left: 18vw;
  height: auto;
  display: block;
  z-index: 20;
  position: relative;
  background: transparent;
  transition: opacity 1.8s ease, transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.article.ef-filtering {
  opacity: 0 !important;
  transform: translateY(15px) scale(0.98);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.byContainer { display: block; }

/* =========================
   MINIMAP & PROGRESS FILL
========================= */

#tContainer {
  position: fixed;
  left: 1vw;
  top: 0;
  z-index: 200;
  pointer-events: auto;
}

#timeline {
  position: absolute;
  left: 0.8vw;
  top: 0;
  width: 0.2vw;
  height: 100vh;
  z-index: 3;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.1); /* The dim, empty track */
  border-radius: 4px;
  overflow: hidden;
}

/* The Progress Fill (Reacts to JS scroll variable and filter color) */
#timeline::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--efAccent, #ffffff);
  transform-origin: top center;
  transform: scaleY(var(--scroll-p, 0));
  transition: background 0.4s ease;
  box-shadow: 0 0 12px var(--efAccent, #ffffff);
}

#about { max-width: 400px; }

.marker {
  position: absolute;
  width: 5px;
  height: 2px;
  border-radius: 4px;
  left: 0px;
  background-color: white;
  z-index: 1000;
  pointer-events: none;
}

#m {
  left: 1vw;
  width: 10px;
  height: 15px;
  border-top-left-radius: 25%;
  border-bottom-right-radius: 25%;
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: white;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3) 10%, rgba(255,255,255,0));
  pointer-events: none;
}

/* =========================
   BIO BLURB CARD & CURSOR
========================= */

#bioBlurb {
  display: block;
  max-width: 980px;
  margin: 18px auto 10px auto;
  padding: 18px 20px;
  background: rgba(0,0,0,0.34);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.22), 0 0 22px rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.86);
  line-height: 1.55;
  transform: translateZ(0);
}

.efTypeCursor {
  display: inline-block;
  margin-left: 2px;
  opacity: 0.85;
  animation: efCursorBlink 1.1s ease-in-out infinite;
  text-shadow: 0 2px 8px rgba(0,0,0,0.65);
}

@keyframes efCursorBlink {
  0%, 45%, 100% { opacity: 0.92; }
  50%, 95% { opacity: 0.25; }
}

@media (max-width: 700px) {
  #bioBlurb {
    margin: 14px 14px 10px 14px;
    padding: 16px 16px;
    border-radius: 16px;
  }
}

/* =========================
   VIDEO / EMBEDS (IN-CONTENT)
========================= */

.theVid {
  object-fit: cover;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: absolute;
  top: 100px;
  z-index: 1;
  pointer-events: none;
}

.vidAcross {
  height: 450px;
  width: 100%;
  margin-top: 30px;
  margin-bottom: 20px;
  position: relative;
  z-index: 25;
}

/* =========================
   HERO IMAGE
========================= */

.imgTitle {
  width: 35vw;
  height: 35vw;
  min-width: 250px;
  min-height: 250px;
  max-width: 325px;
  max-height: 325px;
  background-image: url('images/e2019.jpg');
  background-position: 50% 50%;
  background-size: cover;
  margin: 60px;
  margin-top: 120px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 90px;
  z-index: 400;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.imgTitle:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0px 15px 40px rgba(0,0,0,0.4);
}


/* =========================
   TEXT / PARAGRAPHS
========================= */

p {
  width: 65%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 10px;
  line-height: 150%;
  border-left-width: 6px;
  border-left-style: solid;
  border-left-color: rgba(255,255,255,0.2);
  padding-left: 30px;
  margin-top: 60px;
  font-size: 45px;
  font-weight: 500;
  border-left-color: rgba(255,255,255,1);
  border-left-width: 8px;
  text-align: left;
  z-index: 25;
  position: relative;
}

section { text-align: center; }

details {
  width: 65%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 10px;
  line-height: 125%;
  border-left-width: 6px;
  border-left-style: solid;
  border-left-color: rgba(255,255,255,0.2);
  padding-left: 30px;
  font-size: 16px;
  font-weight: 100;
  font-family: 'Noto Sans JP', sans-serif;
  color: #999;
  border-left-color: rgba(255,255,255,0.2);
  border-left-width: 1px;
  position: relative;
  z-index: 25;
}

summary {
  margin-top: 15px;
  margin-bottom: 15px;
  line-height: 1.1;
  cursor: pointer;
  transition: color 0.3s ease;
}
summary:hover { color: #fff; }

/* =========================
   COLOR CLASSES
========================= */

.tC { color: #00ffcc; }
.tA { color: #4d94ff; }
.tW { color: #ff6600; }
.tE { color: #FFFFFF; }
.tWS { color: #ff66ff; }
.tM { color: #59cc33; }
.tAw { color: #ffd633; }

/* =========================
   CATEGORY CLASSES (BORDERS)
========================= */

.work { border-left-color: #c0b3cb; padding-left: 30px; line-height: 1; }
.animation { border-left-color: #4d94ff; padding-left: 30px; line-height: 1; }
.webseries { border-left-color: #ff66ff; padding-left: 30px; line-height: 1; }
.music { border-left-color: #59cc33; padding-left: 30px; line-height: 1; }
.book { border-left-color: #ff6600; padding-left: 30px; line-height: 1; }
.code { border-left-color: #00ffcc; padding-left: 30px; line-height: 1; }
.shortstory { border-left-color: #ff6600; line-height: 0.8; }
.zine { border-left-color: #ff6600; padding-left: 30px; line-height: 1; border-left-width: 5px; }

/* =========================
   CURRENT FOCUS / IN-PROGRESS FX
========================= */

@keyframes pulseFocus {
  0% {
    border-left-color: rgba(77, 148, 255, 0.4);
    text-shadow: 0 0 10px rgba(77, 148, 255, 0.0);
    box-shadow: -15px 0 30px -20px rgba(77, 148, 255, 0);
  }
  50% {
    border-left-color: rgba(77, 148, 255, 1);
    text-shadow: 0 0 18px rgba(77, 148, 255, 0.5);
    box-shadow: -15px 0 30px -15px rgba(77, 148, 255, 0.3);
  }
  100% {
    border-left-color: rgba(77, 148, 255, 0.4);
    text-shadow: 0 0 10px rgba(77, 148, 255, 0.0);
    box-shadow: -15px 0 30px -20px rgba(77, 148, 255, 0);
  }
}

.current-focus {
  animation: pulseFocus 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  position: relative;
}

.current-focus::after {
  content: "IN PROGRESS";
  font-size: 14px;
  font-weight: 800;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 2px;
  color: #ffd633;
  background: rgba(255, 214, 51, 0.1);
  border: 1px solid rgba(255, 214, 51, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
  margin-left: 20px;
  vertical-align: middle;
  display: inline-block;
  text-shadow: none;
  transform: translateY(-4px); 
}

@media (max-width: 900px) {
  .current-focus::after { display: block; width: max-content; margin-left: 0; margin-top: 10px; transform: translateY(0); }
}

/* =========================
   HEADERS / MISC
========================= */

h2 {
  font-family: 'Caveat', cursive;
  font-size: 55px;
  margin-left: 10%;
  margin-top: 90px;
  margin-bottom: 40px;
  font-weight: 100;
  color: #ebebeb;
  display: inline-block;
}

#future { color: #ff99cc; }

.esp {
  font-family: 'Caveat', cursive;
  font-size: 30px;
  text-align: center;
  display: block;
  margin-top: 30px;
  margin-bottom: 30px;
}

/* =========================
   IMAGES (WITH MICRO-PHYSICS)
========================= */

.imgAcross {
  width: 100%;
  display: block;
  height: 300px;
  background-size: cover;
  background-position: 50% 80%;
  margin-top: 40px;
  margin-bottom: 40px;
  position: relative;
  z-index: 25;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.imgAcross:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0px 10px 30px rgba(0,0,0,0.3);
}

.imgIn {
  width: 70%;
  max-width: 820px;
  display: block;
  height: 350px;
  background-size: cover;
  background-position: 30% 60%;
  margin-top: 20px;
  margin-bottom: 100px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 25;
  border-radius: 8px;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.imgIn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0px 10px 30px rgba(0,0,0,0.3);
}

#i1 { background-image: url(images/bg/s9.jpg); height: 200px; }
#v1 { margin-top: 50px; object-fit: cover; box-shadow: 0px 0px 60px rgba(255,255,255,0.2); }
#i_rc { background-image: url(images/proj/rc.jpg); }

#i_rf { background-image: url(images/proj/r4.jpg); }
#i_icd { background-image: url(images/proj/ICD_7.png); background-position: 50% 50%; }
#i_itr { background-image: url(images/proj/itr_1.jpg); }
#i_sag { background-image: url(images/proj/sag.jpg); }
#i_ambws { background-image: url(images/proj/ambws.jpg); }
#i_sb { background-image: url(images/proj/sb.png); }
#i_ml { background-image: url(images/proj/ml.jpg); }
#i_anc { background-image: url(images/proj/ancestors.jpg); background-position: 50% 20%; }
#i_odd { background-image: url(images/ox3_temp.jpg); }
#i_col { background-image: url(images/proj/cold2.jpg); }
#i_flo { background-image: url(images/proj/flog.jpg); }
#i_cal { background-image: url(images/proj/calamitous.jpg); }
#i_aut { background-image: url(images/proj/calamitous.jpg); }
#i_gs1 { background-image: url(images/proj/poster_gs.jpg); }
#i_gs2 { background-image: url(images/proj/gs2.jpg); }

/* =========================
   FOOTER
========================= */

footer {
  margin-top: 300px;
  margin-bottom: 100px;
  text-align: center;
  font-size: 18px;
  color: #666;
  position: relative;
  z-index: 25;
}

/* =========================
   INFO CLASSES
========================= */

.i1 { font-size: 24px; font-weight: 100; font-family: 'Noto Sans JP', sans-serif; color: #888; margin-top: 0px; margin-left: auto; margin-right: auto; border-left-width: 0px; }
.i2 { font-size: 16px; font-weight: 100; font-family: 'Noto Sans JP', sans-serif; color: #999; margin-top: 0px; margin-left: auto; margin-right: auto; border-left-width: 0px; }
.i3 { font-size: 16px; font-weight: 800; font-family: 'Noto Sans JP', sans-serif; color: #999; margin-top: 0px; margin-left: 10px; border-left-width: 0px; }
.t, .a, .pr, .r, .n { font-size: 16px; font-weight: 400; font-family: 'Noto Sans JP', sans-serif; }
.t, .a { margin-top: 20px; border-left-color: rgba(255,255,255,0.3); border-left-width: 2px; }
.pr { padding-top: 15px; margin-top: 5px; color: #3399ff; border-left-color: #3399ff; border-left-width: 2px; }
.r { padding-top: 30px; margin-top: 5px; color: #ffd633; border-left-color: #ffd633; border-left-width: 2px; }
.n { padding-top: 10px; margin-top: 5px; color: #ff9966; border-left-color: #ff9966; border-left-width: 2px; }

/* =========================
   YEAR / SECTION TAGS
========================= */

.sText {
  line-height: 1.5;
  font-size: 40px;
  letter-spacing: 6px;
  color: #777;
  text-align: center;
  width: auto;
  padding-left: 50px;
  padding-right: 50px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-left-color: var(--efAccent);
  border-left-width: 3px;
  border-left-style: solid;
  border-right-color: var(--efAccent);
  border-right-width: 3px;
  border-right-style: solid;
  border-radius: 25px;
  display: inline-block;
  position: relative;
  z-index: 25;
}

p.sText.efYearHeader {
  border-left-color: var(--efAccent) !important;
  border-right-color: var(--efAccent) !important;
}

/* =========================
   FILTER ACCENT VARS (legacy)
========================= */

body.filter-all       { --accent-color: #ff0066; --efAccent: rgba(255,0,102,1); }
body.filter-media     { --accent-color: #ff8800; --efAccent: rgba(255,136,0,1); }
body.filter-animation { --accent-color: #ff0066; --efAccent: rgba(255,0,102,1); }
body.filter-code      { --accent-color: #00c8ff; --efAccent: rgba(0,200,255,1); }
body.filter-writing   { --accent-color: #9c6bff; --efAccent: rgba(156,107,255,1); }
body.filter-music     { --accent-color: #ffd400; --efAccent: rgba(255,212,0,1); }

/* =========================
   TITLE BUTTON
========================= */

.tText {
  line-height: 1.5;
  font-size: 45px;
  color: #ffffff;
  text-align: center;
  width: 220px;
  padding: 14px 40px;
  --accent-color: var(--efAccent);
  border-left: 3px solid var(--accent-color);
  border-right: 3px solid var(--accent-color);
  border-radius: 32px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.65), 0 0 18px rgba(255,255,255,0.12);
  background: linear-gradient(to bottom, rgba(0,0,0,0.22), rgba(0,0,0,0.10));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 10px 26px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(0px) scale(1);
  transition: transform 600ms cubic-bezier(.19, 1, .22, 1), box-shadow 600ms cubic-bezier(.19, 1, .22, 1), text-shadow 600ms ease, border-color 600ms ease, background 600ms ease;
  position: relative;
  z-index: 25;
}

.tText:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.10), 0 18px 48px rgba(0,0,0,0.55), 0 0 22px color-mix(in srgb, var(--efAccent) 35%, transparent);
  text-shadow: 0 4px 14px rgba(0,0,0,0.85), 0 0 26px rgba(255,255,255,0.25);
  border-left-color: color-mix(in srgb, var(--efAccent) 80%, white);
  border-right-color: color-mix(in srgb, var(--efAccent) 80%, white);
  background: linear-gradient(to bottom, rgba(0,0,0,0.30), rgba(0,0,0,0.20));
}

.tText:active {
  transform: translateY(-1px) scale(1.02);
  transition: transform 120ms ease;
}

/* =========================
   SPACERS
========================= */

.spacerrr, .spacerr, .spacer {
  border-right-color: rgba(255,255,255,0.1);
  border-right-width: 2px;
  border-right-style: solid;
  border-left-width: 0px;
  text-align: center;
  padding: 0px;
  position: relative;
  z-index: 25;
  width: 1px;
}
.spacerrr { margin-top: 30px; margin-bottom: 30px; height: 300px; }
.spacerr { margin-top: 80px; margin-bottom: 30px; height: 180px; }
.spacer { margin-top: 30px; margin-bottom: 30px; height: 30px; }


/* =========================
   SOCIAL / PLACES
========================= */

#places {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: block;
  margin-bottom: 50px;
  margin-top: 50px;
  text-align: center;
  position: relative;
  z-index: 25;
}

.sbutton {
  width: 100px;
  height: 100px;
  display: inline-block;
  background-size: 40px 40px;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: rgba(0,0,0,0.12);
  position: relative;
  pointer-events: all;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), background-size 0.4s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  cursor: pointer;
  margin: 10px;
  border-left-width: 2px;
  border-left-style: solid;
  border-right-width: 2px;
  border-right-style: solid;
  border-radius: 25px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.sbutton:hover { 
  background-size: 80px 80px; 
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0px 10px 20px rgba(0,0,0,0.25);
}

.noSpace { font-size: 0; width: 100%; height: 100%; display: block; }
#t { background-image: url(images/soc/logo_s_twitter.png); border-color: #028dc2; }
#g { background-image: url(images/soc/logo_s_insta.png); border-color: rgb(255,150,210); }
#v { background-image: url(images/soc/logo_s_vimeo.png); border-color: #1f6796; }
#l { background-image: url(images/soc/logo_s_linkedin.png); border-color: #37afff; }
#f { background-image: url(images/soc/famcon_logo.gif); border-color: #a6a101; }
#s { background-image: url(images/soc/imdb.png); border-color: #c59025; }
#s6 { background-image: url(images/soc/s6.png); border-color: #444; }
#sp { background-image: url(images/soc/logo_patreon.jpg); border-color: #ff884d; }

iframe { padding: 0; margin: 0; position: relative; z-index: 25; }


/* =========================
   PLACES DOCKING
========================= */

:root {
  --efPlacesDockTop: 180px;
  --efPlacesDockRight: 18px;
  --efPlacesDockGap: 12px;
}

#efPlacesSpacer { display: none; width: 100%; height: 0px; }
#places { position: relative; }

body.efPlacesDocked #places {
  position: fixed;
  right: var(--efPlacesDockRight, 18px);
  top: var(--efPlacesDockTop, 180px);
  width: auto;
  margin: 0;
  text-align: center;
  z-index: 4800;
  pointer-events: none;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: top 260ms cubic-bezier(.2,.9,.2,1), right 260ms cubic-bezier(.2,.9,.2,1), transform 520ms cubic-bezier(.16,1,.24,1), opacity 320ms ease;
}

body.efPlacesDocked.efPlacesDockEnter #places {
  opacity: 0;
  transform: translate3d(22px, -10px, 0) scale(0.985);
  transition: none; 
}

body.efPlacesDocked #places .sbutton {
  display: block;
  margin: 10px 0;
  pointer-events: auto;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background-size: 26px 26px;
}

body.efPlacesDocked #places .sbutton:hover { background-size: 40px 40px; transform: scale(1.1) translateX(-4px); }

@media (max-width: 700px) {
  #efPlacesSpacer { display: none !important; height: 0 !important; }
  body.efPlacesDocked #places { position: relative; right: auto; top: auto; width: 100%; margin-top: 50px; margin-bottom: 50px; pointer-events: auto; transform: none; opacity: 1; transition: none; }
  body.efPlacesDocked #places .sbutton { display: inline-block; margin: 10px; width: 33%; height: 90px; max-width: 200px; border-radius: 25px; background-size: 40px 40px; }
}


/* =========================
   BREAKPOINTS
========================= */

@media (min-width: 1440px) {
  .article { left: 15vw; }
  .imgAcross { height: 450px; width: 85%; margin: 0 auto; margin-top: 120px; margin-bottom: 80px; border-radius: 50px; overflow: hidden; }
  .vidAcross { height: auto; width: 85%; margin: 0 auto; margin-top: 30px; margin-bottom: 20px; }
}

@media (max-width: 900px) {
  body { word-spacing: 1.2px; }
  .article { left: 12vw; }
  p { width: 80%; max-width: 800px; padding-left: 4%; font-size: 30px; }
  .i1 { font-size: 18px; color: #999; }
  .i2 { font-size: 14px; color: #666; }
  .a, .r, .pr { font-size: 14px; }
  .esp { margin-top: 60px; margin-bottom: 60px; width: 80%; margin: 0 auto; }
  .vidAcross { height: 450px; width: 100%; overflow: hidden; }
  .imgIn { width: 100%; margin-left: 0; margin-right: 0; padding: 0; height: 250px; max-width: 100%; }
  #places { margin: 0px; padding: 0px; }
  .sbutton { width: 33%; height: 90px; max-width: 200px; margin-left: 20px; margin-right: 20px; }
}


/* =========================
   ACT I - IV: SEQUENTIAL LOAD 
========================= */

body:not(.seq-ui-ready) #efFilterUI { opacity: 0; transform: translateY(-150%) translateX(-50%); pointer-events: none; }
#efFilterUI { transition: top 240ms cubic-bezier(.2,.9,.2,1), left 240ms cubic-bezier(.2,.9,.2,1), transform 1.4s cubic-bezier(.16,1,.3,1), opacity 1.2s ease; }

@keyframes pillRipple { 0% { transform: translateY(-15px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
body.seq-ui-ready #efFilterUI .efFilterBtn { animation: pillRipple 1s cubic-bezier(.16,1,.3,1) both; }
body.seq-ui-ready #efFilterUI .efFilterBtn:nth-child(1) { animation-delay: 0.0s; }
body.seq-ui-ready #efFilterUI .efFilterBtn:nth-child(2) { animation-delay: 0.04s; }
body.seq-ui-ready #efFilterUI .efFilterBtn:nth-child(3) { animation-delay: 0.08s; }
body.seq-ui-ready #efFilterUI .efFilterBtn:nth-child(4) { animation-delay: 0.12s; }
body.seq-ui-ready #efFilterUI .efFilterBtn:nth-child(5) { animation-delay: 0.16s; }
body.seq-ui-ready #efFilterUI .efFilterBtn:nth-child(6) { animation-delay: 0.20s; }
body.seq-ui-ready #efFilterUI .efFilterBtn:nth-child(7) { animation-delay: 0.24s; }

body:not(.seq-content-ready) #tContainer { opacity: 0; pointer-events: none; }
#tContainer { transition: opacity 1.8s ease; }

/* The Timeline Base Draw */
body:not(.seq-content-ready) #timeline { transform: scaleY(0); transform-origin: top center; }
#timeline { transition: transform 2.2s cubic-bezier(.16,1,.3,1) 0.2s; }





/* =========================
   CUSTOM MAGNETIC CURSOR
========================= */

:root {
  /* ⚙️ CURSOR VISUAL SETTINGS ⚙️ */
  --c-size-base: 60px;
  
  /* I increased the base blur slightly so the "rim" of the glass is more obvious */
  --c-blur-base: 6px; 
  
  --c-size-active: 22px; 
  --c-blur-active: 0px;
  
  --c-size-media: 76px;
  --c-morph-speed: 0.4s;
}

/* The Center Tracking Dot */
#ef-cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  background-color: #ffffff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  will-change: transform;
  transition: opacity 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5), inset 0 0 2px rgba(0,0,0,0.5);
}

/* The Trailing Spring Ring (Main Container) */
#ef-cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: var(--c-size-base);
  height: var(--c-size-base);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
  
  transition: width var(--c-morph-speed) cubic-bezier(0.19, 1, 0.22, 1), 
              height var(--c-morph-speed) cubic-bezier(0.19, 1, 0.22, 1), 
              background-color var(--c-morph-speed) ease, 
              border-color var(--c-morph-speed) ease,
              opacity 0.3s ease;
}

/* NEW: The Glass Donut Mask */
#ef-cursor-ring::before {
  content: "";
  position: absolute;
  inset: -1px; /* Matches the outer border */
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  
  /* The blur is applied here instead of the parent */
  backdrop-filter: blur(var(--c-blur-base));
  -webkit-backdrop-filter: blur(var(--c-blur-base));
  
  /* PUNCH THE HOLE: This mask makes the center 55% completely transparent */
  -webkit-mask: radial-gradient(circle, transparent 55%, black 56%);
  mask: radial-gradient(circle, transparent 55%, black 56%);
  
  transition: backdrop-filter var(--c-morph-speed) ease,
              -webkit-backdrop-filter var(--c-morph-speed) ease;
}

#ef-cursor-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #111; 
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* --- STATE: Hovering over a button/link (Gets SMALLER and FOCUSED) --- */
#ef-cursor-dot.is-active {
  opacity: 0; 
}

#ef-cursor-ring.is-active {
  width: var(--c-size-active);
  height: var(--c-size-active);
  background-color: rgba(255, 255, 255, 0.15); 
  border-color: transparent;
  mix-blend-mode: screen;
}

#ef-cursor-ring.is-active {
  width: var(--c-size-active);
  height: var(--c-size-active);
  background-color: rgba(255, 255, 255, 0.15); 
  border-color: transparent;
  mix-blend-mode: screen;
  
  backdrop-filter: blur(var(--c-blur-active));
  -webkit-backdrop-filter: blur(var(--c-blur-active));
}

/* --- STATE: Hovering over Media (Images/Videos) --- */
#ef-cursor-dot.is-media {
  opacity: 0;
}

#ef-cursor-ring.is-media {
  width: var(--c-size-media);
  height: var(--c-size-media);
  background-color: rgba(255, 255, 255, 0.95);
  border-color: transparent;
  mix-blend-mode: normal;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}

#ef-cursor-ring.is-media #ef-cursor-text {
  opacity: 1;
}


/* =========================
   PROJECT SIDECAR (MAGAZINE FLOAT)
========================= */

.project-sidecar {
  float: right;
  width: 25%;
  min-width: 180px;
  max-width: 260px;
  /* margin-top: 60px perfectly aligns it with the top of your <p class="a"> tags */
  margin-top: 60px; 
  margin-left: 30px;
  margin-bottom: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 20px;
  position: relative;
  z-index: 30;
}

/* Force specific styling so it ignores the giant global <p> tags */
div.project-sidecar p.collab-header {
  width: auto;
  margin: 0 0 12px 0;
  padding: 0;
  border: none;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--efAccent, #999); /* Auto-colors to match the project category! */
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.2;
}

div.project-sidecar p.collab-item {
  width: auto;
  margin: 0 0 8px 0;
  padding: 0;
  border: none;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4;
  color: #aaa;
  text-align: left;
}

div.project-sidecar p.collab-item strong {
  color: #eee;
  font-weight: 600;
}

/* Mobile responsive collapse: Un-floats and stacks neatly under the title */
@media (max-width: 900px) {
  .project-sidecar {
    float: none;
    width: 80%;
    max-width: 800px;
    margin: 40px auto 10px auto;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 20px;
    padding-left: 4%; /* Matches your mobile paragraph padding */
  }
}

/* SAFETY: Ensure images and spacers clear the float so it doesn't bleed */
.spacer, .spacerr, .spacerrr, .imgAcross, .imgIn, .vidAcross {
  clear: both;
}