:root {
  --black: #121212;
  --beige400: #DCD8D3;
  --beige100: #F1F0EA;
  --beige300: #CFCFCF;
  --pureWhite: #FFFFFF;
  --grey: #545454;
  --red: #F95D3B;
  --enterBorder: #0D0D0D;
  --enterAlphaHover: 70%;
}

@property --mj-gauge {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
.mobile-identity,
.mobile-joystick {
  display: none;
}

@media screen and (max-width: 768px) {
  .blocks .blocks-inner .block-line .block .block-content .cache {
    opacity: 0;
  }
  .blocks .blocks-inner .block-line .block .block-content {
    border-radius: 10px;
  }
  .page-front main.main {
    position: fixed;
    top: calc(12px + var(--mobile-card-h, 23px));
    bottom: auto;
    height: calc(100vh - 12px - var(--mobile-card-h, 23px) - var(--mobile-joy-h, 174px) + 24px);
    height: calc(100lvh - 12px - var(--mobile-card-h, 23px) - var(--mobile-joy-h, 174px) + 24px);
    left: 0;
    right: 0;
    overflow: hidden;
  }
  .page-front .line {
    position: fixed;
    top: 0;
    bottom: 0;
  }
  .blocks .blocks-inner {
    font-size: 0;
    line-height: 0;
  }
  .blocks .blocks-inner .block-line {
    height: var(--mobile-unit, 22vh);
    vertical-align: top;
  }
  .blocks .blocks-inner .block-line .block {
    padding: 2px;
  }
  .controller {
    height: 0;
    padding: 0;
    overflow: visible;
  }
  .controller .controller-inner {
    visibility: hidden;
    pointer-events: none;
  }
  .controller .controller-inner .project-list.slider,
.controller .controller-inner .project-list.slider .project-list-inner.slider-wrapper,
.controller .controller-inner .project-list.slider .project-list-inner.slider-wrapper a.project.slider-slide {
    height: 80px;
  }
  .controller .controller-inner .project-list.slider .project-list-inner.slider-wrapper a.project.slider-slide {
    line-height: 80px;
    width: 150px;
  }
  .mobile-identity {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4000;
    pointer-events: none;
  }
  .mobile-identity .mobile-identity-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 11px 0;
  }
  .mobile-identity .name,
.mobile-identity .details {
    font-family: SuisseIntlMono;
    font-size: 11px;
    line-height: 12px;
    text-transform: uppercase;
    white-space: nowrap;
  }
  .mobile-identity .name {
    color: var(--black);
  }
  .mobile-identity .details {
    color: var(--grey);
  }
  .mobile-joystick {
    display: block;
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 6px;
    z-index: 4000;
    height: 174px;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 1000ms cubic-bezier(0.76, 0, 0.24, 1);
  }
  body.is-loading:not(.controller-in) .mobile-joystick {
    transform: translateY(calc(100% + 6px));
  }
}
@media screen and (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .mobile-joystick {
    transition-duration: 1ms;
  }
}
@media screen and (max-width: 768px) {
  .mobile-joystick::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    left: calc(50% - 2px);
    width: 4px;
    background-color: var(--red);
    pointer-events: none;
  }
}
@media screen and (max-width: 768px) {
  .mobile-joystick-shape {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
    pointer-events: none;
  }
}
@media screen and (max-width: 768px) {
  .mobile-joystick-info {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(50% - 56px);
    bottom: calc(50% - 56px);
    z-index: 1;
  }
  .mobile-joystick-info::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background-color: rgba(13, 13, 13, 0.2);
  }
}
@media screen and (max-width: 768px) {
  .mobile-joystick-tag {
    position: absolute;
    top: 50%;
    left: calc((50% - 81px) / 2);
    transform: translate(-50%, -50%);
    padding: 0 4px;
    background-color: var(--pureWhite);
    line-height: 0;
  }
  .mobile-joystick-tag svg {
    display: block;
  }
}
@media screen and (max-width: 768px) {
  .mobile-joystick-menu {
    position: absolute;
    top: 50%;
    right: 29px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 44px;
    min-width: 0;
    height: 32px;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 0;
    background-color: var(--pureWhite);
    cursor: pointer;
  }
  .mobile-joystick-menu span {
    display: block;
    width: 10px;
    height: 1px;
    background-color: var(--black);
  }
  .mobile-joystick-menu span:nth-child(2) {
    width: 20px;
  }
}
@media screen and (max-width: 768px) {
  .mobile-joystick-track {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    aspect-ratio: 1;
    z-index: 2;
    border-radius: 50%;
    box-shadow: inset 0 0 63.28px rgba(29, 24, 18, 0.5);
    transition: --mj-gauge 240ms ease-out;
  }
}
@media screen and (max-width: 768px) {
  .mobile-joystick-track::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 50%;
    opacity: 0.2;
    background: radial-gradient(circle at 65% 10%, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
  }
}
@media screen and (max-width: 768px) {
  .mobile-joystick-gauge {
    position: absolute;
    inset: 0;
    transform: rotate(-90deg);
    overflow: visible;
    pointer-events: none;
  }
  .mobile-joystick-gauge circle {
    fill: none;
    stroke-width: 1px;
  }
}
@media screen and (max-width: 768px) {
  .mobile-joystick-gauge-fill {
    stroke: var(--red);
    stroke-dasharray: 100;
    stroke-dashoffset: calc(100 - var(--mj-gauge) * 100);
  }
}
@media screen and (max-width: 768px) {
  .mobile-joystick-stop {
    position: absolute;
    left: 50%;
    width: 2px;
    height: 16px;
    transform: translateX(-50%);
    background-color: #292725;
    pointer-events: none;
  }
  .mobile-joystick-stop.top {
    top: 22px;
  }
  .mobile-joystick-stop.bottom {
    bottom: 22px;
  }
}
@media screen and (max-width: 768px) {
  .mobile-joystick-arrow {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 9px;
    transform: translateY(-50%);
    background-color: #F5F3F2;
    -webkit-mask: url("../../assets/pictos/arrow-left.svg") no-repeat center/contain;
    mask: url("../../assets/pictos/arrow-left.svg") no-repeat center/contain;
    pointer-events: none;
  }
  .mobile-joystick-arrow.left {
    left: 24px;
  }
  .mobile-joystick-arrow.right {
    right: 24px;
    -webkit-mask-image: url("../../assets/pictos/arrow-right.svg");
    mask-image: url("../../assets/pictos/arrow-right.svg");
  }
}
@media screen and (max-width: 768px) {
  .mobile-joystick-knob {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 60px;
    height: 60px;
    min-width: 0;
    margin: -30px 0 0 -30px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: #CFCFC7;
    cursor: grab;
    touch-action: none;
    transition: transform 520ms cubic-bezier(0.32, 2.2, 0.55, 1), scale 520ms cubic-bezier(0.32, 2.2, 0.55, 1);
    will-change: transform, scale;
  }
}
@media screen and (max-width: 768px) {
  .mobile-joystick.is-pressed .mobile-joystick-knob {
    scale: 0.9;
  }
}
@media screen and (max-width: 768px) {
  .mobile-joystick.is-dragging .mobile-joystick-knob {
    cursor: grabbing;
    transition: none;
  }
}
@media screen and (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .mobile-joystick-knob {
    transition: transform 200ms ease-out;
  }
  .mobile-joystick-track {
    transition: --mj-gauge 200ms linear;
  }
}