:root {
	--black: #797874;
	--white: #f2efe8;
  --green: #14c9a6;
  --hover: #1d9981; 
	--scale-factor: 1.0;
  }

/* Works in Chrome, Safari, Edge */
::-webkit-scrollbar {
  width: 12px;            /* scrollbar width */
}

::-webkit-scrollbar-track {
  background: var(--white);       /* track color */
}

::-webkit-scrollbar-thumb {
  background: var(--green);    /* scrollbar thumb color */
  border-radius: 0px;
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.9);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--hover);    /* hover color */
}

/* Firefox */
* {
  scrollbar-width: thin;               /* auto | thin | none */
  scrollbar-color: var(--green) var(--white);       /* thumb | track */
}

html, body {
  height: 12000px !important;

}

body {
	background: var(--white);
	margin: 0px;
}
a


h1,h2,h3,h4,h5{
    font-family: "jaf-mashine-rounded", sans-serif;
    font-style: normal;
    margin: 0px;
    line-height: 1;
    padding-bottom: 0.5vh;
}

h1{
  font-weight: 600;
  font-size: 5.9vw;
}

h2{
  font-weight: 450;
  font-size: 4.5vw;
}

h3{
  font-weight: 300;
  font-size: 3vh;
}

h4{
  font-weight: 300;
  font-size: 2vh;
}

p {
  font-family: "EB Garamond", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 2.0vh;
}


html{
	scroll-behavior: smooth;
}

    /* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  z-index: 1000;
}

a {
  font-family: "jaf-mashine-rounded", sans-serif;
  font-weight: 200;
  font-size: 3.0vh;
  font-style: normal;
}


.pixel-trail-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* optional: if you want to use a gooey filter again later */
.goo-filter-container {
  position: absolute;
  overflow: hidden;
  z-index: 0;
}

/* ===========================
   PRELOADER LAYOUT
   =========================== */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #050608; /* or your background color */
  color: #f7f7f5;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.preloader-inner {
  width: min(90vw, 520px);
  height: 100vh;
  padding: 4rem 1.5rem 3rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Text block centered vertically (flex takes care of it) */
.preloader-text {
  text-align: left;
  margin-bottom: auto; /* push octagons to bottom */
  max-width: 40rem;          /* breedte van je kader */
  padding: 1.5rem 2rem;
  margin: 3rem auto;   
}

.preloader-text h5 {
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  color: #14c9a6;
}

.preloader-text p {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #e8e8e3;
}

/* Octagons at the bottom */
.preloader-svg {
  width: 120px;
  height: auto;
  overflow: visible;
}

.preloader-octagons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;  /* equal spacing */
  padding-top: 5rem;
  padding-bottom: 0rem;
}


/* ===========================
   3D Merch
   =========================== */

#shirt3d-container {
  position: absolute;          /* same positioning style as your other images */
  width: min(32vw, 420px);     /* tweak until it visually matches E17.webp */
  aspect-ratio: 3 / 4;         /* shirt-ish proportions */
  overflow: visible;           /* let the cloth swing a bit outside */
}

/* Make the canvas fill the wrapper */
#shirt3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
}


/* ===========================
   OCTAGON STYLES + ANIMATION
   =========================== */

.oct-outline {
  fill: none;
  stroke: #14c9a6;
  stroke-miterlimit: 10;
  stroke-width: 2px;
}

