*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.main {
  position: relative;
  z-index: 10;
  padding: 4rem;
}

body {
  font-family: 'Host Grotesk', 'Roboto Flex', 'Sen', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  font-weight: 200;
  background: linear-gradient(to bottom,
      #2c2b35 25%,
      #2d282b 50%,
      #333835 100%);
  min-height: 100vh;
  margin: 0;
  background-attachment: fixed;
  background-size: cover;
  overscroll-behavior: none;
  padding-top: 40px;


}

html,
body {
  overflow-x: hidden;
}



/* SPLIT */

.gradient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  /* must stay behind all content */
}

/* First noise layer */
.gradient-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/005.png');
  background-repeat: repeat;
  opacity: 0.07;
  z-index: 4;

}

/* Second noise or pattern layer */
.gradient-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/001.png');
  background-repeat: repeat;
  opacity: 0.03;
  z-index: 4;

}

/* Your blobs */
/* .blob {
  position: absolute;
  width: 40vmax;
height: 40vmax;
  background: 
  conic-gradient(from 90deg at 50% 50%, rgba(39, 44, 41, 0.05), transparent 75%),
  radial-gradient(circle at 40% 40%, hsla(0, 0%, 74%, 0.2), transparent 60%),
  linear-gradient(135deg, hsla(0, 0%, 53%, 0.2), transparent);
filter: blur(80px);
mix-blend-mode: screen;
  border-radius: 50%;
  filter: blur(40px);
  mix-blend-mode: soft-light;
  animation: swirl 100s ease-in-out infinite;
  z-index: 1;  filter: blur(80px);
} */



.blob {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  background: linear-gradient(135deg, hsla(0, 0%, 100%, 0.5), hsla(0, 0%, 62%, 0.6));
  border-radius: 50%;
  filter: blur(120px);
  /* Large blur */
  mix-blend-mode: screen;
  /* Or try lighten/overlay for different clash */
  /* animation: swirl 30s ease-in-out infinite; */
  z-index: 2;
  scale: 1;
}




.blob2 {
  top: 50%;
  left: 60%;
  animation-delay: 2s;
  scale: 1.3;
  filter: blur(120px);
}

.blob3 {
  top: 70%;
  left: 30%;
  animation-delay: 3s;
  scale: 0.8;
  filter: blur(60px);
}




/* Keyframes for ethereal swirling */
/* @keyframes swirl {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  25%  { transform: translate(8%, -10%) scale(1.3) rotate(60deg); }
  50%  { transform: translate(-12%, 5%) scale(0.9) rotate(120deg); }
  75%  { transform: translate(6%, 12%) scale(1.1) rotate(180deg); }
  100% { transform: translate(0, 0) scale(1) rotate(360deg); }
} */
/* SPLIT */





.project-page nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 999;
  background: #eeeeee;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  /* Add these to prevent potential edge artifacts */
  box-shadow: none;
  border: none;
  outline: none;
  justify-content: space-between;

}

.project-page nav a {
  color: #3b3b3b;

}

/* BLUR FADE EFFECT */
.project-page nav::after {
  content: "";
  position: absolute;
  bottom: -70px;
  /* Extend very far down */
  left: 0;
  width: 100%;
  height: 90px;
  /* Large fade area */
  pointer-events: none;
  z-index: -1;

  /* Softer blur with higher spread */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  /* Match nav color but with slight transparency */
  background: #eeeeee;

  /* Extremely smooth gradient mask */
  mask-image: linear-gradient(to top,
      transparent 0px,
      black 70px,
      black 100px,
      transparent 160px);
  -webkit-mask-image: linear-gradient(to top,
      transparent 0px,
      black 70px,
      black 100px,
      transparent 160px);

  /* Prevent subpixel rendering issues */
  transform: translateZ(0);
}


.project-page {
  font-family: 'Sen';
  font-weight: 200;
  background: #eeeeee;
  overflow-x: hidden;
  min-height: 100vh;
  margin: 0;
  background-attachment: fixed;
  background-size: cover;
  overscroll-behavior: none;
  padding-top: 40px;
  overflow: visible;
  overflow-x: hidden;


}



.project-page p {
  color: rgb(59, 59, 59);


}

