@font-face {
  font-family: "Fantome";
  src:
    url("../assets/fonts/Fantome-Regular.woff2") format("woff2"),
    url("../assets/fonts/Fantome-Regular.woff") format("woff"),
    url("../assets/fonts/Fantome-Regular.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "AudiowideCustom";
  src: url("../assets/fonts/Audiowide-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --lavender: #979dc7;
  --violet: #8f8ac8;
  --white: #ffffff;
  --ink: #272c39;
  --glass: rgba(255, 255, 255, 0.48);
  --line: rgba(39, 44, 57, 0.22);
  --shadow: 0 18px 50px rgba(39, 44, 57, 0.20);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "AudiowideCustom", system-ui, sans-serif;
  color: var(--ink);
  background: #cfd3f4;
  line-height: 1.7;
  overflow-x: hidden;
}

/* BACKGROUND */

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 20%, #ffffff 0 20%, transparent 42%),
    linear-gradient(180deg, #979dc7 0%, #f9f9ff 45%, #a7afd3 100%);
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.22;
}

/* NAVBAR */

.navbar {
  position: sticky;
  top: 18px;
  z-index: 10;
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: "Fantome", sans-serif;
  font-size: 1.15rem;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a,
.btn {
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.34);
  transition: 0.25s;
}

.nav-links a:hover,
.nav-links .active,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(39, 44, 57, 0.18);
  background: #ffffff;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  padding: 8px 12px;
  color: var(--ink);
}

/* GENERAL LAYOUT */

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.page-top {
  padding-top: 56px;
}


.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  margin: 0 0 12px;
}

h1,
h2,
h3 {
  font-family: "AudiowideCustom", sans-serif;
  line-height: 1.05;
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(3.3rem, 8vw, 7.2rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.lead {
  font-size: clamp(1rem, 2vw, 1.35rem);
  max-width: 680px;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn.primary {
  background: linear-gradient(135deg, #ffffff, #dfe3ff 45%, #9ba4d1);
  font-weight: bold;
}

/* HERO */

.hero {
  min-height: 78vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-visual {
  position: relative;
  min-height: 70vh;
  display: grid;
  place-items: center;
}

.orb {
  position: absolute;
  width: min(420px, 80vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 25%,
    #ffffff,
    #cdd2f7 44%,
    #8d96c6 70%,
    #ffffff 100%
  );
  filter: blur(0.2px);
  box-shadow:
    inset -18px -18px 40px rgba(39, 44, 57, 0.18),
    0 30px 80px rgba(39, 44, 57, 0.22);
}

.hero-logo {
  position: relative;
  width: min(390px, 75vw);
  filter: drop-shadow(0 30px 35px rgba(39, 44, 57, 0.28));
}

.floating {
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-18px) rotate(1deg);
  }
}

/* WINDOWS / POPUPS */

.popup,
.window-card {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  border-radius: 26px;
  overflow: hidden;
}

.window-card {
  padding: 0 28px 28px;
}

.window-content {
  padding-top: 6px;
}

.window-content h1 {
  margin-top: 0;
}

.popup-bar {
  height: 44px;
  margin: 0 -28px 24px;
  padding: 0 14px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.9),
    rgba(151, 157, 199, 0.75)
  );
  border-bottom: 1px solid var(--line);
  font-family: "AudiowideCustom", sans-serif;
}

.popup-bar button {
  border: 0;
  border-radius: 8px;
  background: linear-gradient(#ffb2c0, #d94f65);
  color: #ffffff;
  font-size: 1.2rem;
  line-height: 1;
  padding: 4px 12px;
  cursor: pointer;
}

.small-popup {
  position: absolute;
  right: 0;
  bottom: 35px;
  width: 260px;
  padding: 0 20px 20px;
}

.small-popup .popup-bar {
  margin: 0 -20px 15px;
}

/* INTRO / ABOUT */

.intro-grid,
.about-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.profile-card,
.portrait {
  border: 12px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
  transform: rotate(3deg);
  background: #ffffff;
}

.profile-card img,
.portrait {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.portrait {
  max-width: 430px;
  justify-self: end;
  border-radius: 18px;
}

.fact-box {
  grid-column: 1 / -1;
  max-width: 620px;
  padding: 0 28px 24px;
}

/* PROJECTS */

.section-heading {
  text-align: center;
  margin-bottom: 30px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-grid.large {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.project-card {
  display: block;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.28s;
}

.project-card:hover {
  transform: translateY(-8px) rotate(-0.4deg);
  box-shadow: 0 26px 60px rgba(39, 44, 57, 0.28);
}

.project-card img {
  width: 100%;
  height: 265px;
  object-fit: cover;
  display: block;
}

.project-card div {
  padding: 20px;
  text-align: center;
}

.project-card p {
  font-family: "AudiowideCustom", sans-serif;
  font-size: 1.7rem;
  margin: 0;
  line-height: 1.1;
}
.project-card span {
  font-size: 0.9rem;
}

/* PROJECT DETAIL */

.project-detail h1 {
  text-align: center;
}

.hero-image {
  width: 100%;
  max-height: 650px;
  object-fit: contain;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.36);
  box-shadow: var(--shadow);
  margin: 24px 0 42px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 32px;
}

.image-gallery img {
  width: 100%;
  border-radius: 26px;
  box-shadow: var(--shadow);
  background: #ffffff;
}

/* CONTACT */

.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.contact-links a,
.back-link {
  color: var(--ink);
  font-weight: bold;
}

/* FOOTER */

.footer {
  text-align: center;
  padding: 36px 16px;
}

/* ANIMATIONS */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 800px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 0;
    display: none;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 12px;
    box-shadow: var(--shadow);
  }

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

  .hero,
  .intro-grid,
  .about-layout,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 55px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .portrait {
    justify-self: center;
  }

  h1 {
    font-size: 3.2rem;
  }

  .section {
    padding: 58px 0;
  }

  .small-popup {
    right: 20px;
  }

  .navbar {
    top: 10px;
  }
}

.contact-page {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
}

.contact-links {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: bold;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.36);
  transition: 0.25s;
}

.contact-links a:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(39, 44, 57, 0.18);
}

