/* 1. CORE SETUP & RESET */
* {
  box-sizing: border-box;
  /* outline: 1px solid red; */
}

html {
  scroll-behavior: smooth;
}

section {
  padding: 4em 0;
}

@font-face {
  font-family: "editorial";
  src: url(fonts/editorial.otf) format("opentype");
}

body {
  font-family: "IBM Plex Mono", monospace;
  font-size: 18px;
  line-height: 1.65;
  margin: 0;
  background: #f1f1f1;
  color: var(--black);
  overflow-x: hidden;
}

h3 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.2em;
  line-height: 1.4;
  color: var(--black);
  font-weight: 400;
  margin-bottom: 0.5em;
}

:root {
  --blue: #0033ff;
  --light-blue: #66a3ff;
  --dark-blue: #001a99;
  --black: #090c08;
}

/* SCREENSAVER */
.spawned-image {
  /* width: 10%;
  height: 10%; */
  position: fixed;
  object-fit: contain;
  z-index: 999;
  pointer-events: none;
  animation:
    slowPop 0.5s ease-out,
    eyeBlinkClose 3s ease-in-out 0.5s infinite;
}

@keyframes slowPop {
  from {
    opacity: 0;
    transform: scale(0.2) rotate(-10deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes eyeBlinkClose {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 1; /* Fully open */
  }
  45% {
    transform: scaleY(1);
    opacity: 1; /* Stay open for most of the loop */
  }
  50% {
    transform: scaleY(0.01);
    opacity: 0; /* Snap shut to a thin line */
  }
  55% {
    transform: scaleY(1);
    opacity: 1; /* Snap back open */
  }
}

/* @keyframes stampBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; } 
} */

/* Global Blackout Text Utility */
.text {
  background-color: #0000ff;
  color: #0000ff;
  padding: 0.15em 0.2em;
  transition: all 0.3s ease;
}

.text.visible {
  background-color: transparent;
  color: var(--black);
}

/* 2. NAVIGATION & MENU */

#main-logo-badge a {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease;
}

#main-logo-badge a:hover {
  transform: scale(1.02);
}

#main-logo-badge {
  pointer-events: auto !important;
}

#menu-circle {
  position: absolute;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
}

#menu-circle {
  position: absolute;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
}

#menu-circle a {
  padding-right: 5px;
  padding-left: 5px;
}

.menu-item {
  position: absolute;
  color: var(--blue);
  transition: none;
  z-index: 1000;
  pointer-events: auto;
  background: #f1f1f1;
}

.menu-item a {
  text-decoration: none;
  color: inherit;
  display: inline-block; /* Or block */
  pointer-events: auto; /* Double-down on enabling clicks */
}

.menu-item a:hover {
  text-decoration: underline;
  text-decoration-color: var(--blue);
}

/* 3. HERO SECTION */
.hero {
  position: relative;
  height: 100vh;
  padding: 4rem;
  overflow: hidden;
}

.hero-center {
  position: absolute;
  inset: 0;
  display: grid;
  /* place-items: center; */
  text-align: center;
  grid-template-rows: 1fr auto 1fr;
  align-items: center; /* Vertically centers content within those rows */
  justify-items: center;
}

/* Ensure children land in the right rows */
/* .hero-meta {
  grid-row: 1;
  align-self: end;
  padding-bottom: 2rem;
} */
.hero h1 {
  grid-row: 2;
}
/* .hero-footer {
  grid-row: 3;
  align-self: start;
  padding-top: 2rem;
} */

.hero h1 {
  font-family: "editorial", serif;
  font-size: clamp(3em, 6vw, 6em);
  font-weight: 500;
  line-height: 1.05;
  color: var(--blue);
  margin: 2rem 0;
}

.hero-meta,
.hero-footer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 5;
  gap: 0.3em;
  font-family: "IBM Plex Mono", monospace;
  color: var(--blue);
}

.hero-meta {
  top: 16%;
}

.hero-meta-text {
  background-color: #f1f1f1;
  box-shadow: 0 0 0 10px #f1f1f1;
  opacity: 0.9;
  background-blend-mode: overlay;
  /* padding: 0.5em; */
}

.hero-footer {
  bottom: 17%; /* Stays relative to bottom height */
}

