@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Montserrat', sans-serif;
  background: #eaeaea;
}

.aixa-slide .aixa-section-title, 
.about-section-label,
.top-disclaim {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #8295AB;
}

.about-section-label {
  margin-bottom: 30px;
}

.hover-reveal {
  position: relative;
  display: inline-block;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: #ed1a76;
  text-underline-offset: 4px;
  cursor: help;
}

.hover-reveal::after {
  content: attr(data-alt);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);

  width: max-content;
  max-width: min(200px, calc(100vw - 32px));
  box-sizing: border-box;

  padding: 7px 12px;
  background: #1F1E3D;
  color: white;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: break-word;
  text-align: center;
  border-radius: 3px;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 20;
}

.hover-reveal:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 600px) {
  .hover-reveal::after {
    max-width: min(100px, calc(100vw - 32px));
  }
}

/* =====================================
   CAROUSEL
===================================== */

.carousel {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.track {
  display: flex;

  width: calc(var(--slide-count, 5) * 100%);
  height: 100%;

  transform: translateX(0);
  transition: transform 0.8s cubic-bezier(.77, 0, .18, 1);

  will-change: transform;
}

.slide {
  position: relative;

  width: calc(100% / var(--slide-count, 5));
  height: 100%;

  flex: 0 0 calc(100% / var(--slide-count, 5));

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

  overflow: hidden;
}

.slide-content {
  width: 80%;
  max-width: 1100px;
  text-align: center;
}

.slide h1 {
  font-size: clamp(40px, 8vw, 110px);
  font-weight: 400;
  letter-spacing: -4px;
  margin-bottom: 30px;
}

.svg-placeholder {
  width: 300px;
  height: 200px;
  margin: 30px auto;
  border: 1px dashed #999;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #999;
  font-size: 12px;
}

.arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px;
  color: #222;
  transition: opacity 0.3s;
}

.arrow:hover {
  opacity: 0.4;
}

.arrow.left {
  left: 20px;
}

.arrow.right {
  right: 20px;
}

.arrow svg {
  width: 15px;
  height: 20px;
}

/* =====================================
   WELCOME
===================================== */

.aixa-slide {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  padding: 250px 5% 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  overflow-x: hidden;
  color: #302e35;
}

.aixa-slide .aixa-profile {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1050px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(25px, 5vw, 65px);
  margin: 0 auto;
}

.aixa-slide .aixa-portrait {
  position: relative;
  width: clamp(220px, 27vw, 360px);
  aspect-ratio: 1;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  touch-action: none;
  overscroll-behavior: contain;
}