.project-page h4 {

  color: rgb(59, 59, 59);
  font-weight: 600;
  font-size: 1.2rem;

}

.project-page h5 {
  color: rgb(59, 59, 59);
}


/* typography */
p {
  font-size: 1rem;
  color: #e2e2e2;
  margin-bottom: 1rem;
  margin-top: 1rem;



}

b {
  margin: 0;
  padding: 0;
  font-weight: 600;
}

h1 {
  font-family: 'Sen';
  font-weight: 300;
  font-size: 3.2rem;
  margin: 0;
  padding: 0;
  color: #f8f8f8;


}

h2 {
  font-size: 1.7rem;
  color: #f8f8f8;
  margin-top: 2.5px;
  margin-bottom: 5px;
  font-weight: 100;

}

h3 {
  font-size: 1.4rem;
  font-weight: 200;
  margin-top: 5px;
  color: #f8f8f8;

}

h5 {
  font-family: 'Sen';
  font-weight: 300;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #f8f8f8;

}



/* Māori translate h4 */

h4 {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;

  font-weight: 300;
  color: #ece9ff;

}

/* .nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 10px;
  z-index: 1000;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 25px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s ease;
} */

.nav-toggle {
  cursor: pointer;
  width: 30px;
  height: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1000;
}

.nav-toggle span {
  display: block;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: 0.3s ease;
}

body.project-page #navToggle span {
  background-color: #3b3b3b;
}

/* Turn into ✕ when open */
.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}


nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 999;

  display: flex;
  align-items: center;
  padding: 0 2rem;
  /* Add these to prevent potential edge artifacts */
  box-shadow: none;
  border: none;
  outline: none;
  justify-content: space-between;
}

/* BLUR FADE EFFECT */

.nav-close-btn {
  display: none;
}


.nav-links {
  display: flex;
  gap: 5rem;
  position: relative;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.nav-left {
  flex: 1;
}

.contact-container {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-toggle {
  display: none;
}

nav a {
  text-decoration: none;
  color: #d7d7d7;
  font-size: 1rem;
  border-radius: 8px;
  transition: background 0.9s ease;
}

nav a:hover {
  background-color: rgba(194, 194, 194, 0.1);
}




.nav-selected {
  font-weight: 600;
  color: #ffffff;


}

.logo-3d {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  z-index: 999;
  pointer-events: none;
  /* So it doesn't block clicks */
  transform-style: preserve-3d;
  animation: float 5s ease-in-out infinite;
  animation: spin 6s linear infinite;
  opacity: 0.9;
  /* Slight transparency for softness */
  filter: drop-shadow(0 0 4px rgba(33, 33, 33, 0.2));
}

.logo-3d img {
  width: 100%;
  height: auto;
  display: block;
}



@keyframes spin {
  0% {
    transform: rotateY(0deg);
  }

  100% {
    transform: rotateY(360deg);
  }
}


@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }

  100% {
    transform: translateY(0);
  }
}

/* OVERLAY START */

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  /* dark overlay */
  z-index: 999;
}

.hidden {
  display: none;
}

.modal-content {
  background-image: url('../img/manaia-frame.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 900px;
  height: auto;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  margin: auto;
}

/* Optional: style the form fields inside it */
.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 80%;
}

.modal-content textarea {
  height: 150px;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 1rem;
  font-family: sen;
  resize: none;
}

.modal-content input {
  width: 100%;
  padding: 1rem;
  margin-bottom: .2rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
  font-family: 'Sen', sans-serif;
  font-size: 1rem;
  color: #333;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 2rem;
  right: 7rem;
  background: none;
  border: none;
  font-size: 1rem;
  color: white;
  cursor: pointer;
}


/* OVERLAY */
.project-page #openContact {
  color: #3b3b3b;
  border-color: #3b3b3b;


}

.project-page .modal-content form button[type="submit"] {

  color: #3b3b3b;
}

button {
  font-family: 'Sen';
  font-weight: 500;
  font-size: 1rem;
  width: 8rem;
  border-radius: 13px;
  border: 2px solid #ffffff;
  cursor: pointer;
  background: none;
  color: #ffffff;
  padding: .5rem 1rem .5rem 1rem;

}