.badge-container {
  position: absolute;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 15em;
  line-height: 0;
  background-color: transparent !important;
  box-shadow: none !important;
  z-index: 2000;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

.badge-svg-file {
  width: 100%;
  padding: 3px 5px;
  background-color: #f1f1f1;
  height: auto;
  display: block;
}

/* Floating Words (Radial Circle)*/
.word {
  position: absolute;
  font-size: 1.2rem;
  color: var(--black);
}

/* Outer Circle (Reform) */
.r1 {
  top: 16%;
  left: 39%;
}
.r2 {
  top: 19%;
  left: 32%;
}
.r3 {
  top: 23%;
  left: 25%;
}
.r4 {
  top: 28%;
  left: 19%;
}
.r5 {
  top: 34%;
  left: 13.5%;
}
.r6 {
  top: 39%;
  left: 10%;
}
.r7 {
  top: 44%;
  left: 8%;
}
.r8 {
  top: 49%;
  left: 7%;
}
.r9 {
  top: 54%;
  left: 8%;
}
.r10 {
  top: 59%;
  left: 10%;
}
.r11 {
  top: 64%;
  left: 13.5%;
}
.r12 {
  top: 70%;
  left: 19%;
}
.r13 {
  top: 75%;
  left: 25%;
}
.r14 {
  top: 79%;
  left: 32%;
}
.r15 {
  top: 82%;
  left: 39%;
}
.r16 {
  top: 16%;
  right: 39%;
}
.r17 {
  top: 19%;
  right: 32%;
}
.r18 {
  top: 23%;
  right: 25%;
}
.r19 {
  top: 28%;
  right: 19%;
}
.r20 {
  top: 34%;
  right: 13.5%;
}
.r21 {
  top: 39%;
  right: 10%;
}
.r22 {
  top: 44%;
  right: 8%;
}
.r23 {
  top: 49%;
  right: 7%;
}
.r24 {
  top: 54%;
  right: 8%;
}
.r25 {
  top: 59%;
  right: 10%;
}
.r26 {
  color: #0033ff;
  top: 64%;
  right: 13.5%;
}
.r27 {
  top: 70%;
  right: 19%;
}
.r28 {
  top: 75%;
  right: 25%;
}
.r29 {
  top: 79%;
  right: 32%;
}
.r30 {
  top: 82%;
  right: 39%;
}

/* Middle Circle (Resist) */
.s1 {
  top: 23%;
  left: 40%;
}
.s2 {
  top: 26%;
  left: 34%;
}
.s3 {
  top: 29%;
  left: 29%;
}
.s4 {
  top: 33%;
  left: 26%;
}
.s5 {
  top: 37%;
  left: 24%;
}
.s6 {
  top: 41%;
  left: 22%;
}
.s7 {
  top: 45%;
  left: 21%;
}
.s8 {
  top: 49%;
  left: 20.5%;
}
.s9 {
  top: 53%;
  left: 21%;
}
.s10 {
  top: 57%;
  left: 22%;
}
.s11 {
  top: 61%;
  left: 24%;
}
.s12 {
  top: 65%;
  left: 26%;
}
.s13 {
  top: 69%;
  left: 29%;
}
.s14 {
  top: 72%;
  left: 34%;
}
.s15 {
  top: 75%;
  left: 40%;
}

/* Inner Circle (Reflect) */
.f1 {
  top: 23%;
  right: 40%;
}
.f2 {
  top: 26%;
  right: 34%;
}
.f3 {
  color: #0033ff;
  top: 29%;
  right: 29%;
}
.f4 {
  top: 33%;
  right: 26%;
}
.f5 {
  top: 37%;
  right: 24%;
}
.f6 {
  top: 41%;
  right: 22%;
}
.f7 {
  top: 45%;
  right: 21%;
}
.f8 {
  color: #0033ff;
  top: 49%;
  right: 20.5%;
}
.f9 {
  top: 53%;
  right: 21%;
}
.f10 {
  top: 57%;
  right: 22%;
}
.f11 {
  top: 61%;
  right: 24%;
}
.f12 {
  top: 65%;
  right: 26%;
}
.f13 {
  top: 69%;
  right: 29%;
}
.f14 {
  top: 72%;
  right: 34%;
}
.f15 {
  top: 75%;
  right: 40%;
}

/* 5. THEME DISPLAY (REFLECT, RESIST, REFORM) */

@keyframes blink-flicker {
  0% {
    opacity: 0;
    background-color: var(--blue);
  }
  50% {
    opacity: 1;
    color: red;
  }
  100% {
    opacity: 0;
    color: var(--blue);
  }
}

/* @-webkit-keyframes text-focus-in{
  0%{-webkit-filter:blur(12px);filter:blur(12px);opacity:0}
  100%{-webkit-filter:blur(0);filter:blur(0);opacity:1}
} */

@keyframes text-focus-in {
  0% {
    -webkit-filter: blur(12px);
    filter: blur(12px);
    opacity: 0;
  }
  100% {
    -webkit-filter: blur(0);
    filter: blur(0);
    opacity: 1;
    backdrop-filter: blur(10px);
  }
}

.theme-display {
  background-color: #f1f1f1;
  padding-top: 5%;
  padding-bottom: -10%;
  text-align: center;
  position: relative;
  z-index: 10;
  width: 100%;
  /* border: 1px red solid;  */
}

.theme-header {
  position: relative;
  z-index: 10;
  margin-bottom: 0;
}

.theme-visual-zone {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 600px;
  /* height: 600px;  */
  /* margin: 0 auto; */
  /* border: 1px solid red; */
  margin-top: -6em;
  margin-bottom: -6em;
}

.theme-container {
  max-width: 1100px;
  margin: 0 auto;
}

.theme-main-title {
  color: var(--blue);
  font-family: "editorial", serif;
  font-size: 3em;
  line-height: 1.2;
  font-weight: 200;
  padding: 0;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.theme-intro-text {
  color: var(--black);
  font-family: "IBM Plex Mono", monospace;
  text-align: center;
  font-size: 1em;
  max-width: 550px;
  margin: 0 auto 1em auto;
  position: relative;
  /* padding: 0 10em 0; */
  /* margin-bottom: 5rem; */
}

.theme-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.col-head {
  color: var(--blue);
  font-family: "editorial", serif;
  font-size: 2em;
  line-height: 0.9;
  font-weight: 200;
  margin: 0;
  padding-bottom: 0.25em;
  /* margin-bottom: 1em; */
}

.col-desc {
  color: var(--black);
  font-family: "IBM Plex Mono", monospace;
  font-size: 1em;
  line-height: 1.45;
  max-width: 280px;
  margin: 0 auto;
}

/* PROGRAM */
/* efeitoEscada */
.program1 {
  padding-left: 0px !important;
}
/* .program2{
  padding-left:25px !important;
} */

/* undropped*/
.programGeral {
  margin-top: 20px;
}

.programDiv {
  border-bottom: 1px solid rgba(0, 51, 255, 0.2);
  padding: 1rem 0;
}

.programUndropped {
  display: flex;
  align-items: flex-start;
  list-style-type: none;
  /* margin-top: 5px;
  margin-bottom: 5px; */
  padding: 0;
  margin: 0;
  width: 100%;
}
.programBold {
  flex-grow: 1;
  font-weight: bold;
}
.programCategory {
  width: 120px;
  flex-shrink: 0;
  text-transform: uppercase;
  color: #0000ff;
}

.programUndropped li:last-child {
  margin-left: auto;
}

.programUndropped li:nth-child(2) {
  width: 200px; /* FIXED WIDTH */
  flex-shrink: 0;
  color: var(--black);
}

li {
  padding-right: 30px;
}
/* ul :last-child{
  color: #0000ff;
  padding-right: 0px !important;
  margin-left: -10px !important; 
  font-weight: 600;
} */
ul button {
  background-color: transparent;
  border-width: 0cap;
}
button:hover {
  cursor: pointer;
  text-decoration: underline;
}
/* dropped */
.programImg {
  display: inline;
  width: 35%;
  height: 35%;
  filter: contrast(1.4);
  padding-right: 40px;
}
.programImg div {
  overflow: hidden;
}
.programImg img {
  width: 100%;
}
/* .programImg figcaption{
  height: 100%;
} */

.programText {
  display: inline;
  width: 60%;
  margin: 0;
}
.programDropped {
  display: flex;
  margin-top: 30px;
  margin-bottom: 30px;
}

/* classes para js */
.closed {
  display: none;
}
.open {
  display: block;
}

/* ==========================================================================
   PLURAL PRACTICES
   ========================================================================== */

.plural-practices {
  padding: 6em 0;
  background-color: #f1f1f1;
  position: relative;
  overflow: visible;
}

.practices-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

.practices-title {
  font-family: "editorial", serif;
  font-size: 3em;
  line-height: 1.2;
  color: var(--blue);
  font-weight: 400;
  margin-bottom: 0.5em;
}

.practices-layout {
  display: flex;
  gap: 3.5em; /* Space between text and images */
  align-items: flex-start;
  position: relative;
}

.practices-column-text {
  max-width: 600px;
  flex: 1; /* Takes up remaining space */
  z-index: 2;
  font-family: "IBM Plex Mono", monospace;
  font-size: 1em;
  line-height: 1.65;
  color: var(--black);
  position: relative;
}

.practices-column-text p {
  margin-bottom: 1.8rem;
  text-align: left;
}

/* --- Duotone Image Styling --- */
.image-wrapper {
  flex: 0 0 350px; /* Don't grow, don't shrink, stay 350px wide */
  position: relative; /* Changed from absolute */
  z-index: 1;
}

duotone-item {
  margin: 0 0 2.5rem 0; /* Adds space below each image/caption pair */
  width: 100%;
}
.duotone-item:last-child {
  margin-bottom: 0;
}

.img-box {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.plural-practices.is-scrolling .img-box img {
  filter: blur(20px) grayscale(100%) brightness(0.8);
}
.is-scrolling .img {
  filter: blur(20px);
}

.img-box img {
  width: 100%;
  height: auto;
  display: block; /* Removes tiny gap under images */
  filter: grayscale(100%) contrast(1.4);
  transition:
    filter 0.3s ease,
    transform 0.3s ease;
}
.img-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0033ff; /* The blue color */
  mix-blend-mode: screen; /* The duotone effect */
  pointer-events: none;
}

.image-caption {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  color: #0033ff;
  margin-top: 8px;
  line-height: 1.65;
  text-align: left;
}

/* TEST */

/* The container for the redaction */
.practices-column-text p {
  position: relative;
  display: inline-block;
  color: var(--black);
  transition: color 0.3s;
}

/* The "Blackout" bar */
.practices-column-text p::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%; /* Start empty */
  height: 100%;
  background-color: var(--blue); /* Or #0033ff if you want blue redaction */
  transition: width 0.7s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

/* When the 'redacted' class is added via JS */
.practices-column-text p.redacted::after {
  width: 100%;
}

.practices-column-text p.redacted {
  color: transparent; /* Hide text under the bar */
}

.practices-column-text p span {
  background-color: transparent;
  color: var(--black); /* Visible text when stationary */

  /* Remove the background-size and background-image properties from before */
  transition:
    background-color 0.1s ease,
    color 0.1s ease;

  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;

  /* Keep the padding to ensure the blocks have 'weight' around the words */
  padding: 2px 4px;
  margin: 0 -4px;
}

/* When the container is in 'scrolling' mode */
.is-scrolling p span {
  background-color: var(--blue); /* Or #111 for black */
  color: transparent; /* Hides the text instantly */
}
.is-scrolling figcaption {
  width: auto;
  background-color: var(--blue);
  color: transparent;
}

/* Optional: Make the marker blue instead of black */
.is-scrolling p span {
  background-image: linear-gradient(#0033ff, #0033ff);
}
*/

/* END TEST */


.plural-practices {
  padding: 120px 0;
  position: relative;
}

.practices-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

/* ==========================================================================
   MOBILE TEAM REFINEMENT
   ========================================================================== */

.team-section {
  background-color: #f1f1f1;
  padding-top: 8em;
  padding-bottom: 0;
}

.team-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.team-title {
  font-family: "editorial", serif;
  font-size: 3em;
  line-height: 1.2;
  color: #0033ff;
  font-weight: 400;
  margin-bottom: 0.5em;
  color: var(--blue);
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem 2rem;
}

.team-member {
  flex: 0 0 calc(50% - 1rem); /* Precisely half the width minus half the gap */
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* 1. Name: Editorial, Blue */
.member-name {
  font-family: "editorial", serif;
  font-size: 1.8em;
  color: var(--blue);
  line-height: 1.1;
}

/* 2. Affiliation: IBM Plex, Small, Blue, All Caps */
.member-affiliation {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9em;
  color: var(--blue);
  /* text-transform: uppercase; */
  letter-spacing: 1px;
  /* margin-top: 0.3rem; */
}

/* 3. Role: Black, Body Size */
.member-role {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem; /* Matches your 17px body size */
  color: var(--black);
  margin-top: 0.5rem;
}

/* ==========================================================================
   MOBILE TEAM REFINEMENT
   ========================================================================== */
@media (max-width: 768px) {
  .team-grid {
    flex-direction: column; /* Stacks to a single column on phones */
    gap: 3rem;
  }

  .team-member {
    flex: 0 0 100%;
  }

  .member-name {
    font-size: 1.75rem; /* Slightly smaller for mobile screens */
  }
}

/* ==========================================================================
   7. PREVIOUS EDITIONS (ANIMATION) LARA
   ========================================================================== */

.previous-editions {
  position: relative;
  min-height: 800px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  contain: paint;
  background-color: #f1f1f1;
  /* border: 2px solid red;  */
}

.editions-title {
  position: absolute;
  width: 300px;
  margin: 0;

  z-index: 10;
  color: #0033ff;
  font-family: "editorial";
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 300;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Desktop only media query to make previous editions break into 2 lines */

@media (min-width: 769px) {
  .editions-title {
    /* Set a width that forces the wrap */
    width: 300px;
    max-width: 8ch;
    margin: 0 auto;
    line-height: 1.1;
    text-align: center;
    word-wrap: normal;
    overflow-wrap: normal;
    color: var(--blue);

    /* Keep your existing centering logic */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .editions-portal {
    position: relative;
    width: 100%;
    max-width: 1100px;
    min-height: 600px;
    margin: 2rem auto;
    background-color: var(--blue); /* The Blue inside the Eye */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    /* The Eye Shape (Desktop Only) */
    /* clip-path: ellipse(50% 45% at 50% 50%); */
  }

  .editions-eye-cluster {
    position: relative; /* Must be relative to stay in the flex flow */
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .editions-eye-cluster:hover {
    animation-play-state: paused;
  }
}

.edition-link {
  position: absolute;
  text-decoration: none;
  color: var(--black);
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  transition:
    color 0.2s,
    transform 0.1s ease-out;
  /* font-weight: bold; */
}

.edition-link:hover {
  color: var(--blue);
  font-weight: bold;
  text-decoration: underline;
}

.eye-lid.top {
  transform: translateY(-100%);
}
.eye-lid.bottom {
  transform: translateY(100%);
}

/* ==========================================================================
   BASE DESKTOP FOOTER
   ========================================================================== */

.main-footer {
  padding: 6rem 0 3rem;
  border-top: 1px solid #ddd;
  background-color: var(--blue);
  color: #f1f1f1;
  -webkit-font-smoothing: antialiased;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  perspective: 1000;
  -webkit-perspective: 1000;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.footer-logo img {
  height: 2em; /* Adjust based on your SVG proportions */
  width: auto;
}

.footer-contact {
  text-align: right;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
  color: #f1f1f1;
  padding-bottom: 2em;
}

.footer-text {
  text-align: left;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: #f1f1f1;
  padding: 1.5em 0 1.5em;
}

.footer-text-top {
  text-align: left;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: #f1f1f1;
}

.footer-links {
  margin-top: 1rem;
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
}

.footer-links a {
  color: #f1f1f1f1;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-divider {
  border: 0;
  border-top: 1px solid #f1f1f1;
  margin: 2rem 0;
}

.footer-logos-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  align-items: center;
  padding: 1.5em 0 0;
}

.partner-logo img {
  width: 100%;
  max-width: 150px;
  height: auto;
  /* Poetic touch: Logos are grayscale/blue until hovered */
  filter: grayscale(100%) opacity(0.6);
  transition: all 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.partner-logo:hover img {
  filter: grayscale(0%) opacity(1);
  -webkit-font-smoothing: antialiased;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* ==========================================================================
   MOBILE FOOTER
   ========================================================================== */
@media (max-width: 768px) {
  .footer-logo img {
    height: 1.3em; /* Adjust based on your SVG proportions */
    width: auto;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .footer-contact {
    text-align: left;
  }

  .footer-links {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .footer-logos-row {
    grid-template-columns: repeat(2, 1fr); /* 2x2 grid on mobile */
    gap: 2.5em;
  }
}

@media (max-width: 1024px) {
  .practices-layout {
    /* flex-direction: column;  */
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .practices-column-text {
    display: contents;
  }

  /* intersperse images and text on mobile only for .practices-column */
  .practices-column-text p:nth-child(1) {
    order: 1;
  } /* Para 1 */
  .image-wrapper figure:nth-child(1) {
    order: 2;
  } /* Image 1 */

  .practices-column-text p:nth-child(2) {
    order: 3;
  } /* Para 2 */
  .image-wrapper figure:nth-child(2) {
    order: 4;
  } /* Image 2 */

  .practices-column-text p:nth-child(3) {
    order: 5;
  } /* Para 3 */
  .image-wrapper figure:nth-child(3) {
    order: 6;
  } /* Image 3 */

  .practices-column-text p:nth-child(4) {
    order: 7;
  } /* Para 4 */

  .image-wrapper {
    display: contents;
    flex: 0 0 auto;
    width: 100%;
    max-width: 500px; /* Prevents images from getting too huge on tablets */
    margin: 0 auto;
  }
}

@media (max-width: 900px) {
  .quote-grid,
  .theme-columns {
    grid-template-columns: 1fr;
  }
}

/* SCROLLING POST HERO */

.quote-section {
  position: relative;
  height: 200vh;
  /* min-height: 200vh;  */
  /* padding: 3em 4em 0; */
  /* padding: 0 3%; */
  /* padding-top: 3%; */
  padding-bottom: 5%;
  padding-left: 10%;
  padding-right: 10%;
  z-index: 1;
}

/* 2. The container that stays visible */
.quote-sticky-container {
  position: sticky;
  top: 0;
  /* min-height: 100vh; */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 1400px;
  padding-top: 10%;
  margin: 0 auto;
  /* font-size: clamp(1.4vw, 1.5vw, 1.3vw); */
  font-size: calc(8px + 0.75vw);
  /* line-height: calc(1.2em + 0.5vw); */
}

.quote-header span {
  position: absolute;
  top: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;

  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: "IBM Plex Mono", monospace;
  font-weight: bold;
  font-size: 1.2rem;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;
}

.quote-header span.active {
  opacity: 1;
  visibility: visible;
}

/* QUOTE SECTION AFTER HEADER */

/* 2. Fix the Quote Section height and stickiness */
/* .quote-section {
  position: relative;
  height: 300vh; 
  background-color: #f1f1f1;
} */

/* .quote-sticky-container {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding: 15vh 10%;
  max-width: 1400px;
  margin: 0 auto;
}  */

/* .quote-section {
  position: relative;
  padding: 6rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
  height: auto;
}  */

/* .quote-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
} */

/* .quote-header button {
  background: none;
  color: black;
  padding: 8px 10px;
  cursor: pointer;
  font-family: "editorial", serif;
  border: none;
  font-size: 1.5rem;
  transition: color 0.2s;
} */

/* .quote-header button:hover {
  color: var(--blue);
} */

/* 3. Progress Bar Styling */
.scroll-progress-container {
  width: 2px;
  height: 80px;
  background: rgba(0, 51, 255, 0.1);
  margin-bottom: 20px;
}

#quote-progress-bar {
  width: 100%;
  height: 0%;
  background: #0033ff;
  transition: height 0.1s linear;
}

/* 4. Ensure Vertical Labels don't overlap */
.quote-header {
  width: 80px;
  flex-shrink: 0;
  position: relative;
  height: 200px; /* Give the vertical labels space to swap */
}

.quote-header span {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  transition: opacity 0.4s ease;
  white-space: nowrap;
  font-weight: bold;
}

.quote-header span.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   MOBILE & TABLET REFINEMENTS
   ========================================================================== */

@media (max-width: 1024px) {
  .editions-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 1em 0;
  }
  .theme-content-block h2 {
    text-align: center !important;
  }
  .theme-content-block p {
    text-align: center;
  }

  .theme-content-block {
    display: flex !important;
    flex-direction: column;
    align-items: center;
  }
  .theme-display .words-layer {
    display: none !important; /* Hides the radial words on mobile */
  }

  .theme-eye-portal {
    display: none !important;
  }

  /* TEST */
  .theme-visual-zone {
    height: auto !important;
    margin-top: 0 !important;
    padding: 2rem 0;
  }

  .theme-center-stage {
    position: static !important;
    transform: none !important;
    display: flex;
    flex-direction: column;
    gap: 3rem; /* Spacing between Reflect, Resist, and Reform */
    max-width: 100%;
    min-height: 0;
  }

  /* 3. Force all blocks to stay visible and sit in the flow */
  .theme-content-block {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-align: left; /* Optional: Align text left for easier reading on phones */
    animation: none !important; /* Disable the blink effect */
  }

  .theme-container {
    padding: 0 10%;
    width: 100%;
  }

  /* END TEST */

  .col-desc {
    text-align: left;
    margin: 0;
  }

  .theme-header {
    margin-bottom: 0;
    /* padding: 0 1em 0; */
  }

  .theme-intro-text {
    text-align: left;
    padding: 0 0 0;
  }

  .words-layer {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    /* gap: 15px; */
    gap: 8px 15px;
    padding: 20px;
    height: 100vh;

    /* Place it behind everything */
    position: absolute;
    inset: -10%;
    z-index: 1;
    opacity: 0.6;
    pointer-events: none;

    animation: drift 10s linear infinite;
  }

  @keyframes drift {
    from {
      transform: translateY(0);
    }
    to {
      transform: translateY(-50%);
    }
  }

  /* 2. Neutralize the individual word positions */
  .word {
    /* This 'all: unset' is a shortcut to kill all desktop coordinates (top, left, etc.) */
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;

    /* Ensure they are visible and sized correctly */
    display: inline-block !important;
    font-size: 0.9em !important;
    line-height: 0.7 !important;
    color: var(--black) !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
  }

  h2,
  .theme-main-title,
  .col-head,
  .practices-title,
  .editions-title {
    font-size: 2.2rem !important; /* Forces the size across all sections */
    line-height: 1.2;
    text-align: left; /* Ensures they all align to the left on mobile */
    /* margin-bottom: 1.5rem; */
  }

  /* 1. HERO SECTION REFINEMENTS */
  .hero {
    padding: 2rem;
  }

  /* Hide the exploding words entirely */
  /* .words-layer {
    display: none !important;
  } */

  /* Center the title more aggressively since the 'halo' is gone */

  .hero-center {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center;
    align-items: center !important;
    height: 100vh;
    padding: 20px;
    position: relative;
  }

  .hero h1 {
    display: inline-block !important;
    font-size: 2.75rem;
    background-color: #f1f1f1;
    opacity: 0.9;
    background-blend-mode: overlay;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    line-height: 1.2;
    z-index: 2;
    margin: 0;
  }

  /* Hide the radial 'word-layer' on very small screens to keep it clean */
  /* Or reduce their font-size if you want to keep the 'dust' effect */
  .word {
    font-size: 0.8rem;
    opacity: 0.5;
  }

  #menu-circle {
    display: none !important;
  }

  /* 2. QUOTE SECTION (DISABLE STICKY ON MOBILE) */
  .quote-section {
    /* Force the section to only be as tall as its content */
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 3rem 1.5rem !important;
    /* Ensure it doesn't try to overlap anything */
    display: block !important;
  }

  .quote-sticky-container {
    position: relative !important;
    height: auto !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    overflow: visible !important;
    font-size: 1em !important;
  }

  /* 2. Style labels as 'Tabs' */
  .quote-header {
    width: 100% !important;
    height: auto !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 51, 255, 0.2);
    padding-bottom: 10px;
  }

  .quote-header span {
    position: static !important;
    opacity: 0.4 !important; /* Dim unselected tabs */
    visibility: visible !important;
    writing-mode: horizontal-tb !important;
    transform: none !important;
    font-size: 0.75rem !important;
    cursor: pointer;
    pointer-events: auto; /* Ensure they are clickable */
    transition:
      opacity 0.3s ease,
      color 0.3s ease;
  }

  .quote-header span.active {
    opacity: 1 !important;
    color: var(--blue) !important;
    text-decoration: underline;
    text-underline-offset: 8px;
  }

  /* Hide progress bar on mobile as it's not scroll-based anymore */
  .scroll-progress-container {
    display: none;
  }

  /* 3. PLURAL PRACTICES (STACKING) */
  .practices-layout {
    flex-direction: column;
    gap: 2rem;
  }

  .practices-column-text {
    max-width: 100%;
  }

  .image-wrapper {
    flex: 0 0 auto;
    width: 100%;
  }

  /* 3. PREVIOUS EDIITIONS (STACKING) */

  .previous-editions {
    height: auto !important;
    padding: 6rem 1.5rem; /* Adjusted padding for better mobile edge alignment */
    display: block; /* Ensure it behaves as a normal block */
  }

  .rotating-links-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* CRITICAL: Valid flexbox property for left alignment */
    gap: 1.5rem;
    height: auto !important;
    width: 100%;
  }

  .edition-link {
    position: static !important;
    transform: none !important;
    font-size: 1.1rem;
    text-align: left; /* Aligns the text itself left */
    display: block;
    border-bottom: 1px solid rgba(0, 51, 255, 0.2);
    padding-bottom: 5px;
    width: 100%; /* Spans the width for easier tapping */
  }

  .editions-title {
    position: static !important;
    transform: none !important;
    margin-bottom: 2rem;
    text-align: left; /* Ensures the 'Previous Editions' text is left-aligned */
  }
}

/* Theme stuff */

.theme-word {
  position: absolute;
  font-size: 1.2rem;
  color: rgba(9, 12, 8, 0.3); /* Slightly faded so text is readable */
  pointer-events: none;
  z-index: 1;
  transition: transform 0.1s ease-out;
}

/* TEST02 */

.theme-center-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 600px; /* Limits width to fit inside the circle */
  /* margin: 0 auto; */
  min-height: 400px; /* Creates a stable vertical box for the blocks to sit in */
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-content-block {
  position: absolute;
  /* 1. Center the block exactly */
  top: 50%;
  left: 50%;
  transform: translate(
    -50%,
    -50%
  ); /* This pulls the block back by half its own height/width */

  /* 2. Fix the alignment */
  width: 100%;
  text-align: center; /* Ensures the H2 and P tags inside are centered */

  /* 3. Visibility logic */
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.theme-content-block.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) translateY(0);
  animation: text-focus-in 0.4s ease-out;
}

/* Piscar */
.theme-display {
  position: relative;
  /* height: 400vh; */
}

.theme-container {
  /* position: sticky; */
  top: 0;
  height: auto;
  display: flex;
  flex-direction: column;
}

.theme-visual-zone {
  position: relative;
  overflow: hidden;
  /* clip-path: ellipse(50% 48% at 50% 50%); */
}

.theme-eye-portal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

.eye-lid {
  position: absolute;
  left: 0;
  width: 100%;
  height: 52%;
  background: #f1f1f1;
  transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}

.eye-lid.top {
  top: 0;
  transform: translateY(-100%);
  clip-path: ellipse(100% 100% at 50% 0%);
}

.eye-lid.bottom {
  bottom: 0;
  transform: translateY(100%);
  clip-path: ellipse(100% 100% at 50% 100%);
}

body.blinking .eye-lid.top,
body.blinking .eye-lid.bottom {
  transform: translateY(0);
}

.theme-content-block {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;

  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 50;
  text-align: center;
}

.theme-content-block.active {
  display: block;
  opacity: 1;
}

/* test for team section redaction */
/* Team Section Redaction */
/* .team-section.is-scrolling .member-name,
.team-section.is-scrolling .member-affiliation,
.team-section.is-scrolling .member-role {
  background-color: var(--blue) !important;
  color: transparent !important;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  display: inline; 
  transition: none;
} */

.team-section.is-scrolling .member-name span,
.team-section.is-scrolling .member-affiliation span,
.team-section.is-scrolling .member-role span {
  background-color: var(--blue) !important;
  color: transparent !important;
  padding: 0 6px;
  margin: 0 -4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: none;
}

body.is-scrolling p,
body.is-scrolling span,
body.is-scrolling a,
body.is-scrolling li {
  &:not(.hero *, .quote-section *, #plural-practices *, #team *) {
    background-color: var(--blue) !important;
    color: transparent !important;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    transition: none !important;
    animation-play-state: paused !important;
    pointer-events: none;
  }
}

body.is-scrolling #footer p,
body.is-scrolling #footer span,
body.is-scrolling #footer .footer-links a {
  background-color: #f1f1f1 !important; /* White block */
  color: transparent !important; /* Hide text */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: none !important;
  pointer-events: none;
}

body.is-scrolling .partner-logo img {
  /* filter: brightness(0) invert(1) !important; */
  filter: blur(20px);
  -webkit-font-smoothing: antialiased;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* body.is-scrolling #footer {
  filter: blur(5px);
} */

body.is-scrolling h2 span {
  background-color: var(--blue) !important;
  color: transparent !important;
  transition: none; /* Instant on */
}

body.is-scrolling h3 span {
  background-color: var(--blue) !important;
  color: transparent !important;
  transition: none; /* Instant on */
}

body.is-scrolling h4 span {
  background-color: var(--blue) !important;
  color: transparent !important;
  transition: none; /* Instant on */
}

/* ==========================================================================
   PROGRAM RESPONSIVENESS QUICK FIX
   ========================================================================== */

@media (max-width: 768px) {
  .programDropped {
    flex-direction: column;
    gap: 1.5rem;
  }

  .programImg,
  .programText {
    width: 100% !important;
    padding-right: 0 !important;
  }

  .program1,
  .program2 {
    padding-left: 0 !important;
  }

  /* 4. Make the Horizontal List wrap for long titles */
  .programUndropped {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    /* border-bottom: 1px solid rgba(0, 51, 255, 0.2);
    padding-bottom: 1rem; */
    position: relative;
  }

  .programUndropped li {
    padding-right: 0 !important;
    margin-left: 0 !important;
    width: auto;
  }

  .programCategory,
  .programUndropped li:nth-child(2) {
    width: auto; /* Allow natural width on mobile */
  }

  .programUndropped li:last-child {
    position: absolute;
    right: 0;
    top: 0;
  }

  .programBold {
    font-size: 1.1rem;
    margin-top: 0.3rem;
  }
}

@media (max-width: 768px) {
  /* Targeted transition for the redaction effect */
  body.is-scrolling p,
  body.is-scrolling span,
  body.is-scrolling a,
  body.is-scrolling li {
    /* We only transition the background and color, not 'all' */
    transition:
      background-color 0.4s cubic-bezier(0.25, 1, 0.5, 1),
      color 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
  }
}

@media (max-width: 932px) {
  /* 1. Target the specific ID causing the overlap */
  #main-logo-badge {
    /* Kill the absolute positioning and the data-top/center logic */
    /* position: relative !important; */
    top: auto;
    /* left: auto !important; */
    /* transform: none !important; */

    /* Center it manually in the flow */
    margin: 0.75em auto;
    display: flex;
    justify-content: center;

    /* Control the size so it doesn't explode horizontally */
    width: 280px;
    z-index: 100;
  }

  /* 2. Ensure the link and image inside follow suit */
  #main-logo-badge a,
  #main-logo-badge .badge-svg-file {
    width: 100%;
    height: auto;
    display: block;
  }
}

/* 3. Special tweak for Landscape (Horizontal) */
@media (max-width: 932px) and (orientation: landscape) {
  #main-logo-badge {
    margin: 1rem auto !important; /* Tighter margin for short screens */
    width: 200px !important; /* Smaller logo for horizontal */
  }

  .hero-meta {
    top: 2%;
  }

  .hero h1 {
    font-size: 2em;
    margin-bottom: 2.5em;
  }
}

/* STYLE FOR EXHIBITION SECTION */

/* Container for the whole section */

/* Header typography */
.exhibition-header {
  margin-bottom: 3rem;
  text-align: left;
}

.exhibition-header h2 {
  font-size: 3em;
  line-height: 1.2;
  font-weight: 400;
  margin-bottom: 0.5rem;
  font-family: "editorial", serif;
  color: var(--blue);
}

.exhibition-header h3 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.exhibition-header p {
  line-height: 1.6;
  margin-bottom: 1rem;
  max-width: 800px; /* Keeps line lengths readable */
}

.exhibition-text {
  font-size: 0.85em;
}

/* --- THE FLEXBOX MAGIC --- */
.exhibition-grid {
  display: flex;
  flex-direction: column; /* Stack vertically on mobile */
  gap: 2.5rem; /* Space between the items */
}

/* Individual project cards */
.exhibition-item {
  display: flex;
  flex-direction: column;
  background: transparent;
}

/* Image styling */
.exhibition-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  margin-bottom: 1.5rem;

  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Project text content */
.item-content h4 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem 0;
}

.item-meta {
  display: block;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 1rem;
  font-style: italic;
}

.item-content p {
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Responsive Breakpoint for Desktop */
@media (min-width: 768px) {
  .exhibition-grid {
    flex-direction: row; /* Place items side-by-side */
    align-items: flex-start; /* Aligns items to the top */
  }

  .exhibition-item {
    flex: 1; /* Tells each item to take up an equal 1/3 of the space */
  }
}