.aixa-slide .aixa-portrait img,
.aixa-slide .aixa-portrait svg {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.aixa-slide .aixa-portrait img {
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.aixa-slide .aixa-portrait canvas {
  touch-action: none;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.aixa-slide .aixa-logo {
  position: relative;
  flex: 0 1 auto;
  min-width: 0;
}

.aixa-slide .aixa-name {
  position: relative;
  font-size: clamp(42px, 6vw, 82px);
  font-weight: 900;
  letter-spacing: -4px;
  line-height: 1.05;
  white-space: nowrap;
  overflow-wrap: normal;
}

.aixa-slide .aixa-hi {
  position: absolute;
  z-index: 2;
  top: -10px;
  left: 0;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
  color: #1F1E3D;
}

.aixa-slide .aixa-subtitle {
  max-width: 380px;
  margin-top: -30px;
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.3;
  color: #1F1E3D;
}

/* =====================================
   WELCOME: INFORMATION
===================================== */

.aixa-slide .aixa-bottom {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 45px;
  margin: 40px 0 0 5%;
}

.aixa-slide .aixa-column {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-right: 3px;
}

.aixa-slide .aixa-characteristics,
.aixa-slide .aixa-tools,
.aixa-slide .aixa-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.aixa-slide .aixa-characteristics>div,
.aixa-slide .aixa-tools>div {
  font-size: 14px;
  font-weight: 600;
  color: #302e35;
}

.aixa-slide .aixa-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #302e35;
  text-decoration: none;
  transition: color 0.25s ease;
}

.aixa-slide .aixa-links a::after {
  content: '↗';
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.aixa-slide .aixa-links a.download::after {
  content: '↓';
}

.aixa-slide .aixa-tools {
  position: absolute;
  top: 33px;
  left: 0;
  gap: 7px;
  z-index: 10;
}

.aixa-slide .aixa-tool {
  position: relative;
  background-color: #fefefe;
}

.aixa-slide .aixa-tool-details {
  display: block;
  width: 500px;
  font-size: 15px;
  line-height: 1.6;
  color: #817b83;
  padding-top: 7px;
  border-bottom: 1px solid #1F1E3D;
}

.aixa-links {
  margin-bottom: 100px;
}

/* =====================================
   SCROLLYTELLING: TITLE
===================================== */

.scrolly-title {
  position: absolute;
  z-index: 10;
  top: 10px;
  left: 8%;
  width: 86%;
  max-width: 1150px;
  margin: 0 auto 15px;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.15;
}

h3.scrolly-title {
  margin-top: 55px;
  font-size: clamp(32px, 4vw, 38px);
}

/* =====================================
   SCROLLYTELLING: VISUALS
===================================== */

.scrolly-visual {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background: #F0F4F7;
  transition: background-color .7s ease;
}

.scrolly-sequences {
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
}

.scrolly-layer {
  position: absolute;
  inset: 0;

  overflow: hidden;
  pointer-events: none;

  contain: paint;
  isolation: isolate;
}

.scrolly-sequence {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  pointer-events: none;
}

.scrolly-loader {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #fff;
  color: #333;
  transition: opacity .4s ease, visibility .4s ease;
}

.scrolly-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.scrolly-loader p {
  margin-top: 55%;
  font-size: 14px;
  opacity: .65;
}

.scrolly-spinner {
  position: absolute;
  width: 36px;
  height: 36px;
  padding-top: 10px;
  border: 3px solid #ddd;
  border-top-color: #333;
  border-radius: 50%;
  animation: scrolly-spin .8s linear infinite;
}

@keyframes scrolly-spin {
  to {
    transform: rotate(360deg);
  }
}

/* =====================================
   SCROLLYTELLING: STEPS
===================================== */

.scrolly-slide {
  display: block;
  width: 100%;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  overscroll-behavior: auto;
}

.scrolly-slide::-webkit-scrollbar {
  display: none;
}

.scrolly-slide.is-loading {
  overflow-y: hidden !important;
  overscroll-behavior: none;
}

.scrolly-story {
  position: relative;
  width: 100%;
  overflow: visible;
}


.scrolly-steps {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.scrolly-step {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;

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

  padding: 0 10%;
}

.scrolly-step.position-top {
  align-items: flex-start;
  padding-top: 150px;
}

.scrolly-step.position-bottom {
  align-items: flex-end;
  bottom: -50px
}

.step-content {
  width: 100%;
  max-width: 380px;
  padding: 25px;

  background: rgba(255, 255, 255, .85);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  visibility: hidden;
  transition: none !important;
}

.step-content h2 {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 400;
}

.step-content p {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}


.story-circle {
  opacity: 0;
  transition: opacity .6s ease;
}

.circle-1 {
  fill: #f27e68;
}

.circle-2 {
  fill: #5277d9;
}

.circle-3 {
  fill: #8055b9;
}

/* =====================================
   SVG MAGNIFIER
===================================== */

#svg-magnifier {
  position: fixed;
  z-index: 999999;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  display: none;
  border: 2px solid white;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  background: white;
}

#svg-magnifier-content {
  position: absolute;
  transform-origin: top left;
  pointer-events: none;
}

/* =====================================
   DOT NAVIGATION
===================================== */

#navigation {
  position: fixed;
  top: 35px;
  left: 50%;
  transform: translateX(-50%);
  width: min(850px, calc(100% - 40px));
  max-width: 850px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)); /* change for 6 slides */
  align-items: start;
  z-index: 20;
  transition: opacity .3s ease, visibility .3s ease;
}

/* Connecting line */

#navigation::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 10%; /* 8.333 for 6 slides */
  right: 10%; /* 8.333 for 6 slides */
  height: 1px;
  background: #B2C9DF;
  z-index: 0;
}

/* Navigation items */

#navigation .nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
  cursor: pointer;
}

