/* = reset
------------------------------------------------------------------------------------------*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol,
dl,
li,
dt,
dd,
p,
div,
span,
img,
a,
table,
tr,
th,
td,
small,
button,
time,
figure {
  border: 0;
  font: inherit;
  font-size: 100%;
  margin: 0;
  padding: 0;
  vertical-align: baseline;
}

html {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

li,
dd {
  list-style-type: none;
}

header,
footer,
nav,
section,
article,
main,
aside,
figure,
figcaption {
  display: block;
}

img {
  display: block;
  border: none;
  max-width: 100%;
  height: auto;
}

a {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

button {
  background-color: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

/* = root
------------------------------------------------------------------------------------------*/
:root {
  /* color */
  --color-white: #ffffff;
  --color-black: #333333;
  --toggle-bg: #f0f0f0;

  --z-to-top-button: 10;
  --z-header: 20;
  --z-drawer: 30;
  --z-modal: 40;

  /* transition duration */
  --glitch-duration: 0.3s;
  --transition-base: 0.4s;
}

html[data-theme="dark"] {
  --color-white: #1a1a1a;
  --color-black: #f5f5f5;
  --toggle-bg: #333333;
}

/* = base
------------------------------------------------------------------------------------------*/
html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;

  @media (max-width: 768px) {
    scroll-padding-top: 100px;
  }
}

body {
  background-color: var(--color-black);
  color: var(--color-black);
  font-size: 16px;
  transition:
    background-color var(--transition-base),
    color var(--transition-base);
  line-height: 1.8;
  overflow-wrap: anywhere;
  overflow-x: hidden;
  letter-spacing: 0.04em;
  font-feature-settings: "palt";
  font-family: "Montserrat", "Noto Sans JP", sans-serif;

  &.is-fixed {
    overflow: hidden;

    .header__logo,
    main {
      pointer-events: none;
    }
  }

  &.is-opening {
    overflow: hidden;
  }

  &.is-ready {
    background-color: var(--color-white);
  }
}

/* = theme-toggle
------------------------------------------------------------------------------------------*/
.theme-toggle {
  background-color: transparent;
  color: var(--color-black);
  padding: 0.5em 0.9em;
  font-size: 14px;
  font-weight: 700;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    translate var(--transition-base),
    opacity var(--transition-base) !important;

  @media (max-width: 768px) {
    color: var(--color-white);
    background-color: var(--color-black);
    opacity: 0;
    translate: -60px 0;
    transition-delay: var(--delay, 0s) !important;
  }

  @media (any-hover: hover) {
    &:hover {
      background-color: var(--color-black);
      color: var(--color-white);
    }
  }
}

.theme-toggle__text--light {
  display: block;
}

.theme-toggle__text--dark {
  display: none;
}

html[data-theme="dark"] .theme-toggle__text--light {
  display: none;
}
html[data-theme="dark"] .theme-toggle__text--dark {
  display: block;
}

.js-theme-flash {
  animation: theme-glitch var(--glitch-duration) steps(2, end);
}

/* = parts
------------------------------------------------------------------------------------------*/
/* section wrapper */
.section {
  margin-bottom: 96px;

  @media (max-width: 768px) {
    margin-bottom: 60px;
  }
}

.section:first-child {
  margin-top: 96px;

  @media (max-width: 768px) {
    margin-top: 60px;
  }
}

.section__inner {
  max-width: 1920px;
  margin-inline: auto;
  width: 92%;
}

.section__heading {
  position: relative;
  font-size: 56px;
  line-height: 1;
  margin-bottom: 1em;
  text-transform: uppercase;
  font-weight: bold;
  padding-bottom: 0.6em;

  @media (max-width: 768px) {
    font-size: 48px;
  }
}

.section__heading::after {
  position: absolute;
  content: attr(data-text);
  font-size: 0.4em;
  left: 0;
  bottom: 0;
}