a.button {
  font-family: 'Sen', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  width: 8rem;
  border-radius: 13px;
  border: 2px solid #ffffff;
  cursor: pointer;
  background: none;
  color: #ffffff;
  padding: 0.5rem 1rem 0.5rem 1rem;
  text-decoration: none;     /* removes underline */
  display: inline-block;     /* makes it behave like a button */
  text-align: center;
}

a {  text-decoration: none;


}

a.button1 {
  font-family: 'Sen', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  width: 8rem;
  border-radius: 13px;
  border: 2px solid #ffffff;
  cursor: pointer;
  background: white;
  color: #5C5E69;
  padding: 0.5rem 1rem 0.5rem 1rem;
  text-decoration: none;     /* removes underline */
  display: inline-block;     /* makes it behave like a button */
  text-align: center;
}





/* Specific styles for each button */
.button1 {
  color: #3b3b3b;
  background-color: #ffffff;

}

.button2 {
  color: #ffffff;
  border-color: #ffffff;

}

.underscore {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;

}


header {
  position: relative;
  padding-bottom: none;
  padding-top: 3rem;


}



.home-logo-container {

  display: flex;
  flex-direction: row;
  justify-content: center;
}




header img {
  max-width: 70%;
  height: auto;
  margin-top: 1rem;

}

.hero-head {

  height: 100vh;
}

.hero-header {

  display: flex;
  justify-content: space-between;
  flex-direction: row;
  /* ⬅ flips content-image order */
  padding: 1rem 96px;
  gap: 4rem;
  margin-top: 6rem;
  margin-bottom: 7rem;


}

.hero-title {
  white-space: nowrap;
  /* 👈 Prevents line break */
  width: 70vw;
  /* 👈 Full viewport width */
  position: relative;
  font-size: 3rem;
  line-height: 1;
  font-weight: 700;

}



.section-me {
  padding-bottom: 7rem;
  padding-top: 2rem;
  display: flex;
  justify-content: space-around;

}

.section-left,
.section-right {
  display: flex;
  align-items: stretch;
  /* Keep consistent height */
  padding: 0 96px;
  gap: 2rem;
}

.section-left h5,
.section-right h5 {
  font-size: 1.25rem;
  /* or whatever suits your design */
  line-height: 1.5;
  max-width: 80ch;
  /* or 500px - keeps it readable */
  word-break: normal;
}

/* Only flip the right section visually */
.section-right {
  flex-direction: row-reverse;
}


.section-atea {
  opacity: 0;
  transform: translateY(50px);
  pointer-events: none;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  margin-left:96px;

}

.mockup-section {
  display: flex;
  flex-direction: row;
  /* ⬅ flips content-image order */
  align-items: center;
  padding: 9rem 7rem;
  margin-bottom: 50px;

  margin-top: 30px;
}

.mockup-section .info-box {
  flex: 1;
  max-width: 600px;
  /* ✅ prevent text from stretching too wide */
}