#navigation .dot {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  margin: 2px 0 0;
  border-radius: 50%;
  background: #B2C9DF;
}

#navigation .nav-item.active .dot {
  background: #ed1a76;
  transform: scale(1.35);
}

/* Labels */

.nav-label {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

#navigation .nav-label {
  position: absolute;
  top: 23px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 100px;
  white-space: nowrap;
  font-size: clamp(9px, 2.5vw, 12px);
  text-align: center;
}

/* All labels hidden by default */
.nav-label {
  opacity: 0;
  visibility: hidden;
}

.nav-item.active .nav-label {
  opacity: 1;
  visibility: visible;
  animation: hideNavLabel 0.3s ease 1s forwards;
  transition: none;
}

.nav-item:hover .nav-label {
  opacity: 1;
  visibility: visible;
  animation: none;
}

@keyframes hideNavLabel {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* Navigation visibility */

#navigation.is-hidden,
.nav-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.navigation-carousel,
.nav-carousel,
.carousel-navigation {
  transition: opacity .25s ease, visibility .25s ease;
}

/* =====================================
   ABOUT: SCROLLING
===================================== */

.about-scroll {
  width: 100%;
  height: 100%;
  max-height: 100dvh;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 110px 0 55px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  scrollbar-color: #8295AB transparent;
}

.about-inner {
  width: 86%;
  max-width: 1150px;
  margin: 0 auto;
  box-sizing: border-box;
}

.about-section {
  max-width: 1150px;
  margin: auto;
  padding: 35px 0 65px;
}

.about-section+.about-section {
  border-top: 1px solid rgba(31, 30, 61, .15);
}

.about-section h1 {
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 400;
  margin: 0 0 30px;
}

.about-section h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  margin: 0 0 30px;
  letter-spacing: -2px;
}

.about-section p {
  font-size: 16px;
  line-height: 1.85;
  color: #1F1E3D;
}

.about-section strong {
  color: #302e35;
}

/* =====================================
   ABOUT: INTRODUCTION
===================================== */

.about-intro-layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 60px;
  align-items: start;
  margin: 25px 20px 0 20px;
}

.about-intro-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-p {
  padding-top: 15px;
  border-top: 1px solid rgba(31, 30, 61, .12);
}

.about-detail:not(.last-about) {
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(31, 30, 61, .12);
}

.about-detail h3 {
  color: #8295AB;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-detail p {
  font-size: 14px;
}

.language-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* =====================================
   ABOUT: STRENGTHS
===================================== */

.about-strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.about-strength {
  display: grid;
  align-items: center;
  padding: 28px 24px;
  border-top: 2px solid #ed1a76;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  transition: transform .25s, background .25s, box-shadow .25s;
}

.about-strength-icon {
  display: block;
  width: 110px;
  height: 150px;
  object-fit: contain;
  margin: 0 auto 20px;
  transition: transform .3s ease;
}

.about-strength h3 {
  margin: 0;
  text-align: center;
}

.about-strength p {
  /* display: none; REMOVE TO HAVE INTERACTIVE CARDS */
  margin-top: 18px;
  font-size: 15px;
  text-align: center;
}

/* =====================================
   ABOUT: TESTIMONIALS
===================================== */

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.testimonial {
  padding: 25px 30px;
  border-left: 3px solid #ed1a76;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
}

.testimonial-short,
.testimonial-full {
  color: #1F1E3D;
  font-size: 15px;
  line-height: 1.85;
}

.testimonial-short {
  font-style: italic;
}

.testimonial-full {
  display: none;
}

.testimonial-quote {
  display: block;
  position: relative;
  padding-left: 28px;
  white-space: pre-line;
  font-style: italic;
}

.testimonial-quote::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -8px;
  color: #8295AB;
  font-family: Georgia, serif;
  font-size: 38px;
}

.testimonial-quote::after {
  content: "\201D";
  color: #8295AB;
  font-family: Georgia, serif;
  font-size: 23px;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(31, 30, 61, .12);
  color: #777;
  font-size: 13px;
}

.testimonial-author strong {
  color: #302e35;
  font-size: 15px;
}