.contact-links svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.client-mail {
  display: inline-block;
  color: var(--ink);
  font-weight: bold;
  margin: 6px 0 24px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px;
  font-family: "AudiowideCustom", system-ui, sans-serif;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
}

.contact-form textarea {
  resize: vertical;
}

@media (max-width: 800px) {
  .contact-page {
    grid-template-columns: 1fr;
  }
}
.contact-page h1{
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: .9;
  margin-bottom: 24px;
}
.about-layout h1{
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: .9;
  margin-bottom: 24px;
}

.required{
  color:#d94f65;
  font-size:.9em;
}

.contact-form label{
  display:block;
}

.contact-form label .required{
  display:inline;
  margin-left:4px;
}

.draggable-popup{
  cursor:grab;
  user-select:none;
}

.draggable-popup .popup-bar{
  cursor:grab;
}

#studio-popup {
  position: absolute;

  right: -85px;
  bottom: 10px;

  width: 320px;

  min-height: auto;
  z-index: 5;

  text-align: center;
  padding: 0 24px 22px;
}

#studio-popup .popup-bar {
  margin: 0 -24px 18px;
}

#studio-popup p {
  margin: 0;
  line-height: 1.5;
}

/* mobiel */
@media (max-width: 800px) {

  #studio-popup {
    right: 50%;
    transform: translateX(50%);

    bottom: -40px;

    width: 260px;
  }

}
#studio-popup.hidden {
  display: none;
}

.project-card p,
.project-card span {
  display: block;
  text-align: center;
}

.project-card div {
  text-align: center;
}

.project-detail p,
.project-detail .lead,
.project-detail .two-col,
.project-detail .window-card {
  text-align: center;
}

.project-detail .two-col {
  justify-items: center;
}

.project-detail .window-card p {
  margin-left: auto;
  margin-right: auto;
}

.project-detail .lead {
  max-width: 900px;
  margin: 0 auto;
}

.window-hidden {
  animation: closeWindow 0.25s ease forwards;
}

.window-return {
  animation: returnWindow 0.45s ease;
}

@keyframes closeWindow {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(0.85);
  }
}