.mockup-section .mockup-container {
  flex: 1;
  max-width: 600px;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-container img {
  width: 50%;
  height: 50%;
  object-fit: contain;
  /* shows full image, no crop */
  border-radius: 1rem;
}






.info-box {
  display: flex;
  flex-direction: column;
  /* <-- This pushes content to the bottom */
  height: 100%;
  max-width: 38vw;
  /* Make sure it takes full height */
}

.info-box-2 {
  display: flex;
  flex-direction: column;
  /* <-- This pushes content to the bottom */
  height: 100%;
  max-width: 45vw;

}





.info-image-container {
  flex: 1;
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  overflow: hidden;
  border-radius: 1rem;
}

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

.poupou-image {
  position: absolute;
  bottom: 0;
  right: 0;
  height: 130vh;
  /* Make it bigger */
  top: 45vh;
  z-index: -1;
  /* Push behind text */
  pointer-events: none;



}

.poupou-image img {
  height: auto;
  width: 90vh;
  /* ⬅ controls image scale without stretching */
  max-width: none;
  /* prevent shrinkage */
  display: block;
}


.tiki-wrapper {
  position: absolute;
  top: -15%;
  right: -10%;
  left: auto;
  z-index: -1;
  overflow: visible;

  /* ✅ ADD THESE: */
  width: 400px;
  height: fit-content;
  /* or whatever fits your tiki image */
  height: auto;
  pointer-events: none;
  /* optional if needed */
}

.tiki-wrapper-2 {
  position: absolute;
  top: -20%;
  right: -10%;
  left: auto;
  z-index: -1;
  overflow: visible;

  /* ✅ ADD THESE: */
  width: 400px;
  height: fit-content;
  /* or whatever fits your tiki image */
  height: auto;
  pointer-events: none;
  /* optional if needed */
}

.tiki {
  position: absolute;
  /* starting point */
  width: 550px;
  max-width: 700px;
  height: auto;
  overflow: visible;
  transform-origin: center center;
}

.tiki-wrapper-2 {
  position: absolute;
  left: 10%;
  top: 5%;
  z-index: -1;
  pointer-events: none;
  width: auto;
  /* ← allow it to grow */
  max-width: 450px;
  /* optional limit */
}

.tiki-2 {
  max-height: 450px;
  transform-origin: center center;
}




.space-to-move {
  display: flex;
  position: relative;
  margin-bottom: 10rem;
}

.space-to-move-2 {
  display: flex;
  flex-direction: column;
  position: relative;


}

.space-to-move-works {

  display: flex;
  position: relative;
}

.tiki-wrapper-works {
  position: absolute;
  top: 50%;
  right: -10%;
  left: auto;
  z-index: -1;
  overflow: visible;

  /* ✅ ADD THESE: */
  width: 400px;
  height: fit-content;
  /* or whatever fits your tiki image */
  height: auto;
  pointer-events: none;
  /* optional if needed */
}





/* .tiki:hover {
  transform: scale(1.05);
} */

/* .tiki-2 {
  grid-column: 1;
  grid-row: 2;
}
.tiki-3 {
  grid-column: 3;
  grid-row: 2;
  margin:0;
} */

@keyframes slowFloat {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0);
  }
}

.tiki {
  animation: slowFloat 8s ease-in-out infinite;
}

.tiki-2 {
  animation-delay: 2s;
}

.tiki-3 {
  animation-delay: 4s;
}















.tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3 columns */
  row-gap: 0.5rem;
  /* tighter vertical spacing between rows */
  column-gap: 1rem;
  /* normal horizontal spacing */
  justify-items: center;
  gap: 2rem;
  margin: auto;
}




.tools img {
  height: 40px;
  margin: auto;


}





.projects {
  display: flex;
  flex-direction: column;
  gap: 7rem;
  padding: 62px;
  margin-top: 7rem;


}

.rows {
  display: flex;
  gap: 7rem;
  justify-content: center;


}



.project-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: nowrap;
  max-width: 25%;
  border: #ccc;
  border-style: solid;
  padding: 1rem;
}

.project-text {
  flex: 1;
  /* take up equal width */
  min-width: 280px;
  max-width: 300px;
}

.project-card img {
  flex: 1;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  min-width: 280px;

}


.project-card-reverse {
  display: flex;
  flex-direction: row-reverse;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  /* allows stacking if needed */
}

.project-reverse-text {
  flex: 1;
  /* take up equal width */
  min-width: 280px;
  max-width: 300px;
}

.project-card-reverse img {
  flex: 1;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  min-width: 280px;
}

/* ABOUT ME */


.pepeha-container {
  position: relative;
  height: auto;
  max-width: 350px;
}

.pepeha-hover {
  position: relative;
  display: block;
  font-size: 1.4rem;
  line-height: 2rem;
}

.pepeha-text {
  transition: opacity 0.6s ease;
  display: block;
}

.pepeha-text.english {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.pepeha-hover:hover .maori {
  opacity: 0;
}

.pepeha-hover:hover .english {
  opacity: 1;
}

.about-me {
  display: flex;
  flex-direction: row;
  margin-left: 112px;
  margin-right: 112px;
  margin-top: 112px;




}


.about-me-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;


}



.about-values {
  padding: 7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: space-around;



}



.about-me img {

  object-fit: cover;
  max-width: 70%;


}



.what-i-do-container {
  display: flex;
  flex-wrap: wrap;
  margin-top: 2rem;
  gap: 2rem;


}

.what-i-do {
  display: flex;
  flex-direction: column;

  padding: 0;
  margin-bottom: 7rem;
  margin-top: 180px;
  gap: 180px;



}