/* border & shadow utility */
.border-and-shadow {
  border: 4px solid currentColor;
  border-radius: 8px;
  box-shadow: 6px 6px 6px 0px var(--color-black);
  transition: box-shadow var(--transition-base);
}

/* button */
.button {
  display: block;
  text-align: center;
  width: 100%;
  font-size: 24px;
  font-weight: bold;
  padding: 0.7em;
  transition:
    color var(--transition-base),
    background-color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    opacity var(--transition-base),
    translate var(--transition-base) !important;

  @media (max-width: 768px) {
    font-size: 20px;
  }

  @media (any-hover: hover) {
    &:hover:not(.is-disabled) {
      color: var(--color-white);
      background-color: var(--color-black);
      border-color: var(--color-black);
      translate: 6px 6px;
    }
  }

  &.border-and-shadow {
    @media (any-hover: hover) {
      &:hover:not(.is-disabled) {
        box-shadow: 0px 0px 0px 0px var(--color-black);
      }
    }
  }
}

/* focus outline */
* {
  outline: 4px solid transparent;
}

*:focus-visible {
  outline-color: #0066ff;
}

.border-and-shadow:focus-visible {
  border-color: transparent;
}

/* border-and-shadow（SP時のみ付与） */
.border-and-shadow-pc-none {
  border: none;
  box-shadow: none;

  @media (max-width: 768px) {
    border: 4px solid currentColor;
    border-radius: 8px;
    box-shadow: 6px 6px 6px 0px var(--color-black);
  }
}

.text-link {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;

  @media (any-hover: hover) {
    &:hover {
      text-decoration-color: transparent;
    }
  }
}

/* hover scale（リンク・ボタン共通） */
a:not(.button):not(.theme-toggle):not(.works__card-item):not(.contact__link),
button:not(.button):not(.theme-toggle):not(.header__drawer):not(.to-top) {
  transition: opacity var(--transition-base);

  @media (any-hover: hover) {
    &:hover {
      opacity: 0.6;
    }
  }
}

/* display utility */
.pc-only {
  display: block;
  @media (max-width: 768px) {
    display: none;
  }
}

.sp-only {
  display: none;
  @media (max-width: 768px) {
    display: block;
  }
}

/* = header
------------------------------------------------------------------------------------------*/
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: var(--z-header);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  max-width: 1920px;
  margin-inline: auto;
  background-color: var(--color-white);
  gap: 32px;

  @media (max-width: 991px) {
    gap: 0;
  }
}

.header__logo {
  flex-shrink: 0;
}

.header__logo-link {
  display: flex;
  gap: 4px;
  align-items: center;
}

.header__logo-image {
  width: auto;
  height: 1lh;
}

.header__logo-text {
  font-size: 28px;
  text-transform: capitalize;
  font-weight: bold;
}

.header__nav {
  flex: 1;
  transition:
    translate var(--transition-base),
    opacity var(--transition-base);

  @media (max-width: 991px) {
    position: fixed;
    inset: 0;
    width: 80vw;
    height: 100dvh;
    overflow-y: auto;
    translate: 125% 0;
    background-color: color-mix(in srgb, var(--color-black) 70%, transparent);
    padding-block: 16px;
  }
}

.header__nav-inner {
  width: 100%;
  margin-inline: 0;
  display: flex;
  justify-content: flex-end;
  gap: 32px;

  @media (max-width: 991px) {
    width: 92%;
    margin-inline: auto;
    display: block;
  }
}

.header__nav-lists {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  padding-top: 0;
  margin-inline: 0;

  @media (max-width: 991px) {
    flex-direction: column;
    align-items: normal;
    padding-top: 32px;
    margin-inline: auto;
  }
}

.header__nav-item {
  @media (max-width: 768px) {
    opacity: 0;
    translate: -60px 0;
    transition:
      translate var(--transition-base),
      opacity var(--transition-base);
    transition-delay: var(--delay, 0s);
  }
}