.testimonial-toggle {
  /* display: none; */
  padding: 10px 0 0;
  border: 0;
  background: none;
  color: #8295AB;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* =====================================
   HOVER AND TOUCH BEHAVIOR
===================================== */

@media (hover: hover) and (pointer: fine) {

  .top-disclaim.mobile {
    display: none;
  }

  .top-disclaim.desktop {
    position: absolute;
    top:110px
  }

  .testimonial:hover {
    background: #fff;
    box-shadow: 0 5px 20px rgba(31, 30, 61, .07);
  }

  .about-strength:hover,
  .about-strength.is-pinned {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 5px 20px rgba(31, 30, 61, .07);
  }

  /* .about-strength:hover .about-strength-icon, */
  .about-strength.is-pinned .about-strength-icon {
    transform: scale(.65);
  }

  /* .about-strength:hover p, */
  .about-strength.is-pinned p {
    display: block;
  }

  .aixa-slide .aixa-tool:hover {
    color: #ed1a76;
  }

  .aixa-slide .aixa-links a:hover {
    color: #ed1a76;
  }

  .aixa-slide .aixa-links a:hover::after {
    opacity: 1;
    transform: translate(0, 0);
  }

  .gallery-card:hover img {
    transform: scale(1.05);
  }

  .gallery-card:hover .gallery-overlay {
    opacity: 1;
  }

  .gallery-card:hover .gallery-overlay,
  .gallery-card:focus-visible .gallery-overlay {
    opacity: 1;
  }

  .gallery-card:hover .gallery-image {
    transform: scale(1.04);
  }

  .nav-item:hover .nav-label {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease, visibility 0s;
  }
}

.about-strength.is-expanded .about-strength-icon {
  transform: scale(.65);
}

.about-strength.is-expanded p {
  display: block;
}

.testimonial-toggle {
  display: block;
}

.testimonial.is-expanded .testimonial-short {
  display: none;
}

.testimonial.is-expanded .testimonial-full {
  display: block;
}

.aixa-slide .aixa-tool.closed .aixa-tool-details {
  display: none;
}

.aixa-slide .aixa-tool:not(.closed) {
  color: #ed1a76;
}

@media (hover: none),
(pointer: coarse) {
  .gallery-overlay {
    opacity: 1 !important;
  }
  .top-disclaim.desktop {
    display: none;
  }
  .top-disclaim.mobile {
    margin-bottom: 40px;
  }
}

/* =====================================
   MISC: GALLERY
===================================== */

.gallery-slide {
  box-sizing: border-box;
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  padding: 100px 7% 3vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.gallery-heading {
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
}

.gallery-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #8295AB;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

.gallery-heading h1 {
  margin: 0;
  color: #302e35;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -1.5px;
}

.gallery-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.gallery-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #8295AB;
  color: white;
  text-decoration: none;
  isolation: isolate;
}

.gallery-image {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-position: center;
  background-size: cover;
  transition: transform .4s;
}

.gallery-image-1 {
  background-image: url("../../assets/misc/videos.jpg");
}

.gallery-image-2 {
  background-image: url("../../assets/misc/profiles.jpg");
}

.gallery-image-3 {
  background-image: url("../../assets/misc/redesign.png");
}

.gallery-image-4 {
  background-image: url("../../assets/misc/airlines.png");
}

.gallery-overlay {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  padding: clamp(15px, 2vw, 25px);
  background: linear-gradient(to top,
      rgba(31, 30, 61, .95),
      rgba(31, 30, 61, .65) 65%,
      rgba(31, 30, 61, .1));
  opacity: 0;
  transition: opacity .25s;
}

.gallery-category {
  color: rgba(255, 255, 255, .75);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.gallery-overlay h2 {
  margin: 8px 0;
  color: white;
  line-height: 1.3;
}

.gallery-overlay h3 {
  margin: 0 0 8px;
  color: white;
  font-size: 15px;
}

.gallery-overlay p {
  margin: 0 0 12px;
  color: white;
  font-size: 13px;
  line-height: 1.6;
}

.gallery-link {
  align-self: flex-start;
  padding-bottom: 3px;
  border-bottom: 1px solid white;
  color: white;
  font-size: 12px;
  font-weight: 700;
}

/* =====================================
   REDUCED MOTION
===================================== */

@media (prefers-reduced-motion: reduce) {

  .track,
  .scrolly-visual,
  .story-circle {
    transition: none !important;
  }

  .scrolly-spinner {
    animation: none;
  }

  .aixa-slide .aixa-links a,
  .gallery-image,
  .gallery-overlay,
  .testimonial,
  .about-strength {
    transition: none;
  }
}

/* =====================================
   MEDIUM SCREENS
===================================== */

@media (max-width: 900px) {

  .aixa-slide {
    padding: 110px 5% 35px;
  }

  .aixa-slide .aixa-profile {
    gap: 25px;
  }

  .aixa-slide .aixa-portrait {
    width: clamp(190px, 27vw, 250px);
  }

  .aixa-slide .aixa-name {
    font-size: clamp(38px, 6vw, 58px);
    letter-spacing: -2px;
  }

  .aixa-slide .aixa-bottom {
    margin-top: 30px;
  }

  .aixa-slide .aixa-characteristics {
    gap: 20px;
  }
}

/* =====================================
   SMALLER SCREENS
===================================== */

@media (max-width: 700px) {

  .aixa-slide .aixa-intro {
    transform: scale(0.65);
  }

  .aixa-slide .aixa-tool-details {
    width: 200px;
  }
}

/* =====================================
   SCROLLYTELLING: MOBILE
===================================== */

@media (max-width: 600px) {

  .scrolly-step {
    padding: 0 6% 12vh;
  }

  .scrolly-title {
    top: 100px;
    left: 6%;
  }
}

/* =====================================
   MOBILE: WELCOME, ABOUT AND GALLERY
===================================== */

@media (max-width: 800px) {

  /* Welcome */

  p.top-disclaim { 
    position: relative;
    top: -10px;
    text-align: center;
  }

  .aixa-slide {
    height: 100%;
    min-height: 100vh;
    padding: 105px 7% 35px;
    justify-content: flex-start;
    overflow-y: auto;
    scrollbar-width: none;
  }

  .aixa-slide .aixa-profile {
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 25px;
    margin: 0 auto;
  }

  .aixa-slide .aixa-portrait,
  .aixa-portrait-wrap {
    width: min(65vw, 240px);
    max-width: 240px;
    flex-shrink: 0;
  }

  .aixa-slide .aixa-logo {
    width: 100%;
    text-align: center;
  }

  .aixa-slide .aixa-name {
    font-size: clamp(38px, 10vw, 52px);
    letter-spacing: -2px;
    line-height: 1.1;
    white-space: normal;
  }

  .aixa-slide .aixa-hi {
    position: relative;
    left: auto;
    display: block;
    margin-bottom: -20px;
  }

  .aixa-slide .aixa-subtitle {
    max-width: 320px;
    margin-top: -20px;
    font-size: 20px;
  }

  .aixa-slide .aixa-bottom {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 35px;
    margin: 45px 0 0;
  }

  .aixa-slide .aixa-characteristics {
    margin: 0 auto;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .aixa-slide .aixa-number {
    font-size: 11px;
  }

  .aixa-slide .aixa-heading {
    font-size: 14px;
  }

  .aixa-slide .aixa-description {
    font-size: 12px;
    line-height: 1.7;
  }

  .aixa-slide .aixa-tools,
  .aixa-slide .aixa-links {
    gap: 12px;
    font-size: 11px;
  }

  .aixa-slide .aixa-column {
    min-width: 0;
    align-items: center;
  }

  .aixa-slide .aixa-tools {
    position: relative;
    top: auto;
    left: -25px;
    align-items: flex-start;
  }

  .arrow {
    width: 15px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .arrow svg {
    width: 5px;
    height: 10px;
  }

  .arrow.left {
    left: 5px;
  }

  .arrow.right {
    right: 5px;
  }

  /* About */

  .about-scroll {
    padding: 100px 0 40px;
  }

  .about-inner {
    width: 88%;
  }

  .about-intro-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .about-strengths-grid {
    grid-template-columns: 1fr;
  }

  .about-section {
    padding: 30px 0 50px;
  }

  .about-section p {
    font-size: 15px;
  }

  .testimonial {
    padding: 20px;
  }

  /* Gallery */

  .gallery-slide {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    max-height: 100dvh;
    min-height: 0;

    display: flex;
    flex-direction: column;

    padding: 100px 7% 35px;
    gap: 20px;

    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;

    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 20px;

    width: 100%;
    flex: 0 0 auto;
  }

  .gallery-card {
    position: relative;
    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;
    min-height: 260px;

    overflow: hidden;
    border-radius: 4px;
    isolation: isolate;
  }

  .gallery-image {
    position: absolute;
    inset: 0;
    z-index: -1;

    width: 100%;
    height: 100%;

    background-position: center;
    background-size: cover;
  }

  .gallery-overlay {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-end;

    min-width: 0;
    padding: 22px;

    opacity: 1;
    background: linear-gradient(to top,
        rgba(31, 30, 61, .95),
        rgba(31, 30, 61, .65) 65%,
        rgba(31, 30, 61, .1));
  }

  /* Hide long descriptions on mobile */

  .gallery-overlay p {
    display: none;
  }

  /* Mobile title hierarchy */

  .gallery-overlay h2 {
    margin: 8px 0;
    font-weight: 500;
    line-height: 1.15;
  }

  .gallery-overlay h3 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
  }

  .gallery-overlay h3 em {
    font-weight: 400;
  }

  .gallery-link {
    margin-top: 8px;
  }


}

/* =====================================
   NARROW SCREENS
===================================== */

@media (max-width: 400px) {

  nav {
    width: calc(100% - 32px);
    max-width: none;
    top: 22px;
  }

  .nav-item {
    font-size: 10px;
  }

  .nav-item .dot {
    width: 8px;
    height: 8px;
    margin-bottom: 10px;
  }

  .nav-item:not(.last-nav)::before {
    top: 5px;
  }

  #navigation {
    width: calc(100% - 32px);
    max-width: none;
    top: 25px;
  }

  #navigation .nav-label {
    font-size: 10px;
  }
}

/* =====================================
   VERY SMALL MOBILE
===================================== */

@media (max-width: 380px) {

  .aixa-slide {
    padding-left: 5%;
    padding-right: 5%;
  }

  .aixa-slide .aixa-portrait {
    width: 190px;
  }

  .aixa-slide .aixa-name {
    font-size: 36px;
  }

  .aixa-slide .aixa-hi {
    font-size: 22px;
  }

  .gallery-card {
    min-height: 240px;
  }

  .gallery-overlay {
    padding: 16px;
  }

  .gallery-overlay h2 {
    font-size: 19px;
  }
}

/* =====================================
   EXTRA NARROW MOBILE
===================================== */

@media (max-width: 320px) {

  #navigation {
    width: calc(100% - 24px);
    top: 20px;
  }

  #navigation .nav-label {
    font-size: 9px;
  }
}