.cores ul {
  padding-left: 1.2rem;
  /* or 0 if you want no indent */
  list-style-type: disc;
  /* or 'square', 'circle', or 'none' */
  margin: 0;
  color: #e2e2e2;
  font-weight: 200;
}

.cores {
  flex: 1;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  background: rgba(255, 255, 255, 0.15);
  /* semi-transparent white */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);

  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.8rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  /* soft shadow */

  padding: 32px 18px 18px 18px;
  color: #111;
  font-weight: 500;
  text-align: left;
  justify-content: flex-start;

}

.cores .icon {
  width: 82px;
  /* adjust as needed */
  height: auto;
  margin-bottom: 1rem;
  /* space below icon */
  display: block;
  margin-left: auto;
  margin-right: auto;
  color: grey;
  /* centers the icon */
}




.stacked-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 224px;
  /* space between boxes */

}

.project-page .stack-box {
  flex: 1;
  display: flex;

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 0.4rem;
  border: 1px solid rgba(0, 0, 0, 0.3);

  font-weight: 500;
  padding: 32px;
  margin: 62px;
  text-align: left;
  /* ensures equal height */
  justify-content: flex-end;


}

.project-page .what-i-do {
  margin-top: 0;
}

.project-page .tools {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  /* 3 columns */
  row-gap: 0.5rem;
  /* tighter vertical spacing between rows */
  column-gap: 1rem;
  /* normal horizontal spacing */
  justify-items: center;
  gap: 2rem;
  margin: auto;
}

.stack-box {
  flex: 1;
  display: flex;

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.3);

  font-weight: 500;
  padding: 32px;
  margin: 96px;
  text-align: left;
  /* ensures equal height */
  justify-content: flex-end;


}

.stack-box-2 {
  flex: 1;
  display: flex;
  flex-direction: column;


  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.3);


  font-weight: 500;
  padding: 31px;
  margin: 96px;
  text-align: left;

}

.stack-left-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* keeps the <h1> on the left */
  gap: 2rem;
}

.right-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;

}



.right-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
}


.practices-container {

  display: flex;
  gap: 10rem;
  flex-direction: column;
  gap: 3rem;
  margin-top: .7rem;
  margin-right: 10%;



}

.my-kaupapa {

  display: flex;
  flex-direction: column;




}

.practices-container h1 {
  padding: 0;
  margin: 0;


}


/* PROJECT SPACES */


.circular-button:hover {
  background-color: #f4f3ff;
  /* Optional: light hover effect */
}

.stack-box-2 h5 {
  font-size: 1.5rem;
  font-weight: 600;
  /* color: #3b3b3b; */


}


.buttons {
    display: flex;
    flex-direction: row;
    gap: 1.2rem;
  }



.blank {
  width: 100%;
  height: 20rem;


}

.project-stack-box {
  flex: 1;
  display: flex;
  background: linear-gradient(145deg,
      rgba(0, 0, 0, 0.6),
      rgba(0, 0, 0, 0.3));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.3);

  font-weight: 500;
  padding: 2rem;
  text-align: left;
  min-height: 500px;
  /* ensures equal height */
  justify-content: flex-end;
  max-height: 550px;

}

.process-stack-box {
  flex: 1;
  display: flex;

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.3);

  font-weight: 500;
  padding: 2rem;
  text-align: left;
  min-height: 500px;
  /* ensures equal height */
  justify-content: flex-end;
  max-height: 1500px;

}

.process-container {

  display: flex;
  flex-direction: row;
  gap: 10rem;
  gap: 3rem;
  margin-top: 5rem;



}

/* .process-challenges {
  margin-top:5rem;


}

.process-columns { 
  display: flex;
flex:1;
} */





footer {

  background: linear-gradient(90deg, #ffffff 0%, #ffedf4 50%, #ffd1e2 100%);
  color: #333;
  font-size: 0.9rem;
  margin-top: 10rem;
  flex-direction: column;
  align-content: center;
  display: flex;
  flex-wrap: wrap;
  padding-top: 2rem;
  padding-bottom: 2rem;
  padding-left: 0;
  padding-right: 0;
  z-index: -10;


}

.footer-icon {
  align-content: center;


}

.footer a {
  text-decoration: none;
  color: rgb(18, 18, 18);
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background 0.9s ease;

}

.footer-horizontal {

  display: flex;
  justify-content: space-around;
  /* or space-around/space-evenly */

  width: 100%;
  padding: 2rem 5rem 2rem 5rem;
  /* optional spacing from edges */
  flex-wrap: wrap;
  /* optional, helps on smaller screens */
  gap: 1rem;
}

.footer-icon img {

  height: 30px;
  object-fit: contain;



}

.top {


  text-align: center;
  padding: 1rem;

}


.top a {
  border-style: solid;
  width: 100%;
  text-align: center;
  margin-bottom: 2rem;

}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: space-evenly;
}

