/* === GLOBAL RESET === */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

h1,
h2,
p {
  margin-top: 0;
}

body {
    margin: 0;
    font-family: system-ui, sans-serif;
    line-height: 1.6;
  }
  
  .panel {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }
  
  .content {
    width: 100%;
    max-width: 70rem;
    margin: auto;
    padding: 6rem 1.5rem;
  }
  
@media (max-width: 250px) {
  .content {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    width: 100%;
    box-sizing: border-box;
  }
}

  .panel-dark {
    background-color: #000;
    color: #fff;
  }
  
  .panel-objective {
    background: linear-gradient(
      to bottom,
      #000 0%,
      #0a1a2f 40%,
      #0f2f5a 100%
    );
    color: #f0f4ff;
  }
  
  .panel-unhidden {
    background: linear-gradient(
      to bottom,
      #0f2f5a 0%,
      #1f6f5c 50%,
      #c9d87a 100%
    );
    color: #102018;
  }

  .panel-unhidden .content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

@media (max-width: 20rem) {
  .panel-unhidden .reveal {
    flex-direction: column;
    align-items: center;
  }

  .panel-unhidden .reveal svg {
    display: block;          
    width: 100%;
    max-width: 6rem;         
    height: auto;
    margin-inline: auto;     
  }
  
}

  #unhidden + p, 