.header__nav-link {
  display: block;
  font-size: 24px;
  font-weight: bold;
  color: var(--color-black);
  text-transform: uppercase;

  @media (max-width: 991px) {
    font-size: 32px;
    color: var(--color-white);
  }
}

.header__drawer {
  display: none;

  @media (max-width: 991px) {
    display: block;
    position: relative;
    width: 24px;
    height: 16px;
    z-index: var(--z-drawer);

    &.is-checked {
      .header__drawer-icon {
        background-color: var(--color-white);

        &:nth-of-type(1),
        &:nth-of-type(3) {
          top: 50%;
          translate: 0 -50%;
        }

        &:nth-of-type(1) {
          rotate: 135deg;
        }

        &:nth-of-type(2) {
          opacity: 0;
        }

        &:nth-of-type(3) {
          rotate: -135deg;
        }
      }

      + .header__nav {
        translate: 25% 0;
        opacity: 1;
        z-index: calc(var(--z-drawer) - 1);

        .theme-toggle {
          @media (max-width: 768px) {
            translate: 0;
            opacity: 1;
            --delay: 0.3s;
          }
        }

        .header__nav-item {
          @media (max-width: 768px) {
            translate: 0;
            opacity: 1;

            &:nth-child(1) {
              --delay: 0.4s;
            }
            &:nth-child(2) {
              --delay: 0.5s;
            }
            &:nth-child(3) {
              --delay: 0.6s;
            }
            &:nth-child(4) {
              --delay: 0.7s;
            }
          }
        }

        + .header__drawer {
          .header__drawer-icon {
            background-color: var(--color-white);
          }
        }
      }
    }
  }
}

.header__drawer-icon {
  position: absolute;
  width: 100%;
  height: 4px;
  background-color: var(--color-black);
  left: 0;
  transition:
    opacity var(--transition-base),
    top var(--transition-base),
    rotate var(--transition-base);

  &:nth-of-type(1) {
    top: 0;
  }

  &:nth-of-type(2) {
    top: 50%;
  }

  &:nth-of-type(3) {
    top: 100%;
  }
}

/* = MV
------------------------------------------------------------------------------------------*/
.mv {
  position: relative;
  height: 100dvh;
  overflow: hidden;
  max-width: 1920px;
  margin-inline: auto;
}

.mv__typography {
  text-align: center;
  width: 100%;
  user-select: none;
}

.mv__main-title {
  font-size: 60px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 0.4em;
  line-height: 1;
  @media (max-width: 768px) {
    font-size: 32px;
  }
}

.mv__sub-title {
  font-size: 28px;
  font-weight: bold;
  text-transform: uppercase;
  line-height: 1;
  @media (max-width: 768px) {
    font-size: 14px;
  }
}

.mv__base {
  position: absolute;
  inset: 0;
  background-color: var(--color-white);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color var(--transition-base);
}
.mv__base .mv__typography {
  color: var(--color-black);
  transition: color var(--transition-base);
}

.mv__bg-slit {
  position: absolute;
  inset: 0;
  background-color: var(--color-black);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color var(--transition-base);

  clip-path: polygon(0 0, 45% 0, 55% 100%, 0 100%);
  animation: shiftSlit 10s ease-in-out infinite alternate;
}
.mv__bg-slit .mv__typography {
  color: var(--color-white);
  transition: color var(--transition-base);
}

@keyframes shiftSlit {
  0% {
    clip-path: polygon(0 0, 30% 0, 45% 100%, 0 100%);
  }
  50% {
    clip-path: polygon(0 0, 65% 0, 75% 100%, 0 100%);
  }
  100% {
    clip-path: polygon(0 0, 48% 0, 52% 100%, 0 100%);
  }
}

/* = main
------------------------------------------------------------------------------------------*/
.main {
  overflow: hidden;
}