.footer-nav a {
  font-size: 1rem;
  text-decoration: none;



}

.footer-contact p {

  color: #333;


}


/* WORKS PAGE STARTS HERE */


.works-section {

  margin-top: 10rem;
}

.section-title {
  text-align: center;
  margin-top: 7rem;



}

.works-title {
  margin-left: 112px;
  margin-right: 112px;


}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3 equal columns */
  gap: 4rem;
  /* space between tiles */
  margin-left: 112px;
  margin-right: 112px;
}

.works-grid-blank {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3 equal columns */
  gap: 4rem;
  /* space between tiles */
  margin-left: 112px;
  margin-right: 112px;
  margin-top: 56px;
}


.works-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}


.works-card img {
  width: 100%;
  height: auto;
  display: block;
}

.works-card-blank::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  /* adjust to match your images */
  background-color: #403f41;
  /* light grey */
  border-radius: 8px;
  /* optional */
}

.works-card-blank img {
  display: none;
}


.project-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}


.project-info .year {
  color: gray;
  font-size: 0.9rem;
}

.info-container {
  margin-bottom: 5rem;
}

/* WORKS HERE */
.works-hero {
  margin-top: 7rem;
  margin-left: 96px;
  margin-right: 96px;
  flex-wrap: wrap;
  box-sizing: border-box;
  justify-content: center;
}



.works-hero-text {
  display: flex;
  flex-direction: row;
  text-align: left;
  gap: 2rem;
  /* reduce gap for smaller screens */
  margin-bottom: 0;
  box-sizing: border-box;

}

.hero-paragraph,
.hero-copy {
  flex: 1 1 200px;
  /* flexible basis 200px, can grow and shrink */
  min-width: 0;
  /* important to allow flex shrink */
  margin-bottom: 0;
}

/*  */



.gallery {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 42px 2rem 0 2rem;
  margin-left: 4rem;
  margin-right: 4rem;
}

.gallery-grid {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 2rem;
}

.gallery-item.tall {
  aspect-ratio: auto;
  /* override square ratio */
  aspect-ratio: 1 / 2;
}

.large {

  max-width: 50vw;
}



.gallery-block {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.gallery-item {
  flex: 1;
  aspect-ratio: 1 / 1;
  /* Or 1/1, 4/3, etc. based on your visual preference */
  overflow: hidden;
  position: relative;
  /* Needed for the image to absolutely fill it */
}



.gallery-banner {
  max-width: 100%;



}

.gallery-banner img {
  object-fit: cover;
  max-width: 100%;


}

.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process-info {

  padding: 32px;
  gap: 2rem;


}

.process-columns {
  display: flex;
  flex-direction: row;
  gap: 6rem;
  padding: 4rem;
  padding-left: 0;
  /* this is the space between the columns */
}




.brief-container {

  display: flex;
  flex: 1;
  flex-direction: row;
  width: 100%;
  /* take up full width of container */
  /* limit width on large screens */
  margin: 0 auto;
  /* center the box horizontally */
  padding: 1rem;
  gap: 4rem;
  text-align: left;


}



.caption {

  width: 80%;
  /* take up full width of container */
  /* limit width on large screens */
  margin: 0 auto;
  /* center the box horizontally */
  padding-top: 0;


}

.my-role {

max-width: 100%;
    width: 100%;


}


.hero-img {
  width: 100%;
  height: auto;
  display: block;

}



.question {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  color: #F1C5C2;


}

.placeholder-box {
  width: 100%;
  height: 100px;
  background-color: none;
  /* optional light gray */
  border: 2px dashed #ccc;
  /* helps visualize the box */
  margin-bottom: 2rem;
}

.practices-container {
  flex-direction: column;
  gap: 2rem;
  margin-right: 0;
  text-align: left;
  padding-left: 5rem;
}

.practices-container ul li {
  color: white;
  font-weight: 200;
  margin-left: 2rem;
}

.practices-container p,
.practices-container h5,
.my-kaupapa {
  text-align: left;
  align-items: center;
}

/* SECTION COLUMN */
.section-column {
  display: flex;
  flex-direction: column;
  padding: 7rem;
  align-items: center;
}

.section-column div {
  width: 80vw;
}

.section-column h2,
.section-column h4,
.section-column p {
  text-align: center;
}

.section-img {
  text-align: center;
  font-size: 1rem;
  padding: 1rem;
}

/* PROJECTS */
.projects {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  padding: 2rem;
}

.project-card {
  display: flex;
  flex-direction: column;
}



/* FOOTER */
.footer {
  padding: 2rem;
  text-align: center;
}

.footer-horizontal {
  flex-direction: row;
  align-items: center;
}

.footer-nav {
  flex-direction: row;
  gap: 0.5rem;
}

.footer-contact {
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .stack-box-2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 2rem;
    width: 100%;
    margin: 0;
  }

  .brief-container {

    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    /* take up full width of container */
    /* limit width on large screens */
    /* center the box horizontally */
    padding: 32px;
    gap: 4rem;
    text-align: left;


  }
}



