/* About page Ideas carousel. */
.process {
  --white: #fff;
  --red: #ff2143;
  --display: "Oxanium", "Arial Narrow", sans-serif;
  --body: "Inter", Arial, sans-serif;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: clip;
  color: var(--white);
  font-family: var(--body);
}

.process,
.process * {
  box-sizing: border-box;
}

.process-feature {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: 100%;
}

.process-window {
  position: relative;
  z-index: 1;
  overflow: hidden;
  flex: 1;
  background: transparent;
  overscroll-behavior-x: contain;
}

.process-feature::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    radial-gradient(ellipse 30% 44% at 18% 32%, rgb(210 0 38 / 78%) 0%, rgb(148 0 30 / 66%) 32%, rgb(66 0 17 / 35%) 59%, transparent 78%),
    radial-gradient(ellipse 25% 52% at 74% 66%, rgb(175 0 34 / 72%) 0%, rgb(112 0 25 / 59%) 36%, rgb(55 0 15 / 30%) 63%, transparent 80%),
    radial-gradient(ellipse 38% 28% at 91% 16%, rgb(190 0 32 / 65%) 0%, rgb(108 0 22 / 50%) 42%, transparent 78%),
    radial-gradient(ellipse 34% 30% at 45% 92%, rgb(142 0 30 / 64%) 0%, rgb(72 0 18 / 36%) 48%, transparent 78%);
  background-size: 135% 135%, 145% 145%, 125% 125%, 140% 140%;
  background-position: 8% 55%, 80% 15%, 90% 80%, 20% 100%;
  content: "";
  filter: blur(12px);
  opacity: .92;
  pointer-events: none;
  animation: process-shapes 2.8s ease-in-out infinite alternate;
}

.process-track {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  transform: translateX(0);
  transition: transform .55s cubic-bezier(.2, .75, .2, 1);
}

.process-intro,
.process-slide {
  min-width: 0;
  flex: 0 0 100%;
}

.process-intro {
  position: relative;
  min-height: clamp(460px, 60vh, 630px);
  display: grid;
  place-items: center;
  padding: 2rem;
}

.carousel-hint {
  position: absolute;
  right: 1rem;
  bottom: clamp(1.5rem, 4vw, 2.5rem);
  left: 1rem;
  color: rgb(255 255 255 / 72%);
  font: 600 .9rem/1.2 var(--body);
  letter-spacing: .16em;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  animation: carousel-hint-appear 9s ease .35s infinite;
  animation-play-state: paused;
  pointer-events: none;
}

.process-feature.is-visible .carousel-hint {
  animation-play-state: running;
}

.carousel-hint-mobile {
  display: none;
}

.process-intro h2 {
  margin: 0;
  font: 600 clamp(2.5rem, 5vw, 4rem)/1.15 var(--display);
  text-align: center;
  text-decoration: none;
}

.process-slide {
  min-height: clamp(500px, 60vh, 630px);
  display: grid;
  align-items: center;
  padding-block: 2rem;
}

.skill-slide-inner {
  width: min(1840px, calc(100% - clamp(3rem, 10vw, 8rem)));
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  margin-inline: auto;
}

.skill-copy h2 {
  margin: 0 0 1rem;
  font: 700 clamp(2rem, 3.2vw, 3rem)/1.15 var(--display);
  text-decoration: none;
}

.skill-subtitle {
  margin: 0 0 1.4rem;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 700;
}

.skill-copy {
  font-weight: 500;
}

.skill-copy > p:not(.skill-subtitle) {
  margin: 0 0 1.4rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
}

.skill-copy h3 {
  margin: 1.5rem 0 .35rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
}

.skill-copy ul {
  margin: 0;
  padding-left: 1.4rem;
  line-height: 1.5;
  font-weight: 500;
  list-style: disc;
}

.process .media-slot {
  position: relative;
  overflow: hidden;
  margin: 0;
}

.process .showcase-video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: none;
  border-radius: 14px;
  object-fit: cover;
}

.process .media-slot.has-video .showcase-video {
  display: block;
}

.process .media-slot.has-video .media-caption {
  display: none;
}