@keyframes returnWindow {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }

  70% {
    transform: scale(1.04);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.hover-image {
  position: relative;
  overflow: visible;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.hover-image img {
  width: 100%;
  display: block;
}


.hover-image:hover .image-caption {
  opacity: 1;
}

@media (max-width: 800px) {

  .image-caption {
    opacity: 0;

    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: none;

    padding: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.25s ease;
  }


}
.image-caption {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: 0.25s;
}

.image-gallery {
  align-items: start;
}

.hover-image {
  align-self: start;
  height: fit-content;
}

.hover-image img {
  height: auto;
}

.project-detail .image-gallery {
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
  align-items: start;
}

.project-detail .hover-image {
  background: transparent;
}

.studio-ostrea-page .image-gallery {
  margin-bottom: 48px;
}



#studio-tip-popup {
  position: absolute;

    top: -80px;
  right: -360px;

  left: auto;

  width: 300px;

  
  width: 300px;

  height: auto;
  min-height: 0;

  z-index: 80;
}
#studio-tip-popup p {
  margin: 0;
}

#studio-tip-popup .popup-tip-mobile {
  display: none;
}

@media (max-width: 800px) {

  #studio-tip-popup {
    position: relative;

    top: auto;
    left: auto;
    right: auto;

    width: 100%;

    margin: 24px auto;
  }

  #studio-tip-popup .popup-tip-desktop {
    display: none;
  }

  #studio-tip-popup .popup-tip-mobile {
    display: block;
  }

}





.carousel {
  position: relative;
  max-width: 1000px;
  height: 560px;
  margin: 24px auto 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-image {
  position: absolute;
  top: 50%;
  left: 50%;
  max-height: 520px;
  max-width: 58%;
  object-fit: contain;
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: #ffffff;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  transition: 0.45s ease;
  z-index: 1;
}

.carousel-image.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  z-index: 3;
}

.carousel-image.prev-img {
  opacity: 0.45;
  transform: translate(-115%, -50%) scale(0.72);
  z-index: 2;
}

.carousel-image.next-img {
  opacity: 0.45;
  transform: translate(15%, -50%) scale(0.72);
  z-index: 2;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 6;
  transform: translateY(-50%);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  font-size: 2rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

@media (max-width: 800px) {
  .carousel {
    height: 440px;
  }

  .carousel-image {
    max-width: 78%;
    max-height: 400px;
  }

  .carousel-image.prev-img {
    transform: translate(-105%, -50%) scale(0.62);
  }

  .carousel-image.next-img {
    transform: translate(5%, -50%) scale(0.62);
  }
}

.fact-home {
  margin-top: 28px;
  padding: 0 28px 28px;
}

.fact-home ul {
  padding-left: 24px;
  margin: 0;
}

.fact-home li {
  margin-bottom: 10px;
}

.photo-stack-img {
  position: absolute;
  width: 68%;

  border: 1px solid rgba(255, 255, 255, 0.55);

  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);

  padding: 10px;

  border-radius: 28px;

  box-shadow:
    0 20px 40px rgba(39, 44, 57, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.35);

  object-fit: cover;

  transition: 0.25s ease;
}

.photo-stack {
  position: relative;
  min-height: 520px;
}

.photo-one {
  top: -80px;
  left: 40px;
  transform: rotate(-5deg);
  z-index: 3;
}

.photo-two {
  top: 280px;
  right: -25px;
  transform: rotate(6deg);
  z-index: 1;
}
.photo-stack-img:hover {
  z-index: 4;
  transform: rotate(0deg) scale(1.03);
}

@media (max-width: 800px) {
  .photo-stack {
    min-height: 560px;
  }

  .photo-stack-img {
    width: 78%;
  }
}


.video-section {
  margin-top: -60px;
  padding-bottom: 24px;
}

.video-window {
  max-width: 820px;
  margin: 0 auto;
}

.video-wrapper {
  padding: 18px;
}

.video-wrapper video {
  width: 100%;
  height: 430px;
  display: block;
  object-fit: cover;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 800px) {
  .video-wrapper video {
    height: 260px;
  }
}


.meet-page .lead {
  max-width: 960px;
}

.meet-intro {
  max-width: 900px;
  margin: 42px auto 72px;
  text-align: center;
}

.meet-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: center;
  margin: 72px 0;
}

.meet-block.reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.meet-block.reverse .meet-text {
  order: 2;
}

.meet-block.reverse .meet-images {
  order: 1;
}

.meet-text {
  padding: 0 28px 28px;
}

.meet-images {
  display: grid;
  gap: 22px;
}

