/* ==========================================================================
   FONT-FACE CONFIGURATION (STREAMING FROM R2)
   ========================================================================== */

/* NewEdge666 */
@font-face {
  font-family: "NewEdge666";
  src: url("https://media.studiocontingent.com/fonts/NewEdge666-RegularRounded.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "NewEdge666";
  src: url("https://media.studiocontingent.com/fonts/NewEdge666-RegularRoundedSlanted.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: "NewEdge666";
  src: url("https://media.studiocontingent.com/fonts/NewEdge666-SemiBoldRounded.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "NewEdge666";
  src: url("https://media.studiocontingent.com/fonts/NewEdge666-SemiBoldRoundedSlanted.otf") format("opentype");
  font-weight: 600;
  font-style: italic;
}

/* Flecha */
@font-face {
  font-family: "Flecha";
  src: url("https://media.studiocontingent.com/fonts/FlechaBronzeaTestM-ExtraLight.otf") format("opentype");
  font-weight: 200;
}


/* -------------------- */
/* GLOBAL */
/* -------------------- */
/* * is all text */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: rgb(0, 255, 0);
}

/*FORMER rgb 241,236,220*/
body {
  background-color: rgb(0,0,255);
  font-family: "NewEdge666", sans-serif;
  font-weight: 400;
  font-style: normal;
  height: 100vh;    /* Lock to viewport height */
  overflow: hidden; /* Disable page-level scrolling */
}

/* -------------------- */
/* TYPOGRAPHY */
/* -------------------- */

    h1 {
    font-family: "Flecha", serif;
    font-weight: 200;
    font-size: 35px;
    text-align: center;
    padding-top: 9px;
    transform: scaleX(1.5);
    text-align: right;
    transform-origin: right center;
    padding-right: 10px;
    }

    h2 {
    font-family: "NewEdge666", sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    }

    h3 {
    font-family: "Libre Baskerville", serif;
    font-size: 12px;
    font-weight: 400;
    }

/* -------------------- */
/* HEADER */
/* -------------------- */

header {
  display: flex;
  width: 100%;
  height: 50px;
  border-bottom: 0.1px solid;
  padding: 0; /* Keep padding cleared to maintain alignment calculations */
}

/* Spacer matches the exact footprint of your .sidebar */
header .header-left-space {
  width: 16%;
  border-right: 0px solid blue;
}

/* The Nav container mirrors the exact width and padding rules of .content wrapper */
.header-nav {
  width: 84%;
  padding: 0 40px; /* Matches .content padding */
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 30px; /* Matches gap width between project columns */
  align-items: center; /* Vertically centers the navbar buttons inside the header */
}

/* Individual wrapper slots for each link */
.nav-slot {
  text-align: center; /* Forces whatever is inside this slot to lock onto the column's vertical axis */
  display: block;
  width: 100%;
}

.header-nav a {
  text-decoration: none;
  font-family: "NewEdge666", sans-serif;
  font-weight: 600;
  font-size: 20px;
  text-transform: uppercase;
  display: inline-block;
  cursor: none !important;
}

.header-nav a:hover {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}


/* --- SIDEBAR TEXT & FILTERS --- */

.office-info {
  margin-top: 40px;
  font-family: "NewEdge666", sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.5;
 
  text-align: right;
  width: 100%; /* Keeps text pushed right even when filter establishes context */
}

.office-info p {
  margin-bottom: 25px;
}

.filter-btn {
  font-family: "NewEdge666", sans-serif;
  font-weight: 600;
  cursor: none;
  display: inline-block;
  transition: transform 0.2s ease;
  cursor: none !important;
}

.filter-btn.active {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.filter-btn:hover {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.filter-reset {
  margin-top: 30px;
  font-family: "NewEdge666", sans-serif;
  font-size: 10px;
  cursor: none;
  opacity: 0.5;
}

.filter-reset:hover {
  opacity: 1;
}


/* -------------------- */
/* MAIN LAYOUT */
/* -------------------- */

main {
  display: flex;
  height: calc(100vh - 50px - 100px);
  overflow: hidden;
  
  /* Footer trainsition */
  transition: height 0.6s cubic-bezier(0, 1, 0.5, 1);
}


/* -------------------- */
/* FOOTER */
/* -------------------- */

footer {
  height: 100px;
  border-top: 0.5px solid;
  display: flex;       
  padding: 0 !important; 
  
  /* ADD THIS: Hardened kinetic tracking properties */
  transition: 
    height 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.6s ease,
    border-top-color 0.6s ease;
  transform-origin: bottom center;
}

.footer-sidebar {
  width: 16%;
  padding-top: 15px;
  padding-right: 20px;
  align-items: center;   /* Vertically centers the copyright */
  text-align: right;
  font-family: "Libre Baskerville", serif;
  font-size: 10px;
  line-height: 1.4;
}

.footer-content {
  width: 84%;
  padding: 0px;       /* Top/Bottom: 0, Left/Right: 20px */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  font-family: "Libre Baskerville", serif;
  font-size: 10px;
  line-height: 1.4;
}

.data-point, .data-row {
  display: block;
  font-family: "Libre Baskerville", serif;
  font-size: 10px;
  line-height: 1.4;
}

.data-label {
  font-family: "Libre Baskerville", serif;
  font-weight: 600;
  margin-right: 5px;
}

.about {
  font-family: "NewEdge666", sans-serif;
  font-size: 60px;
  font-weight: 400;
  line-height: 1.3;
  color: blue;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  align-items: center;

  margin-bottom: 30px;
}

.about-sec {
  margin-top: 40px;
  font-family: "NewEdge666", sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.5;
  color: blue;
  text-align: left;
  width: 100%; /* Keeps text pushed right even when filter establishes context */
}

.about-ter {
  margin-top: 30px;
  font-family: "NewEdge666", sans-serif;
  font-weight: 600;
  font-size: 10px;
  line-height: 1.7;
  color: blue;
  text-align: left;
  width: 100%; /* Keeps text pushed right even when filter establishes context */
}

.about img {
  display: block;        /* Forces the image onto its own layout line */
  margin-left: auto;     /* Pushes left margin away equally */
  margin-right: auto;    /* Pushes right margin away equally */
  max-width: 100%;       /* Scale safety limits */
  height: auto;
  margin-bottom: 50px;
  margin-top: 50px;
}
/* -------------------- */
/* SIDEBAR (16%) */
/* -------------------- */

.sidebar {
  width: 16%;
  padding: 20px;
  display: block;
  flex-direction: column;
  justify-content: space-between;
  white-space: nowrap;
  
  /* Hardened hardware acceleration transition track */
  filter: blur(0px);
  transition: filter 0.5s ease;
  will-change: filter; 
}

/* Clean up this modifier block to ONLY touch blur values */
.sidebar.is-blurred {
  filter: blur(8px); 
}




.logo {
  height: 100%;
  display: block;
  overflow: hidden;
  cursor: none !important;
}

/* Logo displacement added */
#Ebene_1 {
  width: auto;
  height: 100%;
  display: block;
  overflow: visible; /* Allows points to be dragged outside the box */
}

.st0 {
  fill: blue;
  transition: fill 0.3s;
  pointer-events: none; /* Mouse passes through to the SVG container */
}

#logo-container canvas {
  display: block;
  width: auto;
  height: 100%;
}
#logo-container {
  position: absolute;
  top: 50%;
  left: 50%; /* Change from 15% to 50% to align its starting point to the middle of .content */
  transform: translate(-50%, -50%); /* Centers both horizontally and vertically precisely */
  height: 150vh;   
  z-index: -1;   /* Keeps it floating safely behind the gallery text */
  opacity: 0.35;  
  pointer-events: all; 
}

/* -------------------- */
/* CONTENT (84%) */
/* -------------------- */

.content {
  width: 84%;
  padding: 40px;
  height: 100%;     /* Fills the remaining 'main' height */
  overflow-y: auto; /* Enable scrolling only here */
  position: relative; /* CRITICAL: Acts as the absolute anchoring boundary for the logo */
}


/* -------------------- */
/* PROJECT GRID (3 COLS) */
/* -------------------- */

/* 1. The Gallery: Container for our vertical tracks */
/* Container arrangement */
.project-gallery {
  display: grid;
  /* Tell the grid to fit as many columns as possible, 
     as long as each column is AT LEAST 320px wide. 
     If it drops below 320px, it drops a column automatically instead of squeezing content. */
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
  gap: 40px;
  width: 100%;
}

/* Individual columns layout track */
.project-column {
  display: block;
  flex-direction: column;
  gap: 20px; /* Vertical spacing between stacked projects */
  flex: 1;
  min-width: 0; /* Keeps layout calculation strict */
}

/* ------------------------------------------------------------------- */
/* FLUID LAYOUT: SMOOTH TRACK SQUEEZE ENGINE                           */
/* ------------------------------------------------------------------- */

/* 1. Set up fluid transition properties for all left-side components */
header .header-left-space,
.sidebar,
.footer-sidebar {
  transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
              padding 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
              opacity 0.6s ease,
              transform 0.6s cubic-bezier(0, 1, 0.5, 1);
              
  overflow: hidden !important;     /* Prevents text from wrapping into vertical strings */
  white-space: nowrap !important;   /* Keeps typography locked to one row during collapse */
}

/* 2. Set up matching fluid curves for the primary right-side content zones */
.header-nav,
.content,
.footer-content {
  transition: width 0.6s cubic-bezier(0, 1, 0.5, 1),
              padding 0.6s cubic-bezier(0, 1, 0.5, 1);
}

/* 3. Execute the squeeze transition when horizontal boundaries tighten (<= 1250px) */
@media screen and (max-width: 1350px) {
  header .header-left-space,
  .sidebar,
  .footer-sidebar {
    width: 0% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    opacity: 0 !important;
    transform: translateX(-30px); /* Slides slightly leftward into the screen boundary */
    border-right-width: 0px !important; /* Collapses structural divider lines */
  }

  /* Main components expand organically to fill the newly claimed viewport space */
  .header-nav,
  .content,
  .footer-content {
    width: 100% !important;
  }
  
  /* Maintain uniform safety margins on the gallery window */
  .content {
    padding: 40px 20px !important;
  }
}

/* ------------------------------------------------------------------- */
/* TOUCH DEVICES & SINGLE COLUMN BREAKPOINT: DROP FOOTER DOWNWARD     */
/* ------------------------------------------------------------------- */
@media screen and (max-width: 770px) {
  
  /* 1. Prevent parent elements from breaking viewport restrictions */
  body {
    height: 100vh !important;
    overflow: hidden !important;
  }

  /* 2. Reclaim footer space: stretch main track to the very bottom edge */
  main {
    height: calc(100vh - 50px) !important; /* Only subtracts the header now */
  }

  /* 3. Keep inner content scrolling beautifully down to the new boundary */
  .content {
    height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 30px 20px !important; /* Cozy uniform mobile breathing room */
  }

  /* 4. Complete Downward Elimination Track for Footer */
  footer {
    height: 0px !important;                 /* Collapses layout space instantly */
    transform: translateY(100%) !important; /* Glides straight down past viewable field */
    opacity: 0 !important;                  /* Fades out smoothly */
    border-top-color: transparent !important; /* Prevents residual hairline line artifact */
    pointer-events: none !important;        /* Prevents ghost clicks */
    overflow: hidden !important;
  }
}

/* -------------------- */
/* PROJECT ITEM */
/* -------------------- */
/* Container Style */

.project {
  display: inline-block;
  width: 100%;
  height: 150px;
  flex-direction: none;
  break-inside: avoid;
  justify-content: center; /* Keeps the label centered in the 160px box */
  border: none;
  text-align: center;
  overflow: visible;
  margin-bottom: 30px; /* This will now work perfectly */
  transition: height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.project-top {
    padding: 30px 0; /* Adjust this to your 'label' height */
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    transition: padding 0.3s ease;
    white-space: nowrap;
}


/* Clear out individual margins that might be causing unevenness */
.project-title, 
.project-cat {
  margin-bottom: 0 !important;
}

/* Explicit exclusion rule: only animate if .no-hover isn't attached would be::after
.project:not(.no-hover):hover {
  /* Put any scales, shifts, or color highlights here if desired *//*

/* Global exclusion override rule */
.project.no-hover {
  pointer-events: none;       /* Disables click expansions, hovers, and cursor binds */
  cursor: default !important; /* Reverts cursor physics back to your standard system layout */
}

/* ----------------- */
/* Typography Styles */
/* ----------------- */
.project-title {
  font-family: "NewEdge666", sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.project-tag {
  font-family: "NewEdge666", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
}

.project-cat {
  font-family: "NewEdge666", sans-serif;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

/* All other labels (Type, Location, Collaborators, Year) */
.project-label {
  font-family: "Libre Baskerville", serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
}

.project-label a {
  color: inherit;
  text-decoration: none; /* no underline of link */
}

.project-label a:hover {
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}
/* Italic support (automatic font swap) */
.project-tag em,
.project-title em {
  font-style: italic;
}


/*----------------*/
/* ACTIVE PROJECT */
/*----------------*/
.project.is-expanded {
    height: 510px; /* Keep your fixed height for matrix alignment */
    padding-top: 0px;    /* Remove top padding to sit closer to title */
    padding-bottom: 5px; /* Very small gap before the next project begins */
    gap: 0px;            /* Tighten internal spacing */
    justify-content: flex-start;
}

.project.is-expanded .project-expansion {
    margin-top: 10px;    /* Sits directly under project-top */
    margin-bottom: 10px; /* Small buffer before the next project title */
    flex-grow: 1;       /* This stretches the text area to the bottom of the 480px box */
    opacity: 1;
    max-height: none;   /* Disable max-height so flex-grow works */
    display: flex;      /* Ensure it's visible */
    /* This adds a slight 'shove' animation to the text itself */
    animation: stretchVelocity 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.2) forwards;
}

.fetched-text {
    width: 100%;
    height: 100%;
    overflow-y: auto; /* RE-ENABLE SCROLLING HERE */
    padding: 0 20px;
    width: 400px;
    
    /* Hide scrollbars but keep functionality */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.fetched-text::-webkit-scrollbar {
    display: none;
}


/* 4. Squash and Stretch Velocity Keyframes */
@keyframes stretchVelocity {
    0% {
        transform: scaleY(0.5); /* Start 'squashed' at the top */
        opacity: 0;
    }
    70% {
        transform: scaleY(1.05); /* 'Stretch' past the final boundary */
    }
    100% {
        transform: scaleY(1); /* Settle at final scale */
        opacity: 1;
    }
}

@keyframes textAppear {
    0% { transform: scaleY(0.8); transform-origin: top; }
    70% { transform: scaleY(1.05); }
    100% { transform: scaleY(1); }
}

/* Container for the text that allows independent scrolling */
.project-expansion {
  /* Ensure display: flex is constant to allow animation */
  display: flex !important; 
  flex-direction: column;
  align-items: center;
  
  /* This creates the 'wipe' effect */
  overflow: hidden; 
  max-height: 0; 
  opacity: 0;
  
  /* Dedicated closing wipe transition */
  transition: 
    max-height 0.6s cubic-bezier(0.19, 1, 0.22, 1),
    opacity 0.3s ease;
  
  pointer-events: none;
}

.project-expansion::-webkit-scrollbar {
    display: none;
}
.img-button {
    cursor: none;
    margin-top: 25px;
    display: inline-block;
}

.img-button:hover {
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

/* Custom Scrollbar for a "minimal" look */
.project-expansion::-webkit-scrollbar {
    width: 2px;
}
.project-expansion::-webkit-scrollbar-thumb {
    background: #000;
}

.project.is-expanded .project-expansion {
  max-height: 390px; /* The height of the text area */
  opacity: 1;
  pointer-events: auto;
}
.project.is-expanded .project-top {
    padding-top: 20px;
    padding-bottom: 20px;
}

/*---------*/
/* OVERLAY */
/*---------*/

.media-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; 
    height: 100vh;
    /* Lower opacity (0.7) lets the website show through */
    background: rgba(241, 236, 220, 0.5); 
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: none; 
}

.centered-media, 
video.centered-media {
    max-width: 75%;
    max-height: 75vh;
    border: none !important;
    box-shadow: none !important;
    cursor: none !important; /* Keeps your custom cursor logic */
    outline: none;           /* Removes the blue focus box on videos */
}

/* For PDF support */
iframe.centered-media {
    width: 80%;
    height: 80vh;
    border: none;
}
.media-overlay .close {
    position: absolute;
    top: 20px; right: 20px;
    font-family: "NewEdge666";
    cursor: none;
}

/* MOUSE CURSOR */
/* -------------------- */
/* CUSTOM DATA CURSOR */
/* -------------------- */

body {
  cursor: none;
}

#data-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-6px, -6px);
  display: flex;
  align-items: top;
}

/* Cursor Dot */
.cursor-dot {
  width: 12px;
  height: 12px;
  background: rgb(0,255,0);
  border: 0px solid white;
  border-radius: 50%;
  flex-shrink: 0;
  transition:
    background 0.2s ease,
    border 0.2s ease,
    transform 0.2s ease;
}
.cursor-hover .cursor-dot {
  background: transparent;
  border: 1.5px solid;

  transform: scale(1.4);
}

/* Data box */
.cursor-data {
  
  backdrop-filter: blur(3px);
  padding: 2px 2px;
  font-family: "Libre Baskerville", serif;
  font-size: 6px;
  line-height: 1.4;
  white-space: nowrap;
  margin-left: 6px;    /* Moves the box to the right of the dot */
  margin-top: -2px;
  
}

/* HIDE ALL SYSTEM CURSORS */

a, 
button, 
.img-button, 
.project, 
[onclick],
header,
.sidebar,
footer {
  cursor: none;
}


/* 1. Target the network-info container and its rows */
#network-info, 
#network-info .data-row,
#network-info .data-point {
    font-family: "Libre Baskerville", serif;
    font-size: 10px;
    line-height: 1.4;
}

/* 2. Ensure the labels inside the network info are also Baskerville */
#network-info .data-label {
    font-family: "Libre Baskerville", serif;
    font-weight: 600;
}

/* -------------------------------------------------- */
/* LOGO TEXT LINK RESET */
/* -------------------------------------------------- */

.logo-link {
  text-decoration: none;   /* Removes the default underline asset */
  color: inherit;          /* Inherits your absolute black or green text color */
  font-family: inherit;    /* Maintains the Flecha Serif font metrics */
  font-weight: inherit;
  display: inline-block;
  
  /* CRITICAL: Ensures your custom blue dot cursor operates over it */
  cursor: none !important; 
}

/* Optional: If you want a clean hover feedback line on the logo text */
.logo-link:hover {
  text-decoration: none;   /* Keeps it clean, or change to line-through to match nav buttons */
}
/* ======================================================= */
/* DEVICE INPUT DETECTION: HIDE CURSOR ON TRUE TOUCHSCREENS*/
/* ======================================================= */

@media (pointer: coarse) {
.custom-cursor,
  .cursor-dot,
  .cursor-data {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
}

/* ------------------------------------------------------------- */
/* RESPONSIVE LAYOUT BREAKPOINT (< 770px)                        */
/* ------------------------------------------------------------- */
@media screen and (max-width: 770px) {
    /* Dismantle the grid split and convert to a centered column stack */
    .lander-container {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        padding: 0 20px;
    }

    /* Make column containers transparent so lines can interlace */
    .column-static, 
    .column-cycling {
        display: contents !important;
    }

    /* Scale text down and allow natural line breaks */
    .lander-line {
        font-size: clamp(16px, 4.5vw, 20px) !important; /* Adjust font size smaller */
        line-height: 1.4 !important;
        white-space: normal !important;
        padding: 0 !important;
        margin: 2px 0 !important;
        width: 100%;
    }

    /* Interlace lines step-by-step using Flex Order:
       Static Line (Odd) -> Cycling Line (Even)
    */
    .column-static .lander-line:nth-child(1) { order: 1; }
    .column-cycling .lander-line:nth-child(1) { 
        order: 2; 
        margin-bottom: 18px !important; /* Generates a visual gap after the phrase finishes */
    }
    
    .column-static .lander-line:nth-child(2) { order: 3; }
    .column-cycling .lander-line:nth-child(2) { 
        order: 4; 
        margin-bottom: 18px !important; 
    }
    
    .column-static .lander-line:nth-child(3) { order: 5; }
    .column-cycling .lander-line:nth-child(3) { 
        order: 6; 
        margin-bottom: 18px !important; 
    }
    
    .column-static .lander-line:nth-child(4) { order: 7; }
    .column-cycling .lander-line:nth-child(4) { order: 8; }
}
  