.about-me-container h4 {
  text-align: center;



}

.selfie {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;


}

.about-me img {

  object-fit: cover;
  max-width: 70%;


}

.about-values {
  margin-top: 7rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: space-around;



}



.challenges-right {
  flex:1;



}

.poupou-image-hidden { display: none;}


/* GSAP HERE */



@media (max-width: 768px) {

  /* General fixes */
  body {
    overflow-x: hidden;
  }

  /* NAVIGATION */
  .nav-toggle {
    display: flex;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: flex;
    flex-direction: column;
  }

  .mobile-only img {
    max-width: 50%;
    margin: auto;
  }

  .poupou-image-hidden {

    display: flex;
    justify-content: center;
    margin: auto;
    width:60%;
  }



  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-color: rgba(255, 255, 255, 0.1);
    /* translucent white */
    backdrop-filter: blur(15px);
    /* blur effect */
    -webkit-backdrop-filter: blur(15px);
    /* Safari support */
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 5rem;
    z-index: 999;
    transition: all 0.3s ease;
    color: #000000;

  }

  .nav-links.open {
    display: flex;
    color: #3b3b3b;
  }

  .nav-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    background: none;
    border: none;
    color: rgb(0, 0, 0);
    cursor: pointer;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links.open a {
    color: black;
  }

  .contact-container {
    display: none;
  }

  nav {
    justify-content: space-between;
  }

  .nav-selected {
    color: #000000;

  }



  .nav-left {
    display: none;
  }

  /* HERO SECTION */

  .space-to-move {
    display: flex;
    position: relative;
    margin-top: 2rem;

  }

  .poupou-image {
    display: none;
  }

  @media (max-width: 768px) {
    .tiki {
      width: 400px;
      opacity: .5;
    }
  }

  .hero-header {
    margin-top: 2rem;
    flex-direction: column;
    align-items: center;
    
    padding: 1rem;
    
  }

   .hero-header h1 {
   font-size: 3rem;
  }

    .hero-header h3 {
   display: none;
  }

      .hero-header b {
   font-size: 1.4rem;
  }

  .hero-title {
    white-space: wrap;
    /* 👈 Prevents line break */
    width: 90vw;
    /* 👈 Full viewport width */
    display: flex;
    font-size: 3rem;
    line-height: 1;
    font-weight: 700;
    align-content: center;

  }



  .info-box,
  .info-box-2 {
    max-width: 90vw;
    gap: .5rem;
    /* or just remove the max-width entirely */
  }


  .info-box,
  .info-box p {

    width: 100%;
    text-align: center;

  }

  .buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .button {
    width: 100%;
  }

  .info-image-container img {
    position: static;
    width: 100%;
    object-fit: cover;
    display: block;
  }

  /* SECTION - WHAT I DO */
  @media (max-width: 768px) {
    .what-i-do-container {
      flex-direction: column;
      gap: 2rem;
      padding: 0;
      width: 100%;
    }

    .what-i-do {
      display: flex;
      flex-direction: column;

      padding: 1rem;
      margin-bottom: 10rem;
      margin-top: 10rem;
      gap: 180px;



    }


  }

  /* SECTION LEFT & RIGHT */
  .section-left,
  .section-right {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
    margin: 0;
  }

  .section-atea { margin:auto;}

  .info-container {
    display: flex;
    flex-direction: column;
  }


  .info-image-container,
  .waharoa {
    width: 100%;
    max-width: 600px;
  }

  /* STACK BOXES */
  .stack-box {
    flex-direction: column;

    padding: 1.5rem;
    gap: 2rem;
    margin: 0;

  }

  .cores {
    max-width: 100%;
    align-items: center;
  }

  .cores p,
  .cores h5 {
    text-align: center;
    align-items: center;
  }

  .stack-left-item {
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .tools {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 3 columns */
    row-gap: 0.5rem;
    /* tighter vertical spacing between rows */
    column-gap: 1rem;
    /* normal horizontal spacing */
    justify-items: center;
    gap: 2rem;
    margin: auto;

  }

  .works-grid {
  display: flex;
  flex-direction: column;
  /* 3 equal columns */
  gap: 4rem;
  /* space between tiles */
  margin-left: 32px;
  margin-right: 32px;
}

  .tools img {
    height: 32px;
  }

  .project-page .tools {
    grid-template-columns: 1fr;
    /* One column on mobile */
    justify-items: start;
    /* Optional: align items left */
  }
}