.meet-images img {
  width: 100%;
  display: block;
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.35);
}

.meet-images.single img {
  max-height: 620px;
  object-fit: contain;
}

.meet-prototype-btn {
  display: inline-block;
  margin-top: 18px;
}

@media (max-width: 800px) {
  .meet-block,
  .meet-block.reverse {
    grid-template-columns: 1fr;
  }

  .meet-block.reverse .meet-text,
  .meet-block.reverse .meet-images {
    order: initial;
  }

  .meet-block {
    margin: 48px 0;
  }
}

.research-slider {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.research-slider img {
  width: 100%;
  height: 520px;
  display: block;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.35);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;

  border: 1px solid var(--line);
  border-radius: 999px;

  width: 52px;
  height: 52px;

  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);

  font-size: 2rem;
  cursor: pointer;

  box-shadow: var(--shadow);

  display: flex;
  align-items: center;
  justify-content: center;

  transition: 0.25s;
}

.slider-btn:hover {
  transform: translateY(-50%) scale(1.08);
  background: #ffffff;
}

.slider-btn.prev {
  left: 14px;
}

.slider-btn.next {
  right: 14px;
}

@media (max-width: 800px) {
  .research-slider img {
    height: 320px;
  }
}

.research-slider img {
  width: 100%;
  height: 520px;
  display: block;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.35);

  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.research-slider img.changing {
  opacity: 0;
  transform: scale(0.96);
}

.window-content h2 {
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 800px) {

  .window-content h2 {
    font-size: clamp(2rem, 8vw, 4rem);
    line-height: 0.95;
  }

}

.video-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;

  padding: 0 18px 18px;
}

.video-buttons .btn {
  min-width: 210px;
  text-align: center;
}

.video-buttons .btn.primary {
  background: linear-gradient(
    135deg,
    #ffffff,
    #dfe3ff 45%,
    #9ba4d1
  );
}

.video-buttons .btn:hover {
  transform: translateY(-3px) scale(1.02);
}

#studio-tip-popup {
  height: fit-content !important;
  min-height: unset !important;
  max-height: fit-content !important;

  padding: 0 20px 18px !important;
}

#studio-tip-popup .popup-bar {
  height: 44px;
  margin: 0 -20px 16px !important;
}

#studio-tip-popup p {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.45;
}

#studio-tip-popup .popup-tip-desktop {
  display: block;
}

#studio-tip-popup .popup-tip-mobile {
  display: none;
}

button.btn {
  font-family: "AudiowideCustom", sans-serif;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.34);
  color: var(--ink);
  cursor: pointer;

  transition: 0.25s;

  appearance: none;
  -webkit-appearance: none;
}

button.btn.primary {
  background: linear-gradient(
    135deg,
    #ffffff,
    #dfe3ff 45%,
    #9ba4d1
  );

  font-weight: bold;
}