/* = about
------------------------------------------------------------------------------------------*/
.about__body {
  display: flex;
  flex-direction: row;
  gap: 24px;
  @media (max-width: 768px) {
    flex-direction: column;
  }
}

.about__image {
  width: 30%;
  @media (max-width: 768px) {
    width: 100%;
  }
}

.about__content {
  width: 70%;
  padding: 2%;
  @media (max-width: 768px) {
    width: 100%;
    padding: 5% 4%;
  }
}

.about__detail-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;

  @media (max-width: 768px) {
    gap: 8px;
  }
}

.about__detail-list:not(:last-of-type) {
  margin-bottom: 24px;
}

.about__detail-list:last-of-type {
  margin-bottom: 32px;
}

.about__detail-term {
  font-size: 20px;
  font-weight: bold;
  width: 100px;

  @media (max-width: 768px) {
    width: 100%;
  }
}

.about__detail-desc {
  width: calc((100% - 16px) - 100px);
  font-size: 20px;

  @media (max-width: 768px) {
    width: 100%;
  }
}

.about__button {
  .button {
    max-width: 600px;
    margin-inline: auto;
  }
}

/* = modal
------------------------------------------------------------------------------------------*/
dialog {
  max-width: 100%;
  width: 100%;
  max-height: 100%;
  height: 100%;
  padding: 0;
  inset: 0;
  border: none;
  background-color: transparent;
  cursor: pointer;
}
dialog::backdrop {
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.35s ease;
}

dialog[open]::backdrop {
  background-color: rgba(0, 0, 0, 0.6);
}
dialog.modal[open] .modal__inner {
  opacity: 1;
  filter: invert(0);
  transform: translate(0, 0) scale(1);
  clip-path: inset(0 0 0 0);
  animation: modal-glitch-in var(--glitch-duration) steps(10, end);
}

dialog.modal.is-closing .modal__inner {
  animation: modal-glitch-out var(--glitch-duration) steps(10, end);
}

.modal p:not(:last-of-type) {
  margin-bottom: 1.5em;
}

.modal__inner {
  position: fixed;
  inset: 0;
  margin: auto;
  width: 90vw;
  height: 90dvh;
  background-color: var(--color-white);
  color: var(--color-black);
  cursor: auto;
  opacity: 0;
  filter: invert(0);
  transform: translate(-8px, 0) scale(0.98);
  clip-path: inset(0 0 40% 0);
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  aspect-ratio: 1;
  padding: 0;
  border-radius: 50%;
  border: 4px solid var(--color-black);
  background-color: var(--color-white);
  transition: background-color var(--transition-base);

  @media (max-width: 768px) {
    width: 40px;
  }

  &::before,
  &::after {
    content: "";
    position: absolute;
    content: "";
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    width: 60%;
    height: 4px;
    background-color: var(--color-black);
    transition: background-color var(--transition-base);
  }

  &::before {
    rotate: 45deg;
  }

  &::after {
    rotate: -45deg;
  }

  @media (any-hover: hover) {
    &:hover {
      background-color: var(--color-black);
      &::before,
      &::after {
        background-color: var(--color-white);
      }
    }
  }
}

.modal__body {
  overflow: auto;
  width: 100%;
  height: 100%;
  padding: 4%;

  @media (max-width: 768px) {
    padding: 50px 4% 4%;
  }
}

.modal__body::-webkit-scrollbar {
  display: none;
}

.modal__title {
  font-size: 32px;
  line-height: 1;
  font-weight: bold;
  margin-bottom: 2em;

  @media (max-width: 768px) {
    font-size: 24px;
  }
}

.modal__detail-list:not(:last-of-type) {
  margin-bottom: 48px;
}

.modal__detail-term {
  position: relative;
  padding-left: 1.4em;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 1em;
  line-height: 1;

  @media (max-width: 768px) {
    font-size: 20px;
  }

  &::before {
    position: absolute;
    content: "■";
    top: 50%;
    left: 0;
    translate: 0 -50%;
  }
}