.panel-unhidden .content p {
    font-size: 1rem;          
    line-height: 1.4;
    word-wrap: break-word;      
    overflow-wrap: break-word;
    hyphens: auto;              
    text-align: left;           
    max-width: 100%;            
}
  
  .panel-feelings {
    background: linear-gradient(
      to bottom,
      #c9d87a 0%,
      #e09b3a 50%,
      #d46a1f 100%
    );
    color: #2a1200;
  }
  
  .panel-liberation {
    background: linear-gradient(
      to bottom,
      #d46a1f 0%,
      #f2f2f2 70%,
      #ffffff 100%
    );
    color: #111;
  }

  .panel-liberation .content {
    min-height: 450px; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
   
  @media (min-width: 48rem) {
    .content {
      padding: 6rem 2rem;
    }
  }  

header,
main,
footer {
    margin: 0;
    padding: 0;
    max-width: none;
}

h1,
h2 {
  font-family: Georgia, serif;
}

h2 {
  font-size: clamp(1.1rem, 8vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  hyphens: auto;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.hero {
    min-height: 40vh;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    text-align: center;  
    
    background: transparent; 
    position: relative;
    z-index: 2; 
  }
  
  .hero h1 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(1.2rem, 10vw, 4rem);
    letter-spacing: 0.05em; 
    width: 90%;
    word-wrap: break-word;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4), 0 0 30px rgba(5, 11, 26, 0.8);
    margin-bottom: 1rem;
  }
    

.subtitle {
  font-size: 1.2rem;
  color: #444;
}

.light-circle {
  position: absolute;
  width: 30rem;
  height: 30rem;
  background: radial-gradient(circle, rgba(255,255,255,0.9), transparent 70%);
  top: -10rem;
  right: -10rem;
  animation: glow 6s infinite alternate;
}

section {
  margin-top: 4rem;
}

.dark-section {
  background-color: #111;
  color: #f5f5f5;
  padding: 3rem 1.5rem;
}

.light-section {
  background: linear-gradient(to bottom, #fff, #f0f0f0);
  padding: 3rem 1.5rem;
}

.grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.block {
  padding: 1.5rem;
  background: #eee;
  text-align: center;
  font-weight: bold;
}

.reveal {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.revealed {
  animation: revealText 3s infinite;
}

.pulse {
  width: 4rem;
  height: 4rem;
  margin-top: 2rem;
  border-radius: 50%;
  background: #000;
  animation: pulse 2s infinite;
}

.path {
    flex-direction: row; 
    display: flex;
    justify-content: space-around;
    gap: 3rem;
    margin-top: 5rem;
    align-items: center;
    height: 200px;
    overflow: visible;
    contain: layout; 
    padding: 40px 0;
  }

@media (max-width: 200px) {
  .path {
    flex-direction: column;
    margin-top: 0rem;
    height: 350px;
  }
}
  
  .progress-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .dot-morph {
    width: 1rem;
    height: 1rem;
    background: #2a1200; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: morphAndBounce 4s infinite ease-in-out;
    transition: transform 0.3s ease;
  }
  
  .icon-content {
    width: 70%;
    height: 70%;
    color: white; 
    opacity: 0; 
    transition: opacity 0.3s ease;
  
    fill: none;
    stroke: currentColor; 
    stroke-width: 2px;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  
  .progress-wrapper span {
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #2a1200;
  }
  
  .item-tree { animation-delay: 0s; }
  .item-house { animation-delay: 0.5s; }
  .item-building { animation-delay: 1s; }
  
  @keyframes morphAndBounce {
    0%, 10% {
      width: 1rem;
      height: 1rem;
      border-radius: 50%;
      transform: translateY(0);
      background: #2a1200;
    }
    40%, 60% {
      width: 3.5rem;
      height: 3.5rem;
      border-radius: 12px; 
      transform: translateY(-30px);
      background: #d46a1f;
    }
    40%, 60% {
    }
    90%, 100% {
      width: 1rem;
      height: 1rem;
      border-radius: 50%;
      transform: translateY(0);
      background: #2a1200;
    }
  }
  
  .dot-morph .icon-content {
    animation: fadeInOut 4s infinite ease-in-out;
  }
  
  .item-tree .icon-content { animation-delay: 0s; }
  .item-house .icon-content { animation-delay: 0.5s; }
  .item-building .icon-content { animation-delay: 1s; }
  
  @keyframes fadeInOut {
    0%, 25% { opacity: 0; }
    40%, 60% { opacity: 1; }
    75%, 100% { opacity: 0; }
  }

.dot {
  width: 1rem;
  height: 1rem;
  background: #000;
  border-radius: 50%;
  animation: move 3s infinite;
}

footer {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
}

@keyframes glow {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

@keyframes revealText {
  0% { opacity: 0.2; }
  100% { opacity: 1; }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 0.6; }
}

@keyframes move {
  0% { transform: translateY(0); }
  50% { transform: translateY(-0.5rem); }
  100% { transform: translateY(0); }
}

@media (min-width: 48rem) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.truth-section {
    margin-top: 0;
    background-color: #000;
    position: relative;
    z-index: 2;
  }
  
  .light-toggle {
    position: absolute;
    left: -9999px;
  }
  
  .bulb {
    display: flex;
    justify-content:left;
    align-items: center;
    margin: 2rem 0;
    cursor: pointer;
    width: 150px;/*100%;*/
    position: relative;
  }
  
  
  .bulb-svg {
    display: block;
  
    width: 40vw;          
    max-width: 120px;     
    min-width: 60px;      
  
    height: auto;         
    aspect-ratio: 3 / 4;  
  
    color: #555;
    transition: color 0.4s ease, filter 0.4s ease;
  }
  
  @media (max-width: 200px) {
    .bulb, .bulb-svg {
      width: 60vw;
      max-width: 90px;
      justify-content: center;
    }
  }  
  
  .bulb-glass {
    fill: none;
    stroke: currentColor;
    stroke-width: 4;
  }
  
  .bulb-filament {
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
  }
  
  .bulb-base {
    fill: currentColor;
  }
  
  .bulb-base-line {
    stroke: #000;
    stroke-width: 2;
  }
  
  .light-toggle:checked + .bulb .bulb-svg {
    color: #fff;
    filter: drop-shadow(0 0 10px rgba(255, 255, 200, 0.8));
  }
  
  .bulb::after {
    content: "";
    position: absolute;
    width: 18rem;
    height: 18rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }
  
  .truth-content {
    max-width: 40rem;
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.6s ease, filter 0.6s ease;
  }
  
  .light-toggle:checked + .bulb .bulb-svg {
    color: #fff;
    filter: drop-shadow(0 0 10px rgba(255, 255, 200, 0.8));
  }
  
  .light-toggle:checked + .bulb::after {
    opacity: 1;
  }
  
  .light-toggle:checked ~ .truth-content {
    opacity: 1;
    filter: blur(0);
  }
  
  .bulb:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 6px;
  }

  .icon-grid {
    display: grid;
    gap: 3rem;
    margin-top: 3rem;
    text-align: center;
  }
  
/*.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    transition: transform 0.3s ease-out, filter 0.3s ease;
    cursor: none;
    backface-visibility: hidden; 
  }*/

.icon-item {
  width: 130px;           
  perspective: 1000px;
  background: transparent;
  cursor: pointer;
  min-height: 160px;
  margin-left: auto;
  margin-right: auto;
  }
  
  .card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
  }
  
  .icon-item.flipped .card-inner {
    transform: rotateY(180deg);
  }
  
  .card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden; 
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 12px;
  }
  
  .card-front {
    z-index: 2;
  }
  
  .card-back {
    background: rgba(255, 255, 255, 0.1); 
    border-radius: 12px;
    transform: rotateY(180deg);
    font-size: 0.95rem;
    line-height: 1.4;
  }
  
  .icon-svg {
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 0.5rem;
  }
  
  .icon-item:hover {
    transform: none !important; 
    filter: none !important;
    z-index: 10; 
  }
  
  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(1.5rem);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  
.icon-svg {
    width: 4rem; 
    height: 4rem;
    color: currentColor;
    margin-bottom: 1rem;
  
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  
  .icon-svg path {
    stroke: inherit;
    stroke-width: inherit;
    stroke-linecap: inherit;
    stroke-linejoin: inherit;
  }
  
  .icon-item .caption-text {
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  
  @media (min-width: 48rem) {
    .icon-grid {
      display: grid;
        grid-template-columns: repeat(3, 1fr);
        
    }

    .icon-item {
      width: 100%;
  }
  }
  
  .icon-item:nth-child(2) {
    animation-delay: 0.2s;
  }
  
  .icon-item:nth-child(3) {
    animation-delay: 0.4s;
  }
  
  @keyframes fadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .mask-reveal-container {
    /*position: relative;
    width: 120px;   
    height: 120px;
    margin: 2rem 0;
    perspective: 1000px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    overflow: visible;*/
    position: relative;
    width: 120px;
    height: 120px;
    margin: 3rem auto 1rem auto;
    perspective: 1000px;
  }
  
  @media (max-width: 200px) {
    .mask-reveal-container {
        width: 120px; 
        margin-top: 1rem;
        margin-left: -1rem;
    }
    
    .instruction {
        font-size: 0.75rem;
        width: 90%;
        margin: 0.5rem auto;
    }
}

  .face-layer, .mask-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }
  
  .face-layer {
    z-index: 1;
  }
  
  .mask-layer {
    z-index: 2;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
    transform-origin: bottom center;
  }
  
  .svg-mask {
    width: 100%;
    height: 100%;
    display: block; 
    fill: #000000; 
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
  }
  
  .svg-mask path {
    fill: inherit;
  }
  
  .mask-reveal-container:hover .mask-layer,
  .mask-reveal-container:active .mask-layer {
    transform: rotate(35deg) translateY(-10%) translateX(10%);
    opacity: 0.8;
  }
  
  .instruction {
    text-align: center !important;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #c9d87a;
    margin-top: 1rem;
  }
  
  .polygraph-result {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 250px;
    background: #fdfdfd;
    border: 2px solid #2a1200;
    margin: 2rem auto;
    overflow: hidden;
  }
  
  .static-trace {
    fill: none;
    stroke: #d46a1f; 
    stroke-width: 2;
  }
  
.revealer-curtain {
    position: absolute;
    top: 0;
    right: 0; 
    width: 100%;
    height: 100%;
    
    background-color: #fdfdfd;
    background-image: 
      linear-gradient(rgba(224, 155, 58, 0.1) 1px, transparent 1px),
      linear-gradient(90deg, rgba(224, 155, 58, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    
    background-position: right top; 
    
    z-index: 10;
    animation: revealRight 6s linear infinite;
  }
  
  .scan-bar-edge {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: #d4431f; 
    box-shadow: 0 0 10px rgba(212, 67, 31, 0.4);
  }
  
  @keyframes revealRight {
    0% {
      width: 100%;
    }
    100% {
      width: 0%;
    }
  }
  
  .graph-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
      linear-gradient(rgba(224, 155, 58, 0.1) 1px, transparent 1px),
      linear-gradient(90deg, rgba(224, 155, 58, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 1;
  }
  
  .polygraph-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
  }
  
  .trace {
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 3000;
    stroke-dashoffset: 3000;
    animation: traceRun 8s linear infinite;
  }
  
  .heart-trace {
    fill: none;
    stroke: rgb(0, 0, 0);
    stroke-width: 2;
  }
  
  .scan-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: rgba(212, 106, 31, 0.8);
    box-shadow: 0 0 8px rgba(212, 106, 31, 0.6);
    z-index: 3;
    animation: scanMove 8s linear infinite;
  }
  
  @keyframes traceRun {
    to { stroke-dashoffset: 0; }
  }
  
  @keyframes scanMove {
    0% { left: 0; }
    100% { left: 100%; }
  }

.svg-face {
    width: 100%;
    height: 100%;
    fill: none;
    display: block; 
  }
  
  .face-base { fill: url(#paint0_radial); }
  .face-glow { opacity: 0.5; }
  .face-glow-1 { fill: url(#paint1_radial); }
  .face-glow-2 { fill: url(#paint2_radial); }
  .face-glow-3 { fill: url(#paint3_radial); }
  
  .eye-brow { fill: url(#paint4_linear); }
  .brow-right { fill: url(#paint5_linear); }
  
  .eye-socket { fill: url(#paint6_radial); }
  .socket-left { fill: url(#paint8_radial); }
  .eye-lid { fill: url(#paint7_linear); }
  .lid-left { fill: url(#paint9_linear); }
  
  .mouth-base { fill: url(#paint10_radial); }
  .mouth-highlights { opacity: 0.75; }
  .mouth-highlights path { 
    opacity: 0.75; 
    fill: url(#paint11_radial); 
  }
  .mouth-highlights path:last-child { fill: url(#paint12_radial); }
  
  .mouth-outline { fill: #A2541E; }

.hero, 
.panel-linguistics {
    background-color: #050b1a; 
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #eee, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, #ddd, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 130px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 120px, #ddd, rgba(0,0,0,0));
    background-size: 200px 200px; /* How often the stars repeat */
    color: #ffffff;
}

.panel-linguistics {
    min-height: 50vh; 
    padding-top: 2rem;
    padding-bottom: 8rem; 
    
    background: transparent;
    position: relative;
    z-index: 2; 
  }

.derivative-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap; 
    flex-direction: column; 
    gap: 15px;
    padding: 0;
    margin-top: 30px;
}

.derivative-list li {
    width: 100%; 
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px); 
    border-left: 4px solid #ffdf30;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.derivative-list li strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 8px;
    margin-left: 5px;
    color: var(--accent-color, #ffffff);

    inline-size: 100%;
    overflow-wrap: break-word; 
    word-wrap: break-word;     
    hyphens: auto;
}

@media (max-width: 170px) {
  .derivative-list li strong {
      font-size: 0.95rem; 
      letter-spacing: -0.02em; 
  }

  .derivative-list li p {
    font-size: 0.8rem; 
    letter-spacing: -0.02em; 
}
}

.derivative-list li p {
    display: block;
    font-size: 0.95rem;
    margin-left: 5px;
    color: var(--accent-color, #ffffff);
}

.panel-media {
    padding: 60px 20px;
    text-align: center;
    clear: both;
    position: relative;
    z-index: 10;
    margin-top: 0;
}

.video-container {
    display: flex;             
    flex-wrap: wrap;           
    justify-content: center;   
    gap: 2rem;                
  
    width: 100%;
    max-width: 800px;         
    margin: 0 auto;
  }
  
  .video-frame {
    flex: 1 1 400px;           
    width: 100%;               
    
    aspect-ratio: 16 / 9;     
    border: none;              
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); 
    background: #000;          
  }

@media (max-width: 600px) {
    .derivative-list {
        flex-direction: column;
    }
    
    .panel-linguistics, .panel-media {
        padding: 30px 15px;
    }
}

.night-sky-wrapper {
    position: relative;
    background-color: #050b1a; 
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #eee, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, #ddd, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 130px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 120px, #ddd, rgba(0,0,0,0));
    background-size: 200px 200px; 
    background-repeat: repeat;
  }

  .night-sky-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15rem;
    background: linear-gradient(to bottom, transparent 0%, #000 100%);
    pointer-events: none;
    z-index: 1;
  }