.showcase-media {
  width: 100%;
  aspect-ratio: 1.85;
  overflow: hidden;
  border-radius: 14px;
  background-color: #d1d1d1;
  background-image:
    linear-gradient(35deg, transparent 49.9%, #b8b8b8 50%, transparent 50.1%),
    linear-gradient(145deg, transparent 49.9%, #b8b8b8 50%, transparent 50.1%);
}

.process-slide .showcase-media {
  border: 4px solid transparent;
  border-radius: 18px;
  background-image:
    linear-gradient(#d1d1d1, #d1d1d1),
    linear-gradient(120deg, #ff2143 0%, #99001f 22%, #ff8798 50%, #ff2143 76%, #99001f 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: 100% 100%, 300% 300%;
  background-position: center, 0% 50%;
  box-shadow: 0 0 0 1px rgb(255 33 67 / 24%), 0 0 22px rgb(255 33 67 / 24%);
  animation: animation-frame-gradient 3.4s ease-in-out infinite alternate;
}

.process .media-caption {
  position: absolute;
  z-index: 2;
  inset: 50% 1rem auto;
  padding: 0;
  transform: translateY(-50%);
  background: none;
  color: #111;
  font: 800 1rem/1.3 var(--body);
  letter-spacing: 0;
  text-align: center;
}

.category-tabs {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 3rem));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .8rem;
  margin-inline: auto;
  padding-block: 1rem .85rem;
}

.category-tab {
  min-height: 52px;
  padding: .65rem .9rem;
  border: 1px solid rgb(255 33 67 / 70%);
  border-radius: 9px;
  background: #303030;
  color: var(--white);
  font: 700 1rem var(--display);
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s;
}

.category-tab:hover {
  transform: translateY(-2px);
  border-color: var(--red);
  background: #2a1014;
}

.category-tab[aria-pressed="true"] {
  border-color: var(--red);
  background: var(--red);
  color: white;
  animation: category-tab-pulse 1.8s ease-in-out infinite;
}

.category-tab:focus-visible {
  outline: 3px solid white;
  outline-offset: 4px;
}

@keyframes animation-frame-gradient {
  from { background-position: center, 0% 50%; }
  to { background-position: center, 100% 50%; }
}

@keyframes process-shapes {
  from { background-position: 8% 55%, 80% 15%, 90% 80%, 20% 100%; }
  to { background-position: 82% 30%, 18% 88%, 26% 18%, 84% 0%; }
}

@keyframes carousel-hint-appear {
  0%, 5% { opacity: 0; transform: translateY(7px); }
  8%, 55% { opacity: 1; transform: translateY(0); }
  60%, 100% { opacity: 0; transform: translateY(-4px); }
}

@keyframes category-tab-pulse {
  0%, 100% { box-shadow: 0 0 9px rgb(255 33 67 / 22%); filter: saturate(1); }
  50% { box-shadow: 0 0 0 3px rgb(255 33 67 / 20%), 0 0 18px rgb(255 33 67 / 55%); filter: saturate(1.2) brightness(1.08); }
}

@media (max-width: 900px) {
  .skill-slide-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .skill-copy {
    max-width: 650px;
  }
}

@media (max-width: 800px) {
  .category-tabs {
    gap: .45rem;
  }
}

@media (max-width: 650px) {
  .process-feature {
    width: 100%;
    height: calc(100svh - 72px);
    min-height: 0;
    overflow: hidden;
  }

  .process-window {
    min-height: 0;
    touch-action: pan-y;
    overscroll-behavior-x: contain;
  }

  .process-track {
    height: 100%;
  }

  .process-intro,
  .process-slide {
    height: 100%;
    min-height: 0;
  }

  .process-intro {
    padding: 1rem;
  }

  .process-intro h2 {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .process-slide {
    padding-block: .75rem;
  }

  .skill-slide-inner {
    width: calc(100% - 2rem);
    height: 100%;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    gap: .8rem;
    padding-block: 0;
  }

  .skill-copy {
    min-height: 0;
    overflow: visible;
    padding: .15rem .25rem;
  }

  .showcase-media {
    width: min(100%, 460px);
    aspect-ratio: 4 / 3;
    max-height: min(31svh, 270px);
    justify-self: center;
  }

  .skill-copy h2 {
    margin-bottom: .35rem;
    font-size: clamp(1.35rem, 5.5vw, 1.7rem);
  }

  .skill-subtitle {
    margin-bottom: .45rem;
    font-size: 1.02rem;
  }

  .skill-copy > p:not(.skill-subtitle) {
    margin-bottom: .45rem;
    font-size: .82rem;
    line-height: 1.3;
  }

  .skill-copy h3 {
    margin-top: .45rem;
    font-size: .82rem;
  }

  .skill-copy ul {
    padding-left: 1.1rem;
    font-size: .78rem;
    line-height: 1.25;
  }

  .category-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .4rem;
    padding: .3rem 0 .65rem;
  }

  .category-tab {
    min-height: 38px;
    padding: .4rem .5rem;
    font-size: .8rem;
  }

  .carousel-hint {
    bottom: .85rem;
    font-size: .76rem;
    letter-spacing: .12em;
  }

  .carousel-hint-desktop {
    display: none;
  }

  .carousel-hint-mobile {
    display: inline;
  }
}

@media (max-width: 650px) and (max-height: 700px) {
  .showcase-media {
    max-height: min(27svh, 200px);
  }

  .skill-slide-inner {
    gap: .65rem;
  }

  .process-slide {
    padding-block: .5rem;
  }

  .skill-copy h2 {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
  }

  .skill-subtitle {
    margin-bottom: .3rem;
    font-size: .9rem;
  }

  .skill-copy > p:not(.skill-subtitle) {
    margin-bottom: .3rem;
    font-size: .75rem;
    line-height: 1.22;
  }

  .skill-copy h3 {
    margin-top: .3rem;
    font-size: .78rem;
  }

  .skill-copy ul {
    font-size: .71rem;
    line-height: 1.15;
  }
}

@media (min-width: 801px) {
  .process-intro {
    min-height: clamp(600px, 62svh, 790px);
  }

  .process-slide {
    min-height: clamp(600px, 65svh, 800px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .process-feature::before,
  .process-track,
  .process-slide .showcase-media {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }

  .category-tab[aria-pressed="true"] {
    animation: none;
    box-shadow: 0 0 12px rgb(255 33 67 / 38%);
  }

  .carousel-hint {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