.modal__detail-desc {
  font-size: 20px;

  @media (max-width: 768px) {
    font-size: 16px;
  }
}

/* = works
------------------------------------------------------------------------------------------*/
#works {
  margin-bottom: 130px;
}

.works__card-lists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 80px 24px;
  margin-bottom: 120px;

  @media (max-width: 768px) {
    margin-bottom: 80px;
  }
}

.works-card {
  display: block;
  position: relative;
  height: 100%;

  @media (any-hover: hover) {
    &:hover {
      .works-card__image img {
        scale: 1.1;
        filter: invert(1);
      }

      .works-card__button-label {
        color: var(--color-white);

        &::before {
          left: 0;
        }

        &::after {
          right: 2%;
          background-color: var(--color-white);
        }
      }
    }
  }
}

.works-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 750 / 500;
  border-bottom: 4px solid var(--color-black);

  &::before {
    position: absolute;
    content: "";
    inset: 0;
    background: var(--bg) no-repeat center center/ cover;
    filter: blur(5px);
    transform: scale(1.1);
  }

  img {
    position: relative;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    transition:
      scale var(--transition-base),
      filter var(--transition-base);
  }
}

.works-card__body {
  padding: 3%;
}

.works-card__title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 0.5em;
}

.works-card__button {
  overflow: hidden;
  position: absolute;
  max-width: 80%;
  top: calc(100% - 10px);
  right: 0;
}

.works-card__button-label {
  position: relative;
  display: block;
  padding: 0.4em 2.5em;
  font-size: 18px;
  font-weight: bold;
  color: var(--color-black);
  background-color: var(--color-white);
  overflow-x: hidden;
  transition:
    color var(--transition-base),
    background-color var(--transition-base);
  z-index: 1;

  &::before,
  &::after {
    position: absolute;
    content: "";
  }

  &::before {
    background-color: var(--color-black);
    width: 100%;
    height: 100%;
    top: 0;
    left: -94%;
    transition:
      left var(--transition-base),
      background-color var(--transition-base);
    z-index: -1;
  }

  &::after {
    background-color: var(--color-black);
    width: 16px;
    aspect-ratio: 1;
    top: 50%;
    right: 7%;
    translate: 0 -50%;
    clip-path: polygon(
      0% 20%,
      60% 20%,
      60% 0%,
      100% 50%,
      60% 100%,
      60% 80%,
      0% 80%
    );
    transition:
      right var(--transition-base),
      background-color var(--transition-base);
    z-index: 2;
  }
}

.works__button {
  .button {
    max-width: 600px;
    margin-inline: auto;
  }
}

/* = contact
------------------------------------------------------------------------------------------*/
.contact__body {
  max-width: 800px;
  margin-inline: auto;
}

.contact__button-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}

.contact__form {
}

.contact__note-text {
  text-align: right;
  font-size: 14px;
  margin-bottom: 1em;

  .required {
    color: red;
  }
}

.form__fields {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.form__radio-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  @media (max-width: 768px) {
    flex-direction: column;
    align-items: flex-start;
  }
}

.form__label {
  display: block;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 0.4em;
}

.form__required {
  display: inline-block;
  margin-left: 0.2em;
  color: red;
}

.form__text {
  font: inherit;
  color: inherit;
  vertical-align: top;
  width: 100%;
  border-radius: 5px;
  background-color: var(--color-white);
  padding: 12px 13px 11px;
}

.form__radio {
  line-height: 1.4375;
}

.form__radio-input {
  width: 1px;
  height: 1px;
  position: absolute;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
}

.form__radio-input:checked + .form__radio-text::after {
  opacity: 1;
}

.form__radio-text {
  font-weight: 700;
  padding-left: 28px;
  position: relative;
}

.form__radio-text::before,
.form__radio-text::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
}

.form__radio-text::before {
  width: 24px;
  aspect-ratio: 1;
  border: 4px solid currentColor;
  left: 0;
}