/* fat stroke is animated, but clipped to octagon shape */
.oct-fill {
  fill: none;
  stroke: #14c9a6;
  stroke-miterlimit: 10;
  stroke-width: 2px;
  animation-duration: 4s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

/* We use different keyframes so we can control 1 -> 2 -> 3 -> reset */

.oct-fill-1 {
  animation-name: octFill1;
}

.oct-fill-2 {
  animation-name: octFill2;
}

.oct-fill-3 {
  animation-name: octFill3;
}

/* Octagon 1: fills first */
@keyframes octFill1 {
  0%   { stroke-width: 2px; }
  10%  { stroke-width: 40px; }
  20%  { stroke-width: 40px; } /* full */
  60%  { stroke-width: 40px; } /* stays full while others catch up */
  70%  { stroke-width: 2px; }  /* reset all together */
  100% { stroke-width: 2px; }
}

/* Octagon 2: fills after 1 */
@keyframes octFill2 {
  0%   { stroke-width: 2px; }
  20%  { stroke-width: 2px; }
  30%  { stroke-width: 40px; }
  40%  { stroke-width: 40px; } /* full */
  60%  { stroke-width: 40px; } /* stay full until the "all reset" moment */
  70%  { stroke-width: 2px; }
  100% { stroke-width: 2px; }
}

/* Octagon 3: fills after 2 */
@keyframes octFill3 {
  0%   { stroke-width: 2px; }
  40%  { stroke-width: 2px; }
  50%  { stroke-width: 40px; }
  60%  { stroke-width: 40px; } /* full */
  70%  { stroke-width: 2px; }  /* all reset together */
  100% { stroke-width: 2px; }
}

/* ===========================
   HIDE PRELOADER WHEN DONE
   =========================== */

body.preload-done .preloader {
  opacity: 0;
  pointer-events: none;
}

.logo {
  display: flex;
  align-items: center;
}

/* SVG scales nicely inside header */
.logo-svg {
  display: block;
  height: 60px;   /* Or whatever you like */
  padding-top: 2.5em;
  width: auto;
}

/* Octagon outlines */
.oct-outline {
  fill: none;
  stroke: #14c9a6;
  stroke-miterlimit: 10;
  stroke-width: 2px;
}

/* Animated “fill” strokes */
.oct-fill {
  fill: none;
  stroke: #14c9a6;
  stroke-miterlimit: 10;
  stroke-width: 55px;
  animation: octFill 2s ease-in-out infinite alternate;
}

/* Staggered delays (3 octagons) */
.oct-fill-3 { animation-delay: 0s; }
.oct-fill-1 { animation-delay: 0.5s; }
.oct-fill-2 { animation-delay: 1s; }

@keyframes octFill {
  0%   { stroke-width: 55px; }   /* outline */
  100% { stroke-width: 200px; }  /* “filled” look */
}

.nav-links a {
  text-decoration: none;
  color: var(--black);
  font-weight: 300;
  transition: opacity 0.3s;
  font-size: 1vw;
}

.nav-links a:hover {
  opacity: 0.6;
}

/* --- Hamburger button --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 100%;
  background: var(--black);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- Mobile menu overlay --- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu a {
  color: white;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 600;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

/* --- Hamburger animation when active --- */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* Page content */
  .main {
	margin-left: 200px; /* Same as the width of the sidenav */
  }

#Scene {
	position: fixed;
	top: 0%;
}

main {
	position: relative;
	z-index: 1;
}

.mask-inner:hover{
	filter: opacity(100%);
}

#logo {
	background: url('../images/Bekokstoof logo.svg');
	background-repeat: no-repeat;
	position: fixed;
	top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
	z-index: 0;
}
.intro-text{
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 100%;
    height: auto;
    z-index: -1;
}

.scroll-text{
  font-family: "jaf-mashine-rounded", sans-serif;
  font-weight: 400;
  font-size: 2.1vw;
  font-style: normal;
  color: var(--black);
  opacity: 0;
  text-align: right;
  white-space: nowrap;
  line-height: 0.5;
  margin: 0 auto;
  width: 100vw;
  position: relative;
}

.scroll-text .bold {
  line-height: 1.2;
}
.scroll-text .thin {
  font-weight: 200;
  font-size: 1.5vw;
  line-height: 1;
}

body .titles h1 {
	font-size: 70px !important;
	color: var(--white);
	mix-blend-mode: difference;
}

body .titles {
	position: absolute;
	background-color: none;
	width: 700px;
	padding: 10px;
	top: 70vh;
	z-index: 2;
}
.octagon-section{
    position: absolute;
    overflow-x: hidden;
    width: 100vw;
    height: 100vh;
    inset: 0;
}
.all-rows{
    position: relative;
    width: 100%;
    height: 100%;

}
.row-upward,
.row-downward,
.octagon-clip {
  will-change: transform;
  transform: translateZ(0); /* forces GPU layer */
}

