@font-face {
  font-family: 'ABCOracleTriple';
  src: url('../fonts/ABCOracleTriple-Book.woff2') format('woff2'),
      url('../fonts/ABCOracleTriple-Book.woff') format('woff');
  font-weight: normal;
  /* font-display: swap; */
}

* {
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  border: none;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
html {
  --yellow: #DCFF1C;
  --colorbg: #E2D5DC;
  --text: #132817;
  --bg: #F5F5F3;
  height: 100%;
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);

  font-family: 'ABCOracleTriple', sans-serif;
  -webkit-font-smoothing: antialiased;

  font-size: 16px;
  line-height: 1.5;
  font-style: normal;

}
p {
  margin-bottom: 1em;
}
@media (max-width: 899px) {
  .desktop-only {
    display: none !important;
  }
}
@media (min-width: 900px) {
  .mob-only {
    display: none !important;
  }
}
a {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  user-select: none;
  draggable: false;
}
li {
  list-style-type: none;
}

.case-upper {
  text-transform: uppercase;
}
.click {
  cursor: pointer;
  user-select: none;
}
.bold {
  font-weight: bold;
}

/* header */
/* menu */
.header a {
  text-decoration: none;
}
.header a.current,
.header a:hover {
  border-bottom: 1px solid var(--text);
}
@media (max-width: 899px) {
  .header {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    display: flex;
    background: var(--bg);
    padding: 0;
    text-transform: uppercase;
    height: 50px;
    background: var(--colorbg);
    z-index: 10;
    overflow: hidden;
    transition: height .5s ease-out;
  }
  .header h1 {
    margin: 0 auto;
    position: absolute;
    bottom: 59px;
    left: 0;
    width: 100vw;
    text-align: center;
  }
  body:not(.project) .header h1 {
    display: none;
  }
  .project h1 .extra {
    display: none;
  }

  .header nav {
    position: absolute;
    top: calc(50dvh - 50vw - 50px);
    width: 100vw;
  }
  .header nav li {
    font-size: 0px;
    height: calc(100vw / 3);
  }
  .header nav a {
    display: block;
    height: 100%;
    border: none !important;
  }
  .header nav video {
    max-width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
  }
  .header .burger {
    height: 50px;
    width: 50px;
    position: absolute;
    bottom: 0;
    left: calc(50% - 25px);
  }
  .header .burger .line {
    width: 30px;
    height: 2px;
    background-color: var(--text);
    position: absolute;
    bottom: 24px;
    left: 10px;
    transition: background-color .4s ease-out;
  }
  .header .burger .line:before,
  .header .burger .line:after {
    display: block;
    content: '';
    width: 30px;
    height: 2px;
    background: var(--text);
    position: absolute;
    left: 0;
    transform-origin: center left;
    transition: all .4s ease-out;
  }
  .header .burger .line:before {
    top: -8px;
  }
  .header .burger .line:after {
    bottom: -8px;
  }
  .proj-prev,
  .proj-next {
    position: absolute;
    bottom: 61px;
    font-size: 16px;
    line-height: 24px;
  }
  .proj-prev {
    left: 21px;
  }
  .proj-next {
    right: 21px;
  }
  body:not(.project) .proj-next, 
  body:not(.project) .proj-prev {
    display: none;
  }
  .project .header {
    height: 90px;
  }
  .menu-open {
    overflow: hidden;
  }
  .menu-open .header {
    height: 100dvh;
  }
  .menu-open .burger .line {
    background-color: transparent;
  }
  .menu-open .burger .line:before {
    transform: rotate(29deg);
    width: 34px;
  }
  .menu-open .burger .line:after {
    transform: rotate(-29deg);
    width: 34px;
  }
}
@media (min-width: 900px) {
  .header {
    position: sticky;
    top: 0;
    display: flex;
    background: var(--bg);
    padding: 18px 47px 18px 68px;
    text-transform: uppercase;
    z-index: 2;
  }
  .header h1 {
    margin-right: auto;
  }
  nav ul {
    display: flex;
    gap: 30px;
  }

}

/* footer */
footer {
  background: var(--colorbg);
  padding: 60px 18px 110px;
  text-align: center;
  min-height: 100vh;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  position: relative;
}
footer a {
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
.illustration {
  width: 237px;
  margin: 0 auto;
}
.menu-footer {
  display: flex;
  flex-direction: column;
}
.logo {
  position: relative;
  width: 100%;
  /* aspect-ratio: 2.16; */
  max-width: 813px;
  margin: 0 auto;
  margin-bottom: 37px;
  pointer-events: none;
}
.logo > * {
  /* position: absolute; */
  top: 0;
  left: 0;
  width: 100%;
}
.logo video {
  max-width: 100%;
  max-height: calc(100dvh - 460px);
}
.claim p {
  max-width: 600px;
  margin: 0 auto;
}
.illustration {
  margin-top: auto;
}
footer p {
  margin-bottom: 0px;
}
@media (max-width: 899px) {
  .claim {
    font-size: 12px;
    line-height: 1.5;
  }
  footer .menu-lang,
  footer .address,
  footer .copyright,
  .menu-footer {
    display: none;
  }
  .illustration img {
    width: 128px;
    margin: 0 auto;
  }
}
@media (min-width: 900px) {
  footer {
    min-height: calc(100vh - 60px);
    padding: 45px 47px 45px 68px;
  }
  .illustration {
    margin-bottom: 30px;
  }
  .footer-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }
  .menu-footer {
    text-align: left;
  }
  .address {
    text-align: right;
  }
  .menu-lang li {
    display: inline-block;
  }
}