.form__radio-text::after {
  width: 10px;
  height: 10px;
  background-color: var(--color-black);
  left: 7px;
  opacity: 0;
}

.form__select-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.form__select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 13px;
  height: 10px;
  background-color: var(--color-black, #333);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform: translateY(-50%) rotate(0deg);
  transform-origin: center;
  transition: transform 0.25s ease;
  pointer-events: none;
}

.form__select-wrap:has(.form__select:open)::after {
  transform: translateY(-50%) rotate(180deg);
}

.form__select {
  font: inherit;
  color: inherit;
  vertical-align: top;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  border-radius: 5px;
  background-color: var(--color-white);
  font-weight: 700;
  padding: 12px 43px 11px 13px;
}

.form__textarea {
  font: inherit;
  color: inherit;
  vertical-align: top;
  border-radius: 5px;
  background: var(--color-white);
  width: 100%;
  min-height: 200px;
  padding: 13px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-black);
}

.contact__button {
  margin-bottom: 24px;

  .button {
    max-width: 600px;
    margin-inline: auto;

    &.is-disabled {
      opacity: 0.5;
      pointer-events: none;
    }
  }
}

.contact__list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.contact__item {
  width: 60px;
}

.contact__link {
  display: grid;
  place-items: center;
  padding: 14px;
  height: 100%;

  @media (any-hover: hover) {
    &:hover {
      background-color: var(--color-black);
      img {
        filter: brightness(0) invert(1);
      }
    }
  }
}

.contact__link img {
  filter: brightness(0);
  transition: filter var(--transition-base);
}

html[data-theme="dark"] .contact__link img {
  filter: brightness(0) invert(1);
}

@media (any-hover: hover) {
  .contact__link:hover img {
    filter: brightness(0) invert(1);
  }
}

@media (any-hover: hover) {
  html[data-theme="dark"] .contact__link:hover img {
    filter: brightness(0);
  }
}

/* = footer
------------------------------------------------------------------------------------------*/
.footer {
  padding-block: 16px;
}

.footer__inner {
  width: 92%;
  margin-inline: auto;
}

.footer__text {
  text-align: center;
}

.copy {
  font-size: 12px;
}

/* = to-top
------------------------------------------------------------------------------------------*/
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: var(--color-white);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(1);
  transition:
    opacity var(--transition-base) ease,
    transform var(--transition-base) ease,
    visibility var(--transition-base);
  z-index: var(--z-to-top-button);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.to-top__ring {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
}

.to-top__ring-bg {
  fill: none;
  stroke: var(--color-black);
  stroke-opacity: 0.15;
  stroke-width: 3;
  transition: stroke-width 0.25s ease;
}

.to-top__ring-progress {
  fill: none;
  stroke: var(--color-black);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 150.8;
  stroke-dashoffset: 150.8;
  transition:
    stroke-dashoffset 0.1s linear,
    stroke-width 0.25s ease;
}

.to-top__icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 20px;
  color: var(--color-black);
  line-height: 1;
  transition: transform 0.25s ease;
}

@media (any-hover: hover) {
  .to-top:hover {
    transform: translateY(0) scale(1.06);
  }

  .to-top:hover .to-top__ring-bg,
  .to-top:hover .to-top__ring-progress {
    stroke-width: 4;
  }

  .to-top:hover .to-top__icon {
    transform: translateY(-3px);
  }
}

.to-top:active {
  transform: translateY(0) scale(0.96);
}

/* = scroll animations
------------------------------------------------------------------------------------------*/
.fade-in-up {
  opacity: 0;
  transform: translateY(60px);
  transition:
    transform 0.6s,
    opacity 0.6s;

  &.is-in-view {
    transform: translateY(0);
    opacity: 1;
  }
}

.fade-in-left {
  opacity: 0;
  transform: translateX(60px);
  transition:
    transform 0.6s,
    opacity 0.6s;

  &.is-in-view {
    transform: translateX(0);
    opacity: 1;
  }
}