.octagon-3d {
  position: absolute;
  width: 100%;
  height: 100%;
}

body .titles .section {
	transition: clip-path 0s ease-in-out;
}

.portfolio:hover {
	color: var(--white);
	text-shadow: 4px 4px 0px var(--black), -2px -2px 0px var(--black);
	transition: 0.3s;
}
canvas{
  width: 100%;
  height: 100%;
  object-fit: cover;
}


    /* The SVG itself just scales to fill the wrapper */
    .octagon {
      width: 100%;
      height: 100%;
      display: block;
      overflow: hidden;
    }

    .st0 {
      fill: transparent;
      stroke: #3f3f3f;
}

.row-wrapper{
	width: calc(1800px * var(--scale-factor));
  height: calc(1000px * var(--scale-factor));
	transform-origin: center;
  z-index: 10;
}


.rows {
  width: 1800px;
  height: 1000px;
	display: flex;
  position: relative;
	transform: translateX(-50%) scale(var(--scale-factor));
	transform-origin: center;
	left: 50%;
}

/* 
	transform: scale(var(--scale-factor)); 
	transform-origin: top left;
*/



h2.scroll-reveal {
  max-width: 50rem;          /* breedte van je kader */
  padding: 1.5rem 2rem;
  margin: 3rem auto;   
  position: absolute;     /* centreren + ruimte erboven/onder */
}

p.scroll-reveal  {
  max-width: 40rem;          /* breedte van je kader */
  padding: 1.5rem 2rem;
  margin: 3rem auto;   
  position: absolute;  /* centreren + ruimte erboven/onder */
}

.head-text .scroll-reveal-text{
  font-family: "jaf-mashine-rounded", sans-serif;
  font-size: clamp(1rem, 3vw, 2rem);
  line-height: 1.2;
  font-weight: 400;
}

.sub-text .scroll-reveal-text {
  font-family: "EB Garamond", serif;
  font-size: clamp(0.7rem, 1.5vw, 2rem);
  line-height: 1.7;
  font-weight: 400;
}

.word {
  display: inline-block;     /* nodig voor de individuele animatie */
}


.scroll-velocity-section{
position: absolute;
 bottom: 10%;
 pointer-events: none;
}

.parallax {
  position: relative;
  overflow: hidden;
}

.scroller {
  display: flex;
  white-space: nowrap;
  font-family: "jaf-mashine-rounded", sans-serif;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  filter: drop-shadow(1px 1px 1px var(--green));
}

.scroller span {
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .scroller {
    font-size: 4rem;
    line-height: 7vh;
  }
}

/* optioneel eigen class voor tekst */
.scroll-velocity-text {
 color: var(--white);
}


/* INFO PANEL STYLES */

/* Overlay behind the panel */
#imageInfoOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9000;
}

/* Bottom info panel */
#imageInfoPanel {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 80%;
  height: 80vh;
  background: var(--white);
  transform: translateY(100%);
  transition: transform 0.4s ease;
  display: flex;
  z-index: 9010;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
  overflow: hidden;
  font-family: system-ui, sans-serif;
  border-radius: 15px;
}