.image-gallery {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.customer-journey {
  width: 100%;
  border-radius: 32px;
  cursor: pointer;

  transition: transform 0.3s ease;
}

.customer-journey:hover {
  transform: scale(1.01);
}

.gallery-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.gallery-persona,
.gallery-figma {
  width: 100%;
  border-radius: 28px;
  cursor: pointer;

  transition: transform 0.3s ease;
}

.gallery-persona:hover,
.gallery-figma:hover {
  transform: scale(1.02);
}

.gallery-small {
  width: 100%;
  border-radius: 28px;
  cursor: pointer;

  transition: transform 0.3s ease;
}

.gallery-small:hover {
  transform: scale(1.02);
}

/* LIGHTBOX */

.lightbox {
  position: fixed;
  inset: 0;

  background: rgba(10, 10, 20, 0.88);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.3s ease;

  z-index: 9999;
}

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

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;

  border-radius: 24px;

  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

/* mobiel */

@media (max-width: 900px) {

  .gallery-row {
    grid-template-columns: 1fr;
  }

}

.image-gallery {
  position: relative;
}

.gallery-tip {
  position: absolute;

  top: 40px;
  left: -40px;
  bottom: auto !important;
  right: auto !important;

  width: 280px;
  height: auto !important;
  min-height: 0 !important;

  z-index: 5;
  text-align: center;
}



.gallery-tip .window-content,
.gallery-tip p {
  height: auto;
}

.gallery-tip p {
  margin: 0;
  line-height: 1.45;
}

@media (max-width: 900px) {

  .gallery-tip {
    position: relative;

    top: auto;
    left: auto;

    width: 280px;
    max-width: 90%;

    margin: 0 auto 24px;

    text-align: center;
  }

}

.hero-image-wrap {
  position: relative;
}

.hero-image-wrap .hero-image {
  cursor: pointer;
}

.hero-image-wrap .gallery-tip {
  top: 5px;
  left: -40px;
}

.page-top > .eyebrow {
  margin-bottom: 6px;
}

.page-top > h1 {
  margin-top: 0;
  margin-bottom: 38px;
}



/* MOBIEL: foto-stack netjes onder elkaar */
@media (max-width: 800px) {
  .photo-stack {
    min-height: auto;
    display: grid;
    gap: 28px;
    padding: 24px 0 0;
  }

  .photo-stack-img {
    position: relative;
    width: 88%;
    max-width: 360px;
    height: auto;
    margin: 0 auto;
  }

  .photo-one {
    top: auto;
    left: auto;
    transform: rotate(-4deg);
  }

  .photo-two {
    top: auto;
    right: auto;
    transform: rotate(4deg);
  }
}

/* MOBIEL: juiste tekst in Studio Ostrea tip */
@media (max-width: 800px) {
  #studio-tip-popup .popup-tip-desktop {
    display: none !important;
  }

  #studio-tip-popup .popup-tip-mobile {
    display: block !important;
  }
}

.success-popup {
  position: fixed;

  top: 120px;
  right: 30px;

  width: 320px;

  z-index: 9999;

  text-align: center;

  padding: 0 22px 20px;
}

.success-popup .popup-bar {
  margin: 0 -22px 16px;
}

.success-popup p {
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 800px) {

  .success-popup {
    right: 50%;
    transform: translateX(50%);

    width: 88%;
    max-width: 320px;
  }

}

@media (max-width: 900px) {
  .hero-image-wrap .gallery-tip {
    position: relative;
    top: auto;
    left: auto;
    transform: none;

    width: 280px;
    max-width: 90%;
    margin: 0 auto 24px;

    text-align: center;
  }
}


@media (max-width: 800px) {
  /* Meer ruimte tussen studio_ostrea.exe en intro_video.exe op home */
  .video-section {
    margin-top: 24px;
  }

  /* Meer ruimte tussen Bite Back intro tekst en tip.exe */
  .hero-image-wrap .gallery-tip {
    margin-top: 32px;
  }
}


@media (max-width: 800px) {

  .project-detail h1 {
    margin-bottom: 14px;
  }

  .project-detail .lead {
    margin-top: 0;
  }

}

.project-detail h1 {
  margin-bottom: 18px;
}

.project-detail .lead {
  margin-top: 0;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
}



.studio-carousel {
  height: 620px;
  margin: 32px auto 60px;
}

.studio-carousel .carousel-image {
  max-width: 70%;
}

.studio-carousel .carousel-image img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
}

@media (max-width: 800px) {

  .studio-carousel {
    height: 440px;
  }

  .studio-carousel .carousel-image {
    max-width: 82%;
  }

}

.studio-carousel .hover-image {
  position: absolute !important;
  overflow: hidden !important;
  border-radius: 28px;
}

.studio-carousel .hover-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
}

.studio-carousel .hover-image .image-caption {
  position: absolute !important;
  inset: 0 !important;

  width: 100% !important;
  height: 100% !important;

  border-radius: 28px;
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  display: grid;
  place-items: center;
}




@media (max-width: 800px) {

  .hero-logo {
    margin-bottom: 12px;
  }

  .hero-content {
    margin-top: -40px;
  }

}

@media (max-width: 800px) {

  .page-top {
    padding-top: 20px;
  }

}



@media (max-width: 800px) {

  .studio-carousel .image-caption {
    opacity: 0 !important;
    pointer-events: none;
  }

  .studio-carousel .hover-image.show-caption .image-caption {
    opacity: 1 !important;
    pointer-events: auto;
  }

}



@media (max-width: 800px) {

  .hero {
    min-height: auto;
    padding-bottom: 20px;
  }

  .hero-logo {
    margin-top: -40px;
    margin-bottom: -80px;
  }

}