/* MODALS and contact page */

@media (max-width: 720px) {
  .modal-content {
    width: 90vw;
    /* Almost full width on small screens */
    height: auto;
    /* Let content determine height */
    padding: 2rem 1rem;
    /* Smaller padding for tight space */
    background-size: contain;
    margin: auto;
  }

  .modal-content form {
    width: 100%;
    /* Full width inside the modal */
    gap: 0.8rem;
    /* Slightly tighter spacing */
  }

  .modal-content textarea {
    height: 120px;
    /* Slightly shorter for smaller screens */
    font-size: 0.95rem;
    /* Slightly smaller text */
    padding: 0.8rem;
  }

  .modal-content input {
    padding: 0.8rem;
    font-size: 0.95rem;
  }

  /* PRocess */
  .process-columns {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    padding: 0rem;
    padding-left: 0;
    /* this is the space between the columns */
  }

  .process-columns p {
    width: 100%;
    min-width:100%;
  }

.about-me {
  display: flex;
  flex-direction: column;
  margin: 32px;
  

}

.works-section {

  margin-top: 2rem;
}

.caption {

  width: 100%;
  /* take up full width of container */
  /* limit width on large screens */
  margin: 0 auto;
  /* center the box horizontally */
  padding-top: 0;

}

.my-role {

  width: auto;
  /* take up full width of container */
  /* limit width on large screens */
  margin: 0;
  /* center the box horizontally */
  padding-top: 0;

}

.my-role p {

  width: 100%;


}

.works-hero {
  margin-top: 7rem;
  margin-left: 1rem;
  margin-right: 1rem;
  flex: 1;
  flex-wrap: wrap;
  box-sizing: border-box;
  justify-content: center;
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 42px 2rem 0 2rem;
  margin-left: 1rem;
  margin-right: 1rem;
}

.process-info {

  padding: 1rem;
  gap: 2rem;


}

a.button {
  font-family: 'Sen', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  width: 100%;
  border-radius: 13px;
  border: 2px solid #ffffff;
  cursor: pointer;
  background: none;
  color: #ffffff;
  padding: 0.5rem 1rem 0.5rem 1rem;
  text-decoration: none;     /* removes underline */
  display: inline-block;     /* makes it behave like a button */
  text-align: center;
}

a {  text-decoration: none;


}

a.button1 {
  font-family: 'Sen', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  width: 100%;
  border-radius: 13px;
  border: 2px solid #ffffff;
  cursor: pointer;
  background: white;
  color: #5C5E69;
  padding: 0.5rem 1rem 0.5rem 1rem;
  text-decoration: none;     /* removes underline */
  display: inline-block;     /* makes it behave like a button */
  text-align: center;
}

}