#imageInfoPanel.show {
  transform: translate(10%, -10%);
}
#imageInfoOverlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* Panel contents */
.info-left {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-info {
  display: none;
}

.info-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-right {
  flex: 1;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.info-right h2 {
  margin: 0 0 1rem;
  font-size: 1.8rem;
}
.info-right p {
  font-size: 1rem;
  line-height: 1.5;
  color: #444;
}
.info-right button {
  margin-top: 1.5rem;
  background: #000;
  color: #fff;
  border: none;
  padding: 0.8rem 1.6rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

/* Close button */
#closePanelBtn {
  position: absolute;
  top: 10px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #333;
}

.cursor{
    position: absolute;
    top: 8%;
    width: 24em;
    margin: 0 auto;
    border-right: 2px solid rgba(255,255,255,.75);
    font-size: 30px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;  
}

.octagon-clip {
    display: block;
    clip-path: url(#octagonClip);
    width: 450px;
    height: 450px;
    object-fit: cover;
	  position: absolute;
    transition: 0.3s;
    opacity: 0;
}

.octagon-clip-wrapper {
    position: relative;
    width: 450px;
    height: 450px;
    clip-path: var(--octagon-clip); /* of jouw huidige clipping */
    left: -1575px; top:  2045.5px;
  
}

.octagon-clip-wrapper .octagon-clip {
  position: absolute;
  inset: 0;              /* alle kanten 0 */
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.octagon-clip:hover{
    filter: url(#heat) !important;
    transform: scale(1.07) !important;
  }

  
    .octagon-wrapper {
      position: absolute;
      width: 300px;
      height: 300px;
      transform-origin: center center;
      overflow: hidden;
    }

.row-upward, .row-downward {
  position: absolute;
}

/* Row 1 */
.img5  { left:  -75px;  top:  -195.5px; }
.img6  { left:  300px;  top:  -570.5px; }
.img7  { left:  675px;  top:  -945.5px; }
.img8  { left: 1050px;  top: -1320.5px; }
.img9  { left: 1425px;  top: -1695.5px; }
.img10 { left: 1800px;  top: -2070.5px; }
.img11 { left: 2175px;  top: -2445.5px; }

/* Row 2 */
.img14 { left: 1050px;  top:  -579.5px; }
.img15 { left:  675px;  top:  -204.5px; }
.img16 { left:  300px;  top:   170.5px; }
.img17 { left:  -75px;  top:   545.5px; }
.img18 { left: -450px;  top:   920.5px; }
.img19 { left: -825px;  top:  1295.5px; }
.img20 { left: -1200px; top:  1670.5px; }
.img21 { left: -1575px; top:  2045.5px; }
.img22 { left: -1950px; top:  2420.5px; }

/* Row 3 */
.img24 { left:  300px;  top:   929.5px; }
.img25 { left:  675px;  top:   554.5px; }
.img26 { left: 1050px;  top:   179.5px; }
.img27 { left: 1425px;  top:  -195.5px; }
.img28 { left: 1800px;  top:  -570.5px; }
.img29 { left: 2175px;  top:  -945.5px; }
.img30 { left: 2550px;  top: -1320.5px; }
.img31 { left: 2925px;  top: -1695.5px; }
.img32 { left: 3300px;  top: -2070.5px; }

/* Row 4 */
.img36 { left: 1800px;  top:   170.5px; }
.img37 { left: 1425px;  top:   545.5px; }
.img38 { left: 1050px;  top:   920.5px; }
.img39 { left:  675px;  top:  1295.5px; }
.img40 { left:  300px;  top:  1670.5px; }
.img41 { left:  -75px;  top:  2045.5px; }
.img42 { left: -450px;  top:  2420.5px; }
.img43 { left: -825px;  top:  2795.5px; }
.img44 { left: -1200px; top:  3170.5px; }

.img21-hidden { 
      left: -1575px; top:  2045.5px; 
      object-position: 30% 50%;
  }
/* Animation */
.typewriter-animation {
  animation: 
    typewriter 5s steps(50) 1s 1 normal both, 
    blinkingCursor 500ms steps(50) infinite normal;
}
@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes blinkingCursor{
  from { border-right-color: rgba(255,255,255,.75); }
  to { border-right-color: transparent; }
}

/* FOOTER */
.page-footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 40px; /* tweak to taste */
  padding: 0em 1.5em 0.5em 1em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  z-index: 999;                          /* above everything else */
  color: var(--black);
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 2em;
}

.footer-arrow {
  color: var(--green);
  font-size: 0.9rem;
}

.footer-left a {
  color: var(--black);
  font-family: 'Bespoke Sans', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 2.0vh;
  text-decoration: none;
}

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