/* =====================================
   SHORT DESKTOP SCREENS
===================================== */

@media (min-width: 701px) and (max-height: 800px) {

  .aixa-slide {
    padding-top: 95px;
    padding-bottom: 20px;
  }

  .aixa-slide .aixa-portrait {
    width: clamp(190px, 24vh, 280px);
  }

  .aixa-slide .aixa-name {
    font-size: clamp(42px, 5.5vw, 72px);
  }

  .aixa-slide .aixa-bottom {
    margin-top: 22px;
  }

  .aixa-slide .aixa-characteristics {
    gap: 20px;
  }

  .aixa-slide .aixa-description {
    line-height: 1.5;
  }

  .aixa-slide .aixa-tools,
  .aixa-slide .aixa-links {
    margin-top: 14px;
  }
}


/* =====================================
   REGULAR PAGE: REUSABLE CONTENT LAYOUT
===================================== */

.regular-page {
  display: block;
  position: relative;
  width: 100%;
  min-height: 100%;
  height: auto;
  padding: 110px 0 65px;
  overflow: visible;
  box-sizing: border-box;
  color: #302e35;
  text-align: left;
  background-color: #fefefe;

  /* General box sizing */
  * {
    box-sizing: border-box;
  }

  /* Main content width */
  > h1,
  > h2,
  > h3,
  > p,
  > img,
  > header,
  > section,
  > div,
  > aside,
  > figure {
    width: 86%;
    max-width: 1150px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Main title */
  > .scrolly-title {
    position: relative;
    top: auto;
    left: auto;
    z-index: auto;
    width: 86%;
    max-width: 1150px;
    margin: 0 auto 15px;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.15;
  }

  > h3.scrolly-title {
    margin-top: 55px;
    font-size: clamp(32px, 4vw, 38px);
  }

  /* Images */
  > img {
    display: block;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
  }

  /* Typography */
  p,
  li {
    font-size: 16px;
    line-height: 1.5;
    color: #1F1E3D;
  }

  strong {
    color: #302e35;
  }

  h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.2;
  }

  h3 {
    font-size: 20px;
    font-weight: 600;
  }

  /* Section spacing */
  > header,
  > section {
    padding: 35px 0 65px;
    border-top: 1px solid rgba(31, 30, 61, .15);

    h2 {
      margin-bottom: 25px;
    }
  }

  ul {
    padding-left: 22px;
    margin: 15px 0 25px;
  }

  li {
    padding-left: 5px;
  }

  /* Introductory text */
  .intro-header {
    width: 86%;
    text-align: right;

    p {
      font-size: clamp(20px, 2.5vw, 18px);
      line-height: 1.2;
      color: #302e35;
    }
  }

  .left {
    text-align: left !important;
  }

  /* Disclaimer */
  .disclaimer {
    display: grid;
    grid-template-columns: 60px 1fr;
    align-items: center;
    gap: 20px;

    width: 86%;
    max-width: 1150px;
    margin: 35px auto 35px;
    padding: 20px 25px;
    
    border-left: 3px solid #ed1a76;
    background: #F0F4F7;

    img {
      grid-column: 1;
      grid-row: 1;
      width: 50px;
      height: 50px;
      object-fit: contain;
    }

    > div {
      grid-column: 2;
      grid-row: 1;
      text-align: left;
    }

    strong {
      display: block;
      margin-bottom: 5px;
    }

    p {
      margin: 0;
      font-size: 14px;
      line-height: 1.6;
    }
  }

  /* Context layout */
  .context-content {
    display: grid;
    grid-template-columns: 2fr 2fr;
    gap: 60px;
    align-items: start;
  }

  
  @media (max-width: 1175px) {
    .context-content {
      display: block;
    }
    .team-diagram-slot {
      margin-top: 30px;
      text-align: center;
    }
  } 

  .context-copy {
    width: 100%;
  }

  .role {
    margin-top: 25px;
    padding-top: 20px;
  }

  /* Media placeholders */
  .hero-slot,
  /* .team-diagram-slot, */
  .result-detail,
  .result-library,
  .result-dashboard {
    min-width: 0;
    min-height: 250px;
    background: rgba(255, 255, 255, .45);
  }

  /* Responsive layout */
  @media (max-width: 800px) {
    padding: 100px 0 45px;

    > h1,
    > h2,
    > h3,
    > p,
    > img,
    > header,
    > section,
    > div,
    > aside,
    > figure,
    > .scrolly-title {
      width: 88%;
    }

    p,
    li {
      font-size: 15px;
    }

    > header,
    > section {
      padding: 30px 0 50px;
    }
  }
}


.regular-page.gallery {
  
  p { 
    margin-top: 20px !important;
    margin-bottom: 20px !important;
  }

  p:not(.left) { 
    margin-bottom: 100px !important;
  }

  .container {
    width: 60%;
    img {
      width: 100%
    }
  }

  .intro-header {
    width: 100%;
  }
}


/* ==========================================
   SCROLLY END ACTIONS
========================================== */

.scrolly-end-actions {
  position: fixed;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%) translateY(20px);

  display: flex;
  justify-content: center;
  gap: 16px;

  z-index: 100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    visibility 0s linear 0.5s;
}

.scrolly-end-actions.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);

  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    visibility 0s;
}

.end-button {
  display: inline-block;
  padding: 12px 24px;

  border: 1px solid #222;
  border-radius: 30px;

  background: white;
  color: #222;

  font: inherit;
  font-size: 14px;
  text-decoration: none;

  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.end-button:hover {
  background: #222;
  color: white;
}


/* =====================================
   GLOBAL IMAGE MAGNIFIER
===================================== */

.slide img,
.slide object,
.slide svg {
  transform-origin: center center;
}

.slide img,
.slide object,
.slide svg {
  transition: transform 0.15s ease;
}