/* content */
.content {
  padding: 70px 12px;
  background-color: var(--bg);
}
@media (min-width: 900px) {
  .content {
    padding: 45px 47px 45px 68px;
  }
}

/* home */
.page-home .logo-darling,
.page-company .logo-darling {
  position: fixed;
  width: calc(100vw - 30px);
  max-width: 813px;
  left: 50vw;
  top: 60px;
  transform: translateX(-50%);
  z-index: 3;
}
.page-home .logo-darling,
.page-company .logo-darling,
.page-home .logo-point,
.page-company .logo-point {
  max-height: calc(100vh - 80px);
}
.intro {
  height: calc(100dvh - 60px);
  /* position: sticky;
  top: 0; */
  z-index: -1;
}
@media (max-width: 899px) {
  .intro {
    height: calc(100vh - 50px);
  }
}
.intro video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.intro img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.list-project {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 18px 0 38px;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
}
.list-project:hover {
  text-decoration: underline;
}
.list-project .cover {
  margin: 0 auto 35px;
}
.cover .img-wrapper {
  display: inline-block;
  margin: 0 auto;
  overflow: hidden;
}
.cover img {
  transition: scale .5s ease-out;
}
.list-project:hover .cover img {
  scale: 1.06;
}
#project-list {
  scroll-margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (min-width: 900px) {
  .page-home .logo-darling,
  .page-company .logo-darling {
    top: 0px;
    transition: top 1s ease-in-out;
  }
  .page-home.is-bottom .logo-darling,
  .page-company.is-bottom .logo-darling {
    top: 106px;
  }
  #project-list {
    scroll-margin-top: 225px;
  }
  .list-project {
    margin: 150px 0 150px;
    padding-right: 23px;
  }
}

/* content blocks */
.block {
  margin: 8px 0 80px 0;
}
h3 {
  text-transform: uppercase;
}
.block-content {
  max-width: 1200px;
}
@media (max-width: 899px) {
  .block-title {
    margin-bottom: 19px;
  }
}
@media (min-width: 900px) {
  .block {
    display: grid;
    grid-template-columns: 350px 1fr;
    margin: 73px 0 146px 0;
  }
  .block-title h3 {
    position: sticky;
    top: 60px;
  }
}

/* block: artwork */
.block-artwork ul {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}
.block-artwork ul li {
  width: 500px;
  max-width: 100%;
}

/* block: image full width */
.block-image-full {
  margin-inline: -12px;
  padding: 0;
}
.block-image-full img {
  width: 100vw;
  max-width: 100vw;
}
@media (min-width: 900px) {
  .block-image-full {
    margin-left: -68px;
    margin-right: -47px;
  }
}

/* block: gallery */
.block-gallery figure ul {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
}
.block-gallery figure li {
  width: calc( calc(100% - 100px) / 3 );
}
@media (max-width: 899px) {
  .block-gallery figure ul {
    gap: 15px;
  }
  .block-gallery figure li {
    width: calc( calc(100% - 30px) / 3 );
  }
}
.block-gallery img {
  cursor: zoom-in;
}
.block-gallery img.image-full {
  position: fixed;
  display: block;
  inset: 0;
  object-fit: contain;
  object-position: center center;
  aspect-ratio: unset;
  background: var(--colorbg);
  height: 100dvh;
  z-index: 10;
  cursor: zoom-out;
}

/* block: video */
.block-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
}

/* block: more projects */

.block-projects-more .block-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 60px;
  align-items: flex-start;
}
.block-projects-more a {
  display: block;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  width: calc( calc(100% - 120px) / 3 );
}
.block-projects-more a:hover {
  text-decoration: underline;
}
@media (min-width: 900px) {
  .block-projects-more {
    margin-top: 180px;
    margin-bottom: 200px;
  }
}

/* contact */
.page-contact .content {
  display: none;
}
@media (max-width: 899px) {
  .page-contact .address,
  .page-contact .copyright,
  .page-contact .menu-footer {
    display: block;
    margin-bottom: 1em;
  }
  .page-contact .illustration {
    order: 9;
  }
  .page-contact .copyright {
    order: 8;
  }
  .page-contact .logo {
    margin-bottom: auto;
  }

  .page-contact .footer-bottom,
  .page-contact .bottom-center {
    display: contents;
  }
  .page-contact .claim {
    display: none;
  }
}