.fade-in-right {
  opacity: 0;
  transform: translateX(-60px);
  transition:
    transform 0.6s,
    opacity 0.6s;

  &.is-in-view {
    transform: translateX(0);
    opacity: 1;
  }
}

/* = curtain-in-out
------------------------------------------------------------------------------------------*/
.curtain-in-out {
  display: inline-block;
  position: relative;
  overflow: hidden;
  clip-path: inset(0% 100% 0% 0%);
}

.curtain-in-out::before {
  position: absolute;
  content: "";
  inset: 0;
  background-color: var(--color-black);
  translate: -100% 0;
}

.curtain-in-out.is-in-view {
  animation: curtainReveal var(--transition-base) forwards;
}

.curtain-in-out.is-in-view::before {
  animation: curtainSlide calc(var(--transition-base) * 2) forwards;
}

@keyframes curtainReveal {
  to {
    clip-path: inset(0);
  }
}

@keyframes curtainSlide {
  0% {
    translate: -100% 0;
  }
  50% {
    translate: 0;
  }
  100% {
    translate: 105% 0;
  }
}

/* = keyframes
------------------------------------------------------------------------------------------*/
@keyframes theme-glitch {
  0% {
    filter: invert(1);
    transform: translate(0);
    clip-path: inset(0 0 0 0);
  }
  10% {
    filter: invert(1) hue-rotate(90deg) saturate(3);
    transform: translate(-6px, 2px);
    clip-path: inset(10% 0 40% 0);
  }
  20% {
    filter: invert(1) hue-rotate(-90deg) saturate(3);
    transform: translate(6px, -3px);
    clip-path: inset(60% 0 5% 0);
  }
  30% {
    filter: invert(1) hue-rotate(180deg);
    transform: translate(-8px, 0);
    clip-path: inset(20% 0 60% 0);
  }
  40% {
    filter: invert(1) saturate(4);
    transform: translate(8px, 4px);
    clip-path: inset(70% 0 2% 0);
  }
  50% {
    filter: invert(1) hue-rotate(90deg);
    transform: translate(-4px, -4px);
    clip-path: inset(5% 0 75% 0);
  }
  60% {
    filter: invert(1);
    transform: translate(5px, 3px);
    clip-path: inset(45% 0 15% 0);
  }
  70% {
    filter: invert(1) hue-rotate(-45deg);
    transform: translate(-3px, 2px);
    clip-path: inset(0 0 0 0);
  }
  100% {
    filter: invert(1);
    transform: translate(0);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes modal-glitch-in {
  0% {
    opacity: 0;
    filter: invert(0);
    transform: translate(-8px, 0) scale(0.98);
    clip-path: inset(0 0 40% 0);
  }
  10% {
    opacity: 1;
    filter: invert(1) hue-rotate(90deg) saturate(3);
    transform: translate(-6px, 2px) scale(0.98);
    clip-path: inset(10% 0 40% 0);
  }
  20% {
    filter: invert(1) hue-rotate(-90deg) saturate(3);
    transform: translate(6px, -3px) scale(0.99);
    clip-path: inset(60% 0 5% 0);
  }
  30% {
    filter: invert(1) hue-rotate(180deg);
    transform: translate(-8px, 0) scale(0.99);
    clip-path: inset(20% 0 60% 0);
  }
  40% {
    filter: invert(1) saturate(4);
    transform: translate(8px, 4px) scale(1);
    clip-path: inset(70% 0 2% 0);
  }
  50% {
    filter: invert(1) hue-rotate(90deg);
    transform: translate(-4px, -4px) scale(1);
    clip-path: inset(5% 0 75% 0);
  }
  60% {
    filter: invert(1);
    transform: translate(5px, 3px) scale(1);
    clip-path: inset(45% 0 15% 0);
  }
  70% {
    filter: invert(1) hue-rotate(-45deg);
    transform: translate(-3px, 2px) scale(1);
    clip-path: inset(0 0 0 0);
  }
  100% {
    opacity: 1;
    filter: invert(0);
    transform: translate(0, 0) scale(1);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes modal-glitch-out {
  0% {
    opacity: 1;
    filter: invert(0);
    transform: translate(0, 0) scale(1);
    clip-path: inset(0 0 0 0);
  }
  30% {
    filter: invert(1) hue-rotate(-45deg);
    transform: translate(-3px, 2px) scale(1);
    clip-path: inset(0 0 0 0);
  }
  40% {
    filter: invert(1);
    transform: translate(5px, 3px) scale(1);
    clip-path: inset(45% 0 15% 0);
  }
  50% {
    filter: invert(1) hue-rotate(90deg);
    transform: translate(-4px, -4px) scale(1);
    clip-path: inset(5% 0 75% 0);
  }
  60% {
    filter: invert(1) saturate(4);
    transform: translate(8px, 4px) scale(0.99);
    clip-path: inset(70% 0 2% 0);
  }
  70% {
    filter: invert(1) hue-rotate(180deg);
    transform: translate(-8px, 0) scale(0.99);
    clip-path: inset(20% 0 60% 0);
  }
  80% {
    filter: invert(1) hue-rotate(-90deg) saturate(3);
    transform: translate(6px, -3px) scale(0.98);
    clip-path: inset(60% 0 5% 0);
  }
  90% {
    opacity: 1;
    filter: invert(1) hue-rotate(90deg) saturate(3);
    transform: translate(-6px, 2px) scale(0.98);
    clip-path: inset(10% 0 40% 0);
  }
  100% {
    opacity: 0;
    filter: invert(0);
    transform: translate(-8px, 0) scale(0.98);
    clip-path: inset(0 0 40% 0);
  }
}

/* = reCAPTCHA
------------------------------------------------------------------------------------------*/
.grecaptcha-badge {
  visibility: hidden;
}

.form__recaptcha-text {
  font-size: 12px;
  color: var(--color-black);
  margin-bottom: 2em;
  text-align: center;
  @media (max-width: 768px) {
    text-align: left;
  }
}

/* = opening
------------------------------------------------------------------------------------------*/
.opening {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-black);
  transition:
    opacity 0.5s ease,
    visibility 0.5s;
}

.opening.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.opening__inner {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.opening__ring {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
}

.opening__ring-bg {
  fill: none;
  stroke: var(--color-white);
  stroke-opacity: 0.2;
  stroke-width: 2;
}

.opening__ring-progress {
  fill: none;
  stroke: var(--color-white);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 339.3;
  stroke-dashoffset: 339.3;
}

.opening__ring-progress.is-counting {
  animation: ring-draw 1s linear forwards;
}

.opening__number {
  position: relative;
  z-index: 1;
  font-size: 48px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
}

.opening__number.is-pop {
  animation: opening-pop 1s ease;
}

@keyframes opening-pop {
  0% {
    transform: scale(1.4);
    opacity: 0;
  }
  15% {
    transform: scale(1);
    opacity: 1;
  }
  85% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0;
  }
}

@keyframes ring-draw {
  0% {
    stroke-dashoffset: 339.3;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

/* = page reveal mask
------------------------------------------------------------------------------------------*/
.l-wrapper {
  clip-path: circle(54px at 50vw 50vh);
  height: 100vh;
  overflow: hidden;
  transition: clip-path 1.2s cubic-bezier(0.8, 0, 0.2, 1);
  background-color: var(--color-white);
}

.l-wrapper.is-reveal {
  clip-path: circle(150vmax at 50vw 50vh);
  height: auto;
  overflow: visible;
}

.opening.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: none;
}
.fade-up-item {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.l-wrapper.is-reveal .fade-up-item {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.7s;
}

/* body {
  background-color: var(--color-